Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi
oci.DelegateAccessControl.getDelegationSubscription
Explore with Pulumi AI
This data source provides details about a specific Delegation Subscription resource in Oracle Cloud Infrastructure Delegate Access Control service.
Gets a DelegationSubscription by identifier
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testDelegationSubscription = oci.DelegateAccessControl.getDelegationSubscription({
delegationSubscriptionId: testDelegationSubscriptionOciDelegateAccessControlDelegationSubscription.id,
});
import pulumi
import pulumi_oci as oci
test_delegation_subscription = oci.DelegateAccessControl.get_delegation_subscription(delegation_subscription_id=test_delegation_subscription_oci_delegate_access_control_delegation_subscription["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/DelegateAccessControl"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := DelegateAccessControl.GetDelegationSubscription(ctx, &delegateaccesscontrol.GetDelegationSubscriptionArgs{
DelegationSubscriptionId: testDelegationSubscriptionOciDelegateAccessControlDelegationSubscription.Id,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Oci = Pulumi.Oci;
return await Deployment.RunAsync(() =>
{
var testDelegationSubscription = Oci.DelegateAccessControl.GetDelegationSubscription.Invoke(new()
{
DelegationSubscriptionId = testDelegationSubscriptionOciDelegateAccessControlDelegationSubscription.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.DelegateAccessControl.DelegateAccessControlFunctions;
import com.pulumi.oci.DelegateAccessControl.inputs.GetDelegationSubscriptionArgs;
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 testDelegationSubscription = DelegateAccessControlFunctions.getDelegationSubscription(GetDelegationSubscriptionArgs.builder()
.delegationSubscriptionId(testDelegationSubscriptionOciDelegateAccessControlDelegationSubscription.id())
.build());
}
}
variables:
testDelegationSubscription:
fn::invoke:
Function: oci:DelegateAccessControl:getDelegationSubscription
Arguments:
delegationSubscriptionId: ${testDelegationSubscriptionOciDelegateAccessControlDelegationSubscription.id}
Using getDelegationSubscription
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 getDelegationSubscription(args: GetDelegationSubscriptionArgs, opts?: InvokeOptions): Promise<GetDelegationSubscriptionResult>
function getDelegationSubscriptionOutput(args: GetDelegationSubscriptionOutputArgs, opts?: InvokeOptions): Output<GetDelegationSubscriptionResult>
def get_delegation_subscription(delegation_subscription_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDelegationSubscriptionResult
def get_delegation_subscription_output(delegation_subscription_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDelegationSubscriptionResult]
func GetDelegationSubscription(ctx *Context, args *GetDelegationSubscriptionArgs, opts ...InvokeOption) (*GetDelegationSubscriptionResult, error)
func GetDelegationSubscriptionOutput(ctx *Context, args *GetDelegationSubscriptionOutputArgs, opts ...InvokeOption) GetDelegationSubscriptionResultOutput
> Note: This function is named GetDelegationSubscription
in the Go SDK.
public static class GetDelegationSubscription
{
public static Task<GetDelegationSubscriptionResult> InvokeAsync(GetDelegationSubscriptionArgs args, InvokeOptions? opts = null)
public static Output<GetDelegationSubscriptionResult> Invoke(GetDelegationSubscriptionInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDelegationSubscriptionResult> getDelegationSubscription(GetDelegationSubscriptionArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: oci:DelegateAccessControl/getDelegationSubscription:getDelegationSubscription
arguments:
# arguments dictionary
The following arguments are supported:
- Delegation
Subscription stringId - unique Delegation Subscription identifier
- Delegation
Subscription stringId - unique Delegation Subscription identifier
- delegation
Subscription StringId - unique Delegation Subscription identifier
- delegation
Subscription stringId - unique Delegation Subscription identifier
- delegation_
subscription_ strid - unique Delegation Subscription identifier
- delegation
Subscription StringId - unique Delegation Subscription identifier
getDelegationSubscription Result
The following output properties are available:
- Compartment
Id string - The OCID of the compartment that contains the Delegation Subscription.
- 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"}
- Delegation
Subscription stringId - Description string
- Description of the Delegation Subscription.
- Display
Name string - 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
- The current lifecycle state of the Service Provider.
- 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 that contains the Delegation Subscription.
- 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"}
- Delegation
Subscription stringId - Description string
- Description of the Delegation Subscription.
- Display
Name string - 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
- The current lifecycle state of the Service Provider.
- 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 that contains the Delegation Subscription.
- 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"}
- delegation
Subscription StringId - description String
- Description of the Delegation Subscription.
- display
Name String - 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
- The current lifecycle state of the Service Provider.
- 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 that contains the Delegation Subscription.
- {[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"}
- delegation
Subscription stringId - description string
- Description of the Delegation Subscription.
- display
Name string - 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
- The current lifecycle state of the Service Provider.
- 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 that contains the Delegation Subscription.
- 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"}
- delegation_
subscription_ strid - description str
- Description of the Delegation Subscription.
- display_
name str - 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
- The current lifecycle state of the Service Provider.
- 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 that contains the Delegation Subscription.
- 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"}
- delegation
Subscription StringId - description String
- Description of the Delegation Subscription.
- display
Name String - 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
- The current lifecycle state of the Service Provider.
- 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'
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.