Oracle Cloud Infrastructure v2.33.0 published on Thursday, May 1, 2025 by Pulumi
oci.DelegateAccessControl.getServiceProviders
Explore with Pulumi AI
This data source provides the list of Service Providers in Oracle Cloud Infrastructure Delegate Access Control service.
Lists the Service Providers.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testServiceProviders = oci.DelegateAccessControl.getServiceProviders({
    compartmentId: compartmentId,
    name: serviceProviderName,
    serviceProviderType: serviceProviderServiceProviderType,
    state: serviceProviderState,
    supportedResourceType: serviceProviderSupportedResourceType,
});
import pulumi
import pulumi_oci as oci
test_service_providers = oci.DelegateAccessControl.get_service_providers(compartment_id=compartment_id,
    name=service_provider_name,
    service_provider_type=service_provider_service_provider_type,
    state=service_provider_state,
    supported_resource_type=service_provider_supported_resource_type)
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.GetServiceProviders(ctx, &delegateaccesscontrol.GetServiceProvidersArgs{
			CompartmentId:         compartmentId,
			Name:                  pulumi.StringRef(serviceProviderName),
			ServiceProviderType:   pulumi.StringRef(serviceProviderServiceProviderType),
			State:                 pulumi.StringRef(serviceProviderState),
			SupportedResourceType: pulumi.StringRef(serviceProviderSupportedResourceType),
		}, 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 testServiceProviders = Oci.DelegateAccessControl.GetServiceProviders.Invoke(new()
    {
        CompartmentId = compartmentId,
        Name = serviceProviderName,
        ServiceProviderType = serviceProviderServiceProviderType,
        State = serviceProviderState,
        SupportedResourceType = serviceProviderSupportedResourceType,
    });
});
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.GetServiceProvidersArgs;
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 testServiceProviders = DelegateAccessControlFunctions.getServiceProviders(GetServiceProvidersArgs.builder()
            .compartmentId(compartmentId)
            .name(serviceProviderName)
            .serviceProviderType(serviceProviderServiceProviderType)
            .state(serviceProviderState)
            .supportedResourceType(serviceProviderSupportedResourceType)
            .build());
    }
}
variables:
  testServiceProviders:
    fn::invoke:
      function: oci:DelegateAccessControl:getServiceProviders
      arguments:
        compartmentId: ${compartmentId}
        name: ${serviceProviderName}
        serviceProviderType: ${serviceProviderServiceProviderType}
        state: ${serviceProviderState}
        supportedResourceType: ${serviceProviderSupportedResourceType}
Using getServiceProviders
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 getServiceProviders(args: GetServiceProvidersArgs, opts?: InvokeOptions): Promise<GetServiceProvidersResult>
function getServiceProvidersOutput(args: GetServiceProvidersOutputArgs, opts?: InvokeOptions): Output<GetServiceProvidersResult>def get_service_providers(compartment_id: Optional[str] = None,
                          filters: Optional[Sequence[GetServiceProvidersFilter]] = None,
                          name: Optional[str] = None,
                          service_provider_type: Optional[str] = None,
                          state: Optional[str] = None,
                          supported_resource_type: Optional[str] = None,
                          opts: Optional[InvokeOptions] = None) -> GetServiceProvidersResult
def get_service_providers_output(compartment_id: Optional[pulumi.Input[str]] = None,
                          filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetServiceProvidersFilterArgs]]]] = None,
                          name: Optional[pulumi.Input[str]] = None,
                          service_provider_type: Optional[pulumi.Input[str]] = None,
                          state: Optional[pulumi.Input[str]] = None,
                          supported_resource_type: Optional[pulumi.Input[str]] = None,
                          opts: Optional[InvokeOptions] = None) -> Output[GetServiceProvidersResult]func GetServiceProviders(ctx *Context, args *GetServiceProvidersArgs, opts ...InvokeOption) (*GetServiceProvidersResult, error)
func GetServiceProvidersOutput(ctx *Context, args *GetServiceProvidersOutputArgs, opts ...InvokeOption) GetServiceProvidersResultOutput> Note: This function is named GetServiceProviders in the Go SDK.
public static class GetServiceProviders 
{
    public static Task<GetServiceProvidersResult> InvokeAsync(GetServiceProvidersArgs args, InvokeOptions? opts = null)
    public static Output<GetServiceProvidersResult> Invoke(GetServiceProvidersInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetServiceProvidersResult> getServiceProviders(GetServiceProvidersArgs args, InvokeOptions options)
public static Output<GetServiceProvidersResult> getServiceProviders(GetServiceProvidersArgs args, InvokeOptions options)
fn::invoke:
  function: oci:DelegateAccessControl/getServiceProviders:getServiceProviders
  arguments:
    # arguments dictionaryThe following arguments are supported:
- CompartmentId string
- The OCID of the compartment.
- Filters
List<GetService Providers Filter> 
- Name string
- A filter to return Service Provider resources that match the given name.
- ServiceProvider stringType 
- A filter to return only Service Provider resources whose provider type matches the given provider type.
- State string
- A filter to return only Service Provider resources whose lifecycleState matches the given Service Provider lifecycle state.
- SupportedResource stringType 
- A filter to return only Service Provider resources whose supported resource type matches the given resource type.
- CompartmentId string
- The OCID of the compartment.
- Filters
[]GetService Providers Filter 
- Name string
- A filter to return Service Provider resources that match the given name.
- ServiceProvider stringType 
- A filter to return only Service Provider resources whose provider type matches the given provider type.
- State string
- A filter to return only Service Provider resources whose lifecycleState matches the given Service Provider lifecycle state.
- SupportedResource stringType 
- A filter to return only Service Provider resources whose supported resource type matches the given resource type.
- compartmentId String
- The OCID of the compartment.
- filters
List<GetService Providers Filter> 
- name String
- A filter to return Service Provider resources that match the given name.
- serviceProvider StringType 
- A filter to return only Service Provider resources whose provider type matches the given provider type.
- state String
- A filter to return only Service Provider resources whose lifecycleState matches the given Service Provider lifecycle state.
- supportedResource StringType 
- A filter to return only Service Provider resources whose supported resource type matches the given resource type.
- compartmentId string
- The OCID of the compartment.
- filters
GetService Providers Filter[] 
- name string
- A filter to return Service Provider resources that match the given name.
- serviceProvider stringType 
- A filter to return only Service Provider resources whose provider type matches the given provider type.
- state string
- A filter to return only Service Provider resources whose lifecycleState matches the given Service Provider lifecycle state.
- supportedResource stringType 
- A filter to return only Service Provider resources whose supported resource type matches the given resource type.
- compartment_id str
- The OCID of the compartment.
- filters
Sequence[GetService Providers Filter] 
- name str
- A filter to return Service Provider resources that match the given name.
- service_provider_ strtype 
- A filter to return only Service Provider resources whose provider type matches the given provider type.
- state str
- A filter to return only Service Provider resources whose lifecycleState matches the given Service Provider lifecycle state.
- supported_resource_ strtype 
- A filter to return only Service Provider resources whose supported resource type matches the given resource type.
- compartmentId String
- The OCID of the compartment.
- filters List<Property Map>
- name String
- A filter to return Service Provider resources that match the given name.
- serviceProvider StringType 
- A filter to return only Service Provider resources whose provider type matches the given provider type.
- state String
- A filter to return only Service Provider resources whose lifecycleState matches the given Service Provider lifecycle state.
- supportedResource StringType 
- A filter to return only Service Provider resources whose supported resource type matches the given resource type.
getServiceProviders Result
The following output properties are available:
- CompartmentId string
- The OCID of the compartment that contains the Delegation Control.
- Id string
- The provider-assigned unique ID for this managed resource.
- ServiceProvider List<GetSummary Collections Service Providers Service Provider Summary Collection> 
- The list of service_provider_summary_collection.
- Filters
List<GetService Providers Filter> 
- Name string
- Unique name of the Service Provider.
- ServiceProvider stringType 
- Service Provider type.
- State string
- The current lifecycle state of the Service Provider.
- SupportedResource stringType 
- CompartmentId string
- The OCID of the compartment that contains the Delegation Control.
- Id string
- The provider-assigned unique ID for this managed resource.
- ServiceProvider []GetSummary Collections Service Providers Service Provider Summary Collection 
- The list of service_provider_summary_collection.
- Filters
[]GetService Providers Filter 
- Name string
- Unique name of the Service Provider.
- ServiceProvider stringType 
- Service Provider type.
- State string
- The current lifecycle state of the Service Provider.
- SupportedResource stringType 
- compartmentId String
- The OCID of the compartment that contains the Delegation Control.
- id String
- The provider-assigned unique ID for this managed resource.
- serviceProvider List<GetSummary Collections Service Providers Service Provider Summary Collection> 
- The list of service_provider_summary_collection.
- filters
List<GetService Providers Filter> 
- name String
- Unique name of the Service Provider.
- serviceProvider StringType 
- Service Provider type.
- state String
- The current lifecycle state of the Service Provider.
- supportedResource StringType 
- compartmentId string
- The OCID of the compartment that contains the Delegation Control.
- id string
- The provider-assigned unique ID for this managed resource.
- serviceProvider GetSummary Collections Service Providers Service Provider Summary Collection[] 
- The list of service_provider_summary_collection.
- filters
GetService Providers Filter[] 
- name string
- Unique name of the Service Provider.
- serviceProvider stringType 
- Service Provider type.
- state string
- The current lifecycle state of the Service Provider.
- supportedResource stringType 
- compartment_id str
- The OCID of the compartment that contains the Delegation Control.
- id str
- The provider-assigned unique ID for this managed resource.
- service_provider_ Sequence[Getsummary_ collections Service Providers Service Provider Summary Collection] 
- The list of service_provider_summary_collection.
- filters
Sequence[GetService Providers Filter] 
- name str
- Unique name of the Service Provider.
- service_provider_ strtype 
- Service Provider type.
- state str
- The current lifecycle state of the Service Provider.
- supported_resource_ strtype 
- compartmentId String
- The OCID of the compartment that contains the Delegation Control.
- id String
- The provider-assigned unique ID for this managed resource.
- serviceProvider List<Property Map>Summary Collections 
- The list of service_provider_summary_collection.
- filters List<Property Map>
- name String
- Unique name of the Service Provider.
- serviceProvider StringType 
- Service Provider type.
- state String
- The current lifecycle state of the Service Provider.
- supportedResource StringType 
Supporting Types
GetServiceProvidersFilter   
GetServiceProvidersServiceProviderSummaryCollection      
GetServiceProvidersServiceProviderSummaryCollectionItem       
- CompartmentId string
- The OCID of the compartment.
- 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.
- 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
- Unique identifier for the Service Provider.
- LifecycleState stringDetails 
- Description of the current lifecycle state in more detail.
- Name string
- A filter to return Service Provider resources that match the given name.
- ServiceProvider stringType 
- A filter to return only Service Provider resources whose provider type matches the given provider type.
- ServiceTypes List<string>
- Types of services offered by this provider.
- State string
- A filter to return only Service Provider resources whose lifecycleState matches the given Service Provider lifecycle state.
- SupportedResource List<string>Types 
- Resource types for which this provider will provide service. Default to all if not specified.
- 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.
- 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.
- 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
- Unique identifier for the Service Provider.
- LifecycleState stringDetails 
- Description of the current lifecycle state in more detail.
- Name string
- A filter to return Service Provider resources that match the given name.
- ServiceProvider stringType 
- A filter to return only Service Provider resources whose provider type matches the given provider type.
- ServiceTypes []string
- Types of services offered by this provider.
- State string
- A filter to return only Service Provider resources whose lifecycleState matches the given Service Provider lifecycle state.
- SupportedResource []stringTypes 
- Resource types for which this provider will provide service. Default to all if not specified.
- 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.
- 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.
- 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
- Unique identifier for the Service Provider.
- lifecycleState StringDetails 
- Description of the current lifecycle state in more detail.
- name String
- A filter to return Service Provider resources that match the given name.
- serviceProvider StringType 
- A filter to return only Service Provider resources whose provider type matches the given provider type.
- serviceTypes List<String>
- Types of services offered by this provider.
- state String
- A filter to return only Service Provider resources whose lifecycleState matches the given Service Provider lifecycle state.
- supportedResource List<String>Types 
- Resource types for which this provider will provide service. Default to all if not specified.
- 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.
- {[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.
- {[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
- Unique identifier for the Service Provider.
- lifecycleState stringDetails 
- Description of the current lifecycle state in more detail.
- name string
- A filter to return Service Provider resources that match the given name.
- serviceProvider stringType 
- A filter to return only Service Provider resources whose provider type matches the given provider type.
- serviceTypes string[]
- Types of services offered by this provider.
- state string
- A filter to return only Service Provider resources whose lifecycleState matches the given Service Provider lifecycle state.
- supportedResource string[]Types 
- Resource types for which this provider will provide service. Default to all if not specified.
- {[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.
- 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.
- 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
- Unique identifier for the Service Provider.
- lifecycle_state_ strdetails 
- Description of the current lifecycle state in more detail.
- name str
- A filter to return Service Provider resources that match the given name.
- service_provider_ strtype 
- A filter to return only Service Provider resources whose provider type matches the given provider type.
- service_types Sequence[str]
- Types of services offered by this provider.
- state str
- A filter to return only Service Provider resources whose lifecycleState matches the given Service Provider lifecycle state.
- supported_resource_ Sequence[str]types 
- Resource types for which this provider will provide service. Default to all if not specified.
- 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.
- 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.
- 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
- Unique identifier for the Service Provider.
- lifecycleState StringDetails 
- Description of the current lifecycle state in more detail.
- name String
- A filter to return Service Provider resources that match the given name.
- serviceProvider StringType 
- A filter to return only Service Provider resources whose provider type matches the given provider type.
- serviceTypes List<String>
- Types of services offered by this provider.
- state String
- A filter to return only Service Provider resources whose lifecycleState matches the given Service Provider lifecycle state.
- supportedResource List<String>Types 
- Resource types for which this provider will provide service. Default to all if not specified.
- 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 ociTerraform Provider.