1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DelegateAccessControl
  5. getDelegationSubscriptions
Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi

oci.DelegateAccessControl.getDelegationSubscriptions

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.30.0 published on Monday, Apr 14, 2025 by Pulumi

This data source provides the list of Delegation Subscriptions in Oracle Cloud Infrastructure Delegate Access Control service.

Lists the Delegation Subscriptions in Delegation Control.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testDelegationSubscriptions = oci.DelegateAccessControl.getDelegationSubscriptions({
    compartmentId: compartmentId,
    displayName: delegationSubscriptionDisplayName,
    state: delegationSubscriptionState,
});
Copy
import pulumi
import pulumi_oci as oci

test_delegation_subscriptions = oci.DelegateAccessControl.get_delegation_subscriptions(compartment_id=compartment_id,
    display_name=delegation_subscription_display_name,
    state=delegation_subscription_state)
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.GetDelegationSubscriptions(ctx, &delegateaccesscontrol.GetDelegationSubscriptionsArgs{
			CompartmentId: compartmentId,
			DisplayName:   pulumi.StringRef(delegationSubscriptionDisplayName),
			State:         pulumi.StringRef(delegationSubscriptionState),
		}, 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 testDelegationSubscriptions = Oci.DelegateAccessControl.GetDelegationSubscriptions.Invoke(new()
    {
        CompartmentId = compartmentId,
        DisplayName = delegationSubscriptionDisplayName,
        State = delegationSubscriptionState,
    });

});
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.GetDelegationSubscriptionsArgs;
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 testDelegationSubscriptions = DelegateAccessControlFunctions.getDelegationSubscriptions(GetDelegationSubscriptionsArgs.builder()
            .compartmentId(compartmentId)
            .displayName(delegationSubscriptionDisplayName)
            .state(delegationSubscriptionState)
            .build());

    }
}
Copy
variables:
  testDelegationSubscriptions:
    fn::invoke:
      function: oci:DelegateAccessControl:getDelegationSubscriptions
      arguments:
        compartmentId: ${compartmentId}
        displayName: ${delegationSubscriptionDisplayName}
        state: ${delegationSubscriptionState}
Copy

Using getDelegationSubscriptions

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 getDelegationSubscriptions(args: GetDelegationSubscriptionsArgs, opts?: InvokeOptions): Promise<GetDelegationSubscriptionsResult>
function getDelegationSubscriptionsOutput(args: GetDelegationSubscriptionsOutputArgs, opts?: InvokeOptions): Output<GetDelegationSubscriptionsResult>
Copy
def get_delegation_subscriptions(compartment_id: Optional[str] = None,
                                 display_name: Optional[str] = None,
                                 filters: Optional[Sequence[_delegateaccesscontrol.GetDelegationSubscriptionsFilter]] = None,
                                 state: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetDelegationSubscriptionsResult
def get_delegation_subscriptions_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                 display_name: Optional[pulumi.Input[str]] = None,
                                 filters: Optional[pulumi.Input[Sequence[pulumi.Input[_delegateaccesscontrol.GetDelegationSubscriptionsFilterArgs]]]] = None,
                                 state: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetDelegationSubscriptionsResult]
Copy
func GetDelegationSubscriptions(ctx *Context, args *GetDelegationSubscriptionsArgs, opts ...InvokeOption) (*GetDelegationSubscriptionsResult, error)
func GetDelegationSubscriptionsOutput(ctx *Context, args *GetDelegationSubscriptionsOutputArgs, opts ...InvokeOption) GetDelegationSubscriptionsResultOutput
Copy

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

public static class GetDelegationSubscriptions 
{
    public static Task<GetDelegationSubscriptionsResult> InvokeAsync(GetDelegationSubscriptionsArgs args, InvokeOptions? opts = null)
    public static Output<GetDelegationSubscriptionsResult> Invoke(GetDelegationSubscriptionsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetDelegationSubscriptionsResult> getDelegationSubscriptions(GetDelegationSubscriptionsArgs args, InvokeOptions options)
public static Output<GetDelegationSubscriptionsResult> getDelegationSubscriptions(GetDelegationSubscriptionsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:DelegateAccessControl/getDelegationSubscriptions:getDelegationSubscriptions
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CompartmentId This property is required. string
The OCID of the compartment.
DisplayName string
A filter to return Delegation Subscription resources that match the given display name.
Filters Changes to this property will trigger replacement. List<GetDelegationSubscriptionsFilter>
State string
A filter to return only Delegation Subscription resources whose lifecycleState matches the given Delegation Subscription lifecycle state.
CompartmentId This property is required. string
The OCID of the compartment.
DisplayName string
A filter to return Delegation Subscription resources that match the given display name.
Filters Changes to this property will trigger replacement. []GetDelegationSubscriptionsFilter
State string
A filter to return only Delegation Subscription resources whose lifecycleState matches the given Delegation Subscription lifecycle state.
compartmentId This property is required. String
The OCID of the compartment.
displayName String
A filter to return Delegation Subscription resources that match the given display name.
filters Changes to this property will trigger replacement. List<GetDelegationSubscriptionsFilter>
state String
A filter to return only Delegation Subscription resources whose lifecycleState matches the given Delegation Subscription lifecycle state.
compartmentId This property is required. string
The OCID of the compartment.
displayName string
A filter to return Delegation Subscription resources that match the given display name.
filters Changes to this property will trigger replacement. GetDelegationSubscriptionsFilter[]
state string
A filter to return only Delegation Subscription resources whose lifecycleState matches the given Delegation Subscription lifecycle state.
compartment_id This property is required. str
The OCID of the compartment.
display_name str
A filter to return Delegation Subscription resources that match the given display name.
filters Changes to this property will trigger replacement. Sequence[delegateaccesscontrol.GetDelegationSubscriptionsFilter]
state str
A filter to return only Delegation Subscription resources whose lifecycleState matches the given Delegation Subscription lifecycle state.
compartmentId This property is required. String
The OCID of the compartment.
displayName String
A filter to return Delegation Subscription resources that match the given display name.
filters Changes to this property will trigger replacement. List<Property Map>
state String
A filter to return only Delegation Subscription resources whose lifecycleState matches the given Delegation Subscription lifecycle state.

getDelegationSubscriptions Result

The following output properties are available:

CompartmentId string
The OCID of the compartment that contains the Delegation Subscription.
DelegationSubscriptionSummaryCollections List<GetDelegationSubscriptionsDelegationSubscriptionSummaryCollection>
The list of delegation_subscription_summary_collection.
Id string
The provider-assigned unique ID for this managed resource.
DisplayName string
Display name
Filters List<GetDelegationSubscriptionsFilter>
State string
The current lifecycle state of the Service Provider.
CompartmentId string
The OCID of the compartment that contains the Delegation Subscription.
DelegationSubscriptionSummaryCollections []GetDelegationSubscriptionsDelegationSubscriptionSummaryCollection
The list of delegation_subscription_summary_collection.
Id string
The provider-assigned unique ID for this managed resource.
DisplayName string
Display name
Filters []GetDelegationSubscriptionsFilter
State string
The current lifecycle state of the Service Provider.
compartmentId String
The OCID of the compartment that contains the Delegation Subscription.
delegationSubscriptionSummaryCollections List<GetDelegationSubscriptionsDelegationSubscriptionSummaryCollection>
The list of delegation_subscription_summary_collection.
id String
The provider-assigned unique ID for this managed resource.
displayName String
Display name
filters List<GetDelegationSubscriptionsFilter>
state String
The current lifecycle state of the Service Provider.
compartmentId string
The OCID of the compartment that contains the Delegation Subscription.
delegationSubscriptionSummaryCollections GetDelegationSubscriptionsDelegationSubscriptionSummaryCollection[]
The list of delegation_subscription_summary_collection.
id string
The provider-assigned unique ID for this managed resource.
displayName string
Display name
filters GetDelegationSubscriptionsFilter[]
state string
The current lifecycle state of the Service Provider.
compartment_id str
The OCID of the compartment that contains the Delegation Subscription.
delegation_subscription_summary_collections Sequence[delegateaccesscontrol.GetDelegationSubscriptionsDelegationSubscriptionSummaryCollection]
The list of delegation_subscription_summary_collection.
id str
The provider-assigned unique ID for this managed resource.
display_name str
Display name
filters Sequence[delegateaccesscontrol.GetDelegationSubscriptionsFilter]
state str
The current lifecycle state of the Service Provider.
compartmentId String
The OCID of the compartment that contains the Delegation Subscription.
delegationSubscriptionSummaryCollections List<Property Map>
The list of delegation_subscription_summary_collection.
id String
The provider-assigned unique ID for this managed resource.
displayName String
Display name
filters List<Property Map>
state String
The current lifecycle state of the Service Provider.

Supporting Types

GetDelegationSubscriptionsDelegationSubscriptionSummaryCollection

items This property is required. List<Property Map>

GetDelegationSubscriptionsDelegationSubscriptionSummaryCollectionItem

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 Delegation Subscription.
DisplayName This property is required. string
A filter to return Delegation Subscription resources that match the given display name.
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 Delegation Subscription.
LifecycleStateDetails This property is required. string
Description of the current lifecycle state in more detail.
ServiceProviderId This property is required. string
Unique identifier of the Service Provider.
State This property is required. string
A filter to return only Delegation Subscription resources whose lifecycleState matches the given Delegation Subscription lifecycle state.
SubscribedServiceType This property is required. string
Subscribed Service Provider Service Type.
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 Delegation Subscription.
DisplayName This property is required. string
A filter to return Delegation Subscription resources that match the given display name.
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 Delegation Subscription.
LifecycleStateDetails This property is required. string
Description of the current lifecycle state in more detail.
ServiceProviderId This property is required. string
Unique identifier of the Service Provider.
State This property is required. string
A filter to return only Delegation Subscription resources whose lifecycleState matches the given Delegation Subscription lifecycle state.
SubscribedServiceType This property is required. string
Subscribed Service Provider Service Type.
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 Delegation Subscription.
displayName This property is required. String
A filter to return Delegation Subscription resources that match the given display name.
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 Delegation Subscription.
lifecycleStateDetails This property is required. String
Description of the current lifecycle state in more detail.
serviceProviderId This property is required. String
Unique identifier of the Service Provider.
state This property is required. String
A filter to return only Delegation Subscription resources whose lifecycleState matches the given Delegation Subscription lifecycle state.
subscribedServiceType This property is required. String
Subscribed Service Provider Service Type.
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 Delegation Subscription.
displayName This property is required. string
A filter to return Delegation Subscription resources that match the given display name.
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 Delegation Subscription.
lifecycleStateDetails This property is required. string
Description of the current lifecycle state in more detail.
serviceProviderId This property is required. string
Unique identifier of the Service Provider.
state This property is required. string
A filter to return only Delegation Subscription resources whose lifecycleState matches the given Delegation Subscription lifecycle state.
subscribedServiceType This property is required. string
Subscribed Service Provider Service Type.
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 Delegation Subscription.
display_name This property is required. str
A filter to return Delegation Subscription resources that match the given display name.
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 Delegation Subscription.
lifecycle_state_details This property is required. str
Description of the current lifecycle state in more detail.
service_provider_id This property is required. str
Unique identifier of the Service Provider.
state This property is required. str
A filter to return only Delegation Subscription resources whose lifecycleState matches the given Delegation Subscription lifecycle state.
subscribed_service_type This property is required. str
Subscribed Service Provider Service Type.
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 Delegation Subscription.
displayName This property is required. String
A filter to return Delegation Subscription resources that match the given display name.
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 Delegation Subscription.
lifecycleStateDetails This property is required. String
Description of the current lifecycle state in more detail.
serviceProviderId This property is required. String
Unique identifier of the Service Provider.
state This property is required. String
A filter to return only Delegation Subscription resources whose lifecycleState matches the given Delegation Subscription lifecycle state.
subscribedServiceType This property is required. String
Subscribed Service Provider Service Type.
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'

GetDelegationSubscriptionsFilter

Name This property is required. string
Values This property is required. List<string>
Regex bool
Name This property is required. string
Values This property is required. []string
Regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean
name This property is required. string
values This property is required. string[]
regex boolean
name This property is required. str
values This property is required. Sequence[str]
regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean

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.30.0 published on Monday, Apr 14, 2025 by Pulumi