1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DelegateAccessControl
  5. getServiceProvider
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.DelegateAccessControl.getServiceProvider

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    This data source provides details about a specific Service Provider resource in Oracle Cloud Infrastructure Delegate Access Control service.

    Gets a ServiceProvider by identifier

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testServiceProvider = oci.DelegateAccessControl.getServiceProvider({
        serviceProviderId: testServiceProviderOciDelegateAccessControlServiceProvider.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_service_provider = oci.DelegateAccessControl.get_service_provider(service_provider_id=test_service_provider_oci_delegate_access_control_service_provider["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/DelegateAccessControl"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := DelegateAccessControl.GetServiceProvider(ctx, &delegateaccesscontrol.GetServiceProviderArgs{
    			ServiceProviderId: testServiceProviderOciDelegateAccessControlServiceProvider.Id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testServiceProvider = Oci.DelegateAccessControl.GetServiceProvider.Invoke(new()
        {
            ServiceProviderId = testServiceProviderOciDelegateAccessControlServiceProvider.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.DelegateAccessControl.DelegateAccessControlFunctions;
    import com.pulumi.oci.DelegateAccessControl.inputs.GetServiceProviderArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var testServiceProvider = DelegateAccessControlFunctions.getServiceProvider(GetServiceProviderArgs.builder()
                .serviceProviderId(testServiceProviderOciDelegateAccessControlServiceProvider.id())
                .build());
    
        }
    }
    
    variables:
      testServiceProvider:
        fn::invoke:
          Function: oci:DelegateAccessControl:getServiceProvider
          Arguments:
            serviceProviderId: ${testServiceProviderOciDelegateAccessControlServiceProvider.id}
    

    Using getServiceProvider

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getServiceProvider(args: GetServiceProviderArgs, opts?: InvokeOptions): Promise<GetServiceProviderResult>
    function getServiceProviderOutput(args: GetServiceProviderOutputArgs, opts?: InvokeOptions): Output<GetServiceProviderResult>
    def get_service_provider(service_provider_id: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetServiceProviderResult
    def get_service_provider_output(service_provider_id: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetServiceProviderResult]
    func GetServiceProvider(ctx *Context, args *GetServiceProviderArgs, opts ...InvokeOption) (*GetServiceProviderResult, error)
    func GetServiceProviderOutput(ctx *Context, args *GetServiceProviderOutputArgs, opts ...InvokeOption) GetServiceProviderResultOutput

    > Note: This function is named GetServiceProvider in the Go SDK.

    public static class GetServiceProvider 
    {
        public static Task<GetServiceProviderResult> InvokeAsync(GetServiceProviderArgs args, InvokeOptions? opts = null)
        public static Output<GetServiceProviderResult> Invoke(GetServiceProviderInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetServiceProviderResult> getServiceProvider(GetServiceProviderArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:DelegateAccessControl/getServiceProvider:getServiceProvider
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ServiceProviderId string
    unique Service Provider identifier
    ServiceProviderId string
    unique Service Provider identifier
    serviceProviderId String
    unique Service Provider identifier
    serviceProviderId string
    unique Service Provider identifier
    service_provider_id str
    unique Service Provider identifier
    serviceProviderId String
    unique Service Provider identifier

    getServiceProvider Result

    The following output properties are available:

    CompartmentId string
    The OCID of the compartment that contains the Delegation Control.
    DefinedTags Dictionary<string, string>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    Description string
    Description of the Service Provider.
    FreeformTags Dictionary<string, string>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Id string
    The provider-assigned unique ID for this managed resource.
    LifecycleStateDetails string
    Description of the current lifecycle state in more detail.
    Name string
    Unique name of the Service Provider.
    ServiceProviderId string
    ServiceProviderType string
    Service Provider type.
    ServiceTypes List<string>
    Types of services offered by this provider.
    State string
    The current lifecycle state of the Service Provider.
    SupportedResourceTypes List<string>
    Resource types for which this provider will provide service. Default to all if not specified.
    SystemTags Dictionary<string, string>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    Time when the Service Provider was created expressed in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
    TimeUpdated string
    Time when the Service Provider was last modified expressed in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
    CompartmentId string
    The OCID of the compartment that contains the Delegation Control.
    DefinedTags map[string]string
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    Description string
    Description of the Service Provider.
    FreeformTags map[string]string
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Id string
    The provider-assigned unique ID for this managed resource.
    LifecycleStateDetails string
    Description of the current lifecycle state in more detail.
    Name string
    Unique name of the Service Provider.
    ServiceProviderId string
    ServiceProviderType string
    Service Provider type.
    ServiceTypes []string
    Types of services offered by this provider.
    State string
    The current lifecycle state of the Service Provider.
    SupportedResourceTypes []string
    Resource types for which this provider will provide service. Default to all if not specified.
    SystemTags map[string]string
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    TimeCreated string
    Time when the Service Provider was created expressed in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
    TimeUpdated string
    Time when the Service Provider was last modified expressed in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
    compartmentId String
    The OCID of the compartment that contains the Delegation Control.
    definedTags Map<String,String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description String
    Description of the Service Provider.
    freeformTags Map<String,String>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id String
    The provider-assigned unique ID for this managed resource.
    lifecycleStateDetails String
    Description of the current lifecycle state in more detail.
    name String
    Unique name of the Service Provider.
    serviceProviderId String
    serviceProviderType String
    Service Provider type.
    serviceTypes List<String>
    Types of services offered by this provider.
    state String
    The current lifecycle state of the Service Provider.
    supportedResourceTypes List<String>
    Resource types for which this provider will provide service. Default to all if not specified.
    systemTags Map<String,String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    Time when the Service Provider was created expressed in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
    timeUpdated String
    Time when the Service Provider was last modified expressed in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
    compartmentId string
    The OCID of the compartment that contains the Delegation Control.
    definedTags {[key: string]: string}
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description string
    Description of the Service Provider.
    freeformTags {[key: string]: string}
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id string
    The provider-assigned unique ID for this managed resource.
    lifecycleStateDetails string
    Description of the current lifecycle state in more detail.
    name string
    Unique name of the Service Provider.
    serviceProviderId string
    serviceProviderType string
    Service Provider type.
    serviceTypes string[]
    Types of services offered by this provider.
    state string
    The current lifecycle state of the Service Provider.
    supportedResourceTypes string[]
    Resource types for which this provider will provide service. Default to all if not specified.
    systemTags {[key: string]: string}
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated string
    Time when the Service Provider was created expressed in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
    timeUpdated string
    Time when the Service Provider was last modified expressed in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
    compartment_id str
    The OCID of the compartment that contains the Delegation Control.
    defined_tags Mapping[str, str]
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description str
    Description of the Service Provider.
    freeform_tags Mapping[str, str]
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id str
    The provider-assigned unique ID for this managed resource.
    lifecycle_state_details str
    Description of the current lifecycle state in more detail.
    name str
    Unique name of the Service Provider.
    service_provider_id str
    service_provider_type str
    Service Provider type.
    service_types Sequence[str]
    Types of services offered by this provider.
    state str
    The current lifecycle state of the Service Provider.
    supported_resource_types Sequence[str]
    Resource types for which this provider will provide service. Default to all if not specified.
    system_tags Mapping[str, str]
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    time_created str
    Time when the Service Provider was created expressed in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
    time_updated str
    Time when the Service Provider was last modified expressed in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
    compartmentId String
    The OCID of the compartment that contains the Delegation Control.
    definedTags Map<String>
    Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    description String
    Description of the Service Provider.
    freeformTags Map<String>
    Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id String
    The provider-assigned unique ID for this managed resource.
    lifecycleStateDetails String
    Description of the current lifecycle state in more detail.
    name String
    Unique name of the Service Provider.
    serviceProviderId String
    serviceProviderType String
    Service Provider type.
    serviceTypes List<String>
    Types of services offered by this provider.
    state String
    The current lifecycle state of the Service Provider.
    supportedResourceTypes List<String>
    Resource types for which this provider will provide service. Default to all if not specified.
    systemTags Map<String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    timeCreated String
    Time when the Service Provider was created expressed in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
    timeUpdated String
    Time when the Service Provider was last modified expressed in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi