1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DelegateAccessControl
  5. getServiceProviders
Oracle Cloud Infrastructure v2.32.0 published on Thursday, Apr 24, 2025 by Pulumi

oci.DelegateAccessControl.getServiceProviders

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.32.0 published on Thursday, Apr 24, 2025 by Pulumi

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,
});
Copy
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)
Copy
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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
variables:
  testServiceProviders:
    fn::invoke:
      function: oci:DelegateAccessControl:getServiceProviders
      arguments:
        compartmentId: ${compartmentId}
        name: ${serviceProviderName}
        serviceProviderType: ${serviceProviderServiceProviderType}
        state: ${serviceProviderState}
        supportedResourceType: ${serviceProviderSupportedResourceType}
Copy

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>
Copy
def get_service_providers(compartment_id: Optional[str] = None,
                          filters: Optional[Sequence[_delegateaccesscontrol.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[_delegateaccesscontrol.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]
Copy
func GetServiceProviders(ctx *Context, args *GetServiceProvidersArgs, opts ...InvokeOption) (*GetServiceProvidersResult, error)
func GetServiceProvidersOutput(ctx *Context, args *GetServiceProvidersOutputArgs, opts ...InvokeOption) GetServiceProvidersResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetServiceProvidersResult> getServiceProviders(GetServiceProvidersArgs args, InvokeOptions options)
public static Output<GetServiceProvidersResult> getServiceProviders(GetServiceProvidersArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:DelegateAccessControl/getServiceProviders:getServiceProviders
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CompartmentId This property is required. string
The OCID of the compartment.
Filters Changes to this property will trigger replacement. List<GetServiceProvidersFilter>
Name string
A filter to return Service Provider resources that match the given name.
ServiceProviderType string
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.
SupportedResourceType string
A filter to return only Service Provider resources whose supported resource type matches the given resource type.
CompartmentId This property is required. string
The OCID of the compartment.
Filters Changes to this property will trigger replacement. []GetServiceProvidersFilter
Name string
A filter to return Service Provider resources that match the given name.
ServiceProviderType string
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.
SupportedResourceType string
A filter to return only Service Provider resources whose supported resource type matches the given resource type.
compartmentId This property is required. String
The OCID of the compartment.
filters Changes to this property will trigger replacement. List<GetServiceProvidersFilter>
name String
A filter to return Service Provider resources that match the given name.
serviceProviderType String
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.
supportedResourceType String
A filter to return only Service Provider resources whose supported resource type matches the given resource type.
compartmentId This property is required. string
The OCID of the compartment.
filters Changes to this property will trigger replacement. GetServiceProvidersFilter[]
name string
A filter to return Service Provider resources that match the given name.
serviceProviderType string
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.
supportedResourceType string
A filter to return only Service Provider resources whose supported resource type matches the given resource type.
compartment_id This property is required. str
The OCID of the compartment.
filters Changes to this property will trigger replacement. Sequence[delegateaccesscontrol.GetServiceProvidersFilter]
name str
A filter to return Service Provider resources that match the given name.
service_provider_type str
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_type str
A filter to return only Service Provider resources whose supported resource type matches the given resource type.
compartmentId This property is required. String
The OCID of the compartment.
filters Changes to this property will trigger replacement. List<Property Map>
name String
A filter to return Service Provider resources that match the given name.
serviceProviderType String
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.
supportedResourceType String
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.
ServiceProviderSummaryCollections List<GetServiceProvidersServiceProviderSummaryCollection>
The list of service_provider_summary_collection.
Filters List<GetServiceProvidersFilter>
Name string
Unique name of the Service Provider.
ServiceProviderType string
Service Provider type.
State string
The current lifecycle state of the Service Provider.
SupportedResourceType string
CompartmentId string
The OCID of the compartment that contains the Delegation Control.
Id string
The provider-assigned unique ID for this managed resource.
ServiceProviderSummaryCollections []GetServiceProvidersServiceProviderSummaryCollection
The list of service_provider_summary_collection.
Filters []GetServiceProvidersFilter
Name string
Unique name of the Service Provider.
ServiceProviderType string
Service Provider type.
State string
The current lifecycle state of the Service Provider.
SupportedResourceType string
compartmentId String
The OCID of the compartment that contains the Delegation Control.
id String
The provider-assigned unique ID for this managed resource.
serviceProviderSummaryCollections List<GetServiceProvidersServiceProviderSummaryCollection>
The list of service_provider_summary_collection.
filters List<GetServiceProvidersFilter>
name String
Unique name of the Service Provider.
serviceProviderType String
Service Provider type.
state String
The current lifecycle state of the Service Provider.
supportedResourceType String
compartmentId string
The OCID of the compartment that contains the Delegation Control.
id string
The provider-assigned unique ID for this managed resource.
serviceProviderSummaryCollections GetServiceProvidersServiceProviderSummaryCollection[]
The list of service_provider_summary_collection.
filters GetServiceProvidersFilter[]
name string
Unique name of the Service Provider.
serviceProviderType string
Service Provider type.
state string
The current lifecycle state of the Service Provider.
supportedResourceType string
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_summary_collections Sequence[delegateaccesscontrol.GetServiceProvidersServiceProviderSummaryCollection]
The list of service_provider_summary_collection.
filters Sequence[delegateaccesscontrol.GetServiceProvidersFilter]
name str
Unique name of the Service Provider.
service_provider_type str
Service Provider type.
state str
The current lifecycle state of the Service Provider.
supported_resource_type str
compartmentId String
The OCID of the compartment that contains the Delegation Control.
id String
The provider-assigned unique ID for this managed resource.
serviceProviderSummaryCollections List<Property Map>
The list of service_provider_summary_collection.
filters List<Property Map>
name String
Unique name of the Service Provider.
serviceProviderType String
Service Provider type.
state String
The current lifecycle state of the Service Provider.
supportedResourceType String

Supporting Types

GetServiceProvidersFilter

Name This property is required. string
A filter to return Service Provider resources that match the given name.
Values This property is required. List<string>
Regex bool
Name This property is required. string
A filter to return Service Provider resources that match the given name.
Values This property is required. []string
Regex bool
name This property is required. String
A filter to return Service Provider resources that match the given name.
values This property is required. List<String>
regex Boolean
name This property is required. string
A filter to return Service Provider resources that match the given name.
values This property is required. string[]
regex boolean
name This property is required. str
A filter to return Service Provider resources that match the given name.
values This property is required. Sequence[str]
regex bool
name This property is required. String
A filter to return Service Provider resources that match the given name.
values This property is required. List<String>
regex Boolean

GetServiceProvidersServiceProviderSummaryCollection

items This property is required. List<Property Map>

GetServiceProvidersServiceProviderSummaryCollectionItem

CompartmentId This property is required. string
The OCID of the compartment.
DefinedTags This property is required. 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 This property is required. string
Description of the Service Provider.
FreeformTags This property is required. 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 This property is required. string
Unique identifier for the Service Provider.
LifecycleStateDetails This property is required. string
Description of the current lifecycle state in more detail.
Name This property is required. string
A filter to return Service Provider resources that match the given name.
ServiceProviderType This property is required. string
A filter to return only Service Provider resources whose provider type matches the given provider type.
ServiceTypes This property is required. List<string>
Types of services offered by this provider.
State This property is required. string
A filter to return only Service Provider resources whose lifecycleState matches the given Service Provider lifecycle state.
SupportedResourceTypes This property is required. List<string>
Resource types for which this provider will provide service. Default to all if not specified.
SystemTags This property is required. 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 This property is required. string
Time when the Service Provider was created expressed in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
TimeUpdated This property is required. string
Time when the Service Provider was last modified expressed in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
CompartmentId This property is required. string
The OCID of the compartment.
DefinedTags This property is required. 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 This property is required. string
Description of the Service Provider.
FreeformTags This property is required. 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 This property is required. string
Unique identifier for the Service Provider.
LifecycleStateDetails This property is required. string
Description of the current lifecycle state in more detail.
Name This property is required. string
A filter to return Service Provider resources that match the given name.
ServiceProviderType This property is required. string
A filter to return only Service Provider resources whose provider type matches the given provider type.
ServiceTypes This property is required. []string
Types of services offered by this provider.
State This property is required. string
A filter to return only Service Provider resources whose lifecycleState matches the given Service Provider lifecycle state.
SupportedResourceTypes This property is required. []string
Resource types for which this provider will provide service. Default to all if not specified.
SystemTags This property is required. 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 This property is required. string
Time when the Service Provider was created expressed in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
TimeUpdated This property is required. string
Time when the Service Provider was last modified expressed in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
compartmentId This property is required. String
The OCID of the compartment.
definedTags This property is required. 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 This property is required. String
Description of the Service Provider.
freeformTags This property is required. 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 This property is required. String
Unique identifier for the Service Provider.
lifecycleStateDetails This property is required. String
Description of the current lifecycle state in more detail.
name This property is required. String
A filter to return Service Provider resources that match the given name.
serviceProviderType This property is required. String
A filter to return only Service Provider resources whose provider type matches the given provider type.
serviceTypes This property is required. List<String>
Types of services offered by this provider.
state This property is required. String
A filter to return only Service Provider resources whose lifecycleState matches the given Service Provider lifecycle state.
supportedResourceTypes This property is required. List<String>
Resource types for which this provider will provide service. Default to all if not specified.
systemTags This property is required. 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 This property is required. String
Time when the Service Provider was created expressed in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
timeUpdated This property is required. String
Time when the Service Provider was last modified expressed in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
compartmentId This property is required. string
The OCID of the compartment.
definedTags This property is required. {[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 This property is required. string
Description of the Service Provider.
freeformTags This property is required. {[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 This property is required. string
Unique identifier for the Service Provider.
lifecycleStateDetails This property is required. string
Description of the current lifecycle state in more detail.
name This property is required. string
A filter to return Service Provider resources that match the given name.
serviceProviderType This property is required. string
A filter to return only Service Provider resources whose provider type matches the given provider type.
serviceTypes This property is required. string[]
Types of services offered by this provider.
state This property is required. string
A filter to return only Service Provider resources whose lifecycleState matches the given Service Provider lifecycle state.
supportedResourceTypes This property is required. string[]
Resource types for which this provider will provide service. Default to all if not specified.
systemTags This property is required. {[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 This property is required. string
Time when the Service Provider was created expressed in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
timeUpdated This property is required. 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 This property is required. str
The OCID of the compartment.
defined_tags This property is required. 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 This property is required. str
Description of the Service Provider.
freeform_tags This property is required. 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 This property is required. str
Unique identifier for the Service Provider.
lifecycle_state_details This property is required. str
Description of the current lifecycle state in more detail.
name This property is required. str
A filter to return Service Provider resources that match the given name.
service_provider_type This property is required. str
A filter to return only Service Provider resources whose provider type matches the given provider type.
service_types This property is required. Sequence[str]
Types of services offered by this provider.
state This property is required. str
A filter to return only Service Provider resources whose lifecycleState matches the given Service Provider lifecycle state.
supported_resource_types This property is required. Sequence[str]
Resource types for which this provider will provide service. Default to all if not specified.
system_tags This property is required. 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 This property is required. str
Time when the Service Provider was created expressed in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
time_updated This property is required. str
Time when the Service Provider was last modified expressed in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
compartmentId This property is required. String
The OCID of the compartment.
definedTags This property is required. 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 This property is required. String
Description of the Service Provider.
freeformTags This property is required. 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 This property is required. String
Unique identifier for the Service Provider.
lifecycleStateDetails This property is required. String
Description of the current lifecycle state in more detail.
name This property is required. String
A filter to return Service Provider resources that match the given name.
serviceProviderType This property is required. String
A filter to return only Service Provider resources whose provider type matches the given provider type.
serviceTypes This property is required. List<String>
Types of services offered by this provider.
state This property is required. String
A filter to return only Service Provider resources whose lifecycleState matches the given Service Provider lifecycle state.
supportedResourceTypes This property is required. List<String>
Resource types for which this provider will provide service. Default to all if not specified.
systemTags This property is required. Map<String>
System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
timeCreated This property is required. String
Time when the Service Provider was created expressed in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
timeUpdated This property is required. 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.
Oracle Cloud Infrastructure v2.32.0 published on Thursday, Apr 24, 2025 by Pulumi