Oracle Cloud Infrastructure v3.10.0 published on Wednesday, Nov 5, 2025 by Pulumi
oci.DelegateAccessControl.getDelegationSubscriptions
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,
});
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)
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v3/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
})
}
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,
});
});
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());
}
}
variables:
testDelegationSubscriptions:
fn::invoke:
function: oci:DelegateAccessControl:getDelegationSubscriptions
arguments:
compartmentId: ${compartmentId}
displayName: ${delegationSubscriptionDisplayName}
state: ${delegationSubscriptionState}
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>def get_delegation_subscriptions(compartment_id: Optional[str] = None,
display_name: Optional[str] = None,
filters: Optional[Sequence[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[GetDelegationSubscriptionsFilterArgs]]]] = None,
state: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDelegationSubscriptionsResult]func GetDelegationSubscriptions(ctx *Context, args *GetDelegationSubscriptionsArgs, opts ...InvokeOption) (*GetDelegationSubscriptionsResult, error)
func GetDelegationSubscriptionsOutput(ctx *Context, args *GetDelegationSubscriptionsOutputArgs, opts ...InvokeOption) GetDelegationSubscriptionsResultOutput> 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)
}public static CompletableFuture<GetDelegationSubscriptionsResult> getDelegationSubscriptions(GetDelegationSubscriptionsArgs args, InvokeOptions options)
public static Output<GetDelegationSubscriptionsResult> getDelegationSubscriptions(GetDelegationSubscriptionsArgs args, InvokeOptions options)
fn::invoke:
function: oci:DelegateAccessControl/getDelegationSubscriptions:getDelegationSubscriptions
arguments:
# arguments dictionaryThe following arguments are supported:
- Compartment
Id string - The OCID of the compartment.
- Display
Name string - A filter to return Delegation Subscription resources that match the given display name.
- Filters
List<Get
Delegation Subscriptions Filter> - State string
- A filter to return only Delegation Subscription resources whose lifecycleState matches the given Delegation Subscription lifecycle state.
- Compartment
Id string - The OCID of the compartment.
- Display
Name string - A filter to return Delegation Subscription resources that match the given display name.
- Filters
[]Get
Delegation Subscriptions Filter - State string
- A filter to return only Delegation Subscription resources whose lifecycleState matches the given Delegation Subscription lifecycle state.
- compartment
Id String - The OCID of the compartment.
- display
Name String - A filter to return Delegation Subscription resources that match the given display name.
- filters
List<Get
Delegation Subscriptions Filter> - state String
- A filter to return only Delegation Subscription resources whose lifecycleState matches the given Delegation Subscription lifecycle state.
- compartment
Id string - The OCID of the compartment.
- display
Name string - A filter to return Delegation Subscription resources that match the given display name.
- filters
Get
Delegation Subscriptions Filter[] - state string
- A filter to return only Delegation Subscription resources whose lifecycleState matches the given Delegation Subscription lifecycle state.
- compartment_
id str - The OCID of the compartment.
- display_
name str - A filter to return Delegation Subscription resources that match the given display name.
- filters
Sequence[Get
Delegation Subscriptions Filter] - state str
- A filter to return only Delegation Subscription resources whose lifecycleState matches the given Delegation Subscription lifecycle state.
- compartment
Id String - The OCID of the compartment.
- display
Name String - A filter to return Delegation Subscription resources that match the given display name.
- filters 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:
- Compartment
Id string - The OCID of the compartment that contains the Delegation Subscription.
- Delegation
Subscription List<GetSummary Collections Delegation Subscriptions Delegation Subscription Summary Collection> - The list of delegation_subscription_summary_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Display
Name string - Display name
- Filters
List<Get
Delegation Subscriptions Filter> - State string
- The current lifecycle state of the Service Provider.
- Compartment
Id string - The OCID of the compartment that contains the Delegation Subscription.
- Delegation
Subscription []GetSummary Collections Delegation Subscriptions Delegation Subscription Summary Collection - The list of delegation_subscription_summary_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Display
Name string - Display name
- Filters
[]Get
Delegation Subscriptions Filter - State string
- The current lifecycle state of the Service Provider.
- compartment
Id String - The OCID of the compartment that contains the Delegation Subscription.
- delegation
Subscription List<GetSummary Collections Delegation Subscriptions Delegation Subscription Summary Collection> - The list of delegation_subscription_summary_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- display
Name String - Display name
- filters
List<Get
Delegation Subscriptions Filter> - state String
- The current lifecycle state of the Service Provider.
- compartment
Id string - The OCID of the compartment that contains the Delegation Subscription.
- delegation
Subscription GetSummary Collections Delegation Subscriptions Delegation Subscription Summary Collection[] - The list of delegation_subscription_summary_collection.
- id string
- The provider-assigned unique ID for this managed resource.
- display
Name string - Display name
- filters
Get
Delegation Subscriptions Filter[] - 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_ Sequence[Getsummary_ collections Delegation Subscriptions Delegation Subscription Summary Collection] - 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[Get
Delegation Subscriptions Filter] - state str
- The current lifecycle state of the Service Provider.
- compartment
Id String - The OCID of the compartment that contains the Delegation Subscription.
- delegation
Subscription List<Property Map>Summary Collections - The list of delegation_subscription_summary_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- display
Name String - Display name
- filters List<Property Map>
- state String
- The current lifecycle state of the Service Provider.
Supporting Types
GetDelegationSubscriptionsDelegationSubscriptionSummaryCollection
GetDelegationSubscriptionsDelegationSubscriptionSummaryCollectionItem
- Compartment
Id 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 Delegation Subscription.
- Display
Name string - A filter to return Delegation Subscription resources that match the given display name.
- 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 Delegation Subscription.
- Lifecycle
State stringDetails - Description of the current lifecycle state in more detail.
- Service
Provider stringId - Unique identifier of the Service Provider.
- State string
- A filter to return only Delegation Subscription resources whose lifecycleState matches the given Delegation Subscription lifecycle state.
- Subscribed
Service stringType - Subscribed Service Provider Service Type.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - Time when the Service Provider was created expressed in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
- Time
Updated 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 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 Delegation Subscription.
- Display
Name string - A filter to return Delegation Subscription resources that match the given display name.
- 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 Delegation Subscription.
- Lifecycle
State stringDetails - Description of the current lifecycle state in more detail.
- Service
Provider stringId - Unique identifier of the Service Provider.
- State string
- A filter to return only Delegation Subscription resources whose lifecycleState matches the given Delegation Subscription lifecycle state.
- Subscribed
Service stringType - Subscribed Service Provider Service Type.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - Time
Created string - Time when the Service Provider was created expressed in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
- Time
Updated 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 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 Delegation Subscription.
- display
Name String - A filter to return Delegation Subscription resources that match the given display name.
- 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 Delegation Subscription.
- lifecycle
State StringDetails - Description of the current lifecycle state in more detail.
- service
Provider StringId - Unique identifier of the Service Provider.
- state String
- A filter to return only Delegation Subscription resources whose lifecycleState matches the given Delegation Subscription lifecycle state.
- subscribed
Service StringType - Subscribed Service Provider Service Type.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - Time when the Service Provider was created expressed in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
- time
Updated 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 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 Delegation Subscription.
- display
Name string - A filter to return Delegation Subscription resources that match the given display name.
- {[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 Delegation Subscription.
- lifecycle
State stringDetails - Description of the current lifecycle state in more detail.
- service
Provider stringId - Unique identifier of the Service Provider.
- state string
- A filter to return only Delegation Subscription resources whose lifecycleState matches the given Delegation Subscription lifecycle state.
- subscribed
Service stringType - Subscribed Service Provider Service Type.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created string - Time when the Service Provider was created expressed in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
- time
Updated 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 Delegation Subscription.
- display_
name str - A filter to return Delegation Subscription resources that match the given display name.
- 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 Delegation Subscription.
- lifecycle_
state_ strdetails - Description of the current lifecycle state in more detail.
- service_
provider_ strid - Unique identifier of the Service Provider.
- state str
- A filter to return only Delegation Subscription resources whose lifecycleState matches the given Delegation Subscription lifecycle state.
- subscribed_
service_ strtype - Subscribed Service Provider Service Type.
- 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'
- compartment
Id 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 Delegation Subscription.
- display
Name String - A filter to return Delegation Subscription resources that match the given display name.
- 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 Delegation Subscription.
- lifecycle
State StringDetails - Description of the current lifecycle state in more detail.
- service
Provider StringId - Unique identifier of the Service Provider.
- state String
- A filter to return only Delegation Subscription resources whose lifecycleState matches the given Delegation Subscription lifecycle state.
- subscribed
Service StringType - Subscribed Service Provider Service Type.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - time
Created String - Time when the Service Provider was created expressed in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
- time
Updated String - Time when the Service Provider was last modified expressed in RFC 3339 timestamp format, e.g. '2020-05-22T21:10:29.600Z'
GetDelegationSubscriptionsFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
