1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. DelegateAccessControl
  5. getDelegationControlResources
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

oci.DelegateAccessControl.getDelegationControlResources

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi

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

    Returns a list of resources associated with the Delegation Control.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testDelegationControlResources = oci.DelegateAccessControl.getDelegationControlResources({
        delegationControlId: testDelegationControl.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_delegation_control_resources = oci.DelegateAccessControl.get_delegation_control_resources(delegation_control_id=test_delegation_control["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.GetDelegationControlResources(ctx, &delegateaccesscontrol.GetDelegationControlResourcesArgs{
    			DelegationControlId: testDelegationControl.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 testDelegationControlResources = Oci.DelegateAccessControl.GetDelegationControlResources.Invoke(new()
        {
            DelegationControlId = testDelegationControl.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.GetDelegationControlResourcesArgs;
    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 testDelegationControlResources = DelegateAccessControlFunctions.getDelegationControlResources(GetDelegationControlResourcesArgs.builder()
                .delegationControlId(testDelegationControl.id())
                .build());
    
        }
    }
    
    variables:
      testDelegationControlResources:
        fn::invoke:
          Function: oci:DelegateAccessControl:getDelegationControlResources
          Arguments:
            delegationControlId: ${testDelegationControl.id}
    

    Using getDelegationControlResources

    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 getDelegationControlResources(args: GetDelegationControlResourcesArgs, opts?: InvokeOptions): Promise<GetDelegationControlResourcesResult>
    function getDelegationControlResourcesOutput(args: GetDelegationControlResourcesOutputArgs, opts?: InvokeOptions): Output<GetDelegationControlResourcesResult>
    def get_delegation_control_resources(delegation_control_id: Optional[str] = None,
                                         filters: Optional[Sequence[_delegateaccesscontrol.GetDelegationControlResourcesFilter]] = None,
                                         opts: Optional[InvokeOptions] = None) -> GetDelegationControlResourcesResult
    def get_delegation_control_resources_output(delegation_control_id: Optional[pulumi.Input[str]] = None,
                                         filters: Optional[pulumi.Input[Sequence[pulumi.Input[_delegateaccesscontrol.GetDelegationControlResourcesFilterArgs]]]] = None,
                                         opts: Optional[InvokeOptions] = None) -> Output[GetDelegationControlResourcesResult]
    func GetDelegationControlResources(ctx *Context, args *GetDelegationControlResourcesArgs, opts ...InvokeOption) (*GetDelegationControlResourcesResult, error)
    func GetDelegationControlResourcesOutput(ctx *Context, args *GetDelegationControlResourcesOutputArgs, opts ...InvokeOption) GetDelegationControlResourcesResultOutput

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

    public static class GetDelegationControlResources 
    {
        public static Task<GetDelegationControlResourcesResult> InvokeAsync(GetDelegationControlResourcesArgs args, InvokeOptions? opts = null)
        public static Output<GetDelegationControlResourcesResult> Invoke(GetDelegationControlResourcesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDelegationControlResourcesResult> getDelegationControlResources(GetDelegationControlResourcesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:DelegateAccessControl/getDelegationControlResources:getDelegationControlResources
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DelegationControlId string
    unique Delegation Control identifier
    Filters []GetDelegationControlResourcesFilter
    delegationControlId string
    unique Delegation Control identifier
    filters GetDelegationControlResourcesFilter[]
    delegationControlId String
    unique Delegation Control identifier
    filters List<Property Map>

    getDelegationControlResources Result

    The following output properties are available:

    DelegationControlId string
    DelegationControlResourceCollections List<GetDelegationControlResourcesDelegationControlResourceCollection>
    The list of delegation_control_resource_collection.
    Id string
    The provider-assigned unique ID for this managed resource.
    Filters List<GetDelegationControlResourcesFilter>
    DelegationControlId string
    DelegationControlResourceCollections []GetDelegationControlResourcesDelegationControlResourceCollection
    The list of delegation_control_resource_collection.
    Id string
    The provider-assigned unique ID for this managed resource.
    Filters []GetDelegationControlResourcesFilter
    delegationControlId String
    delegationControlResourceCollections List<GetDelegationControlResourcesDelegationControlResourceCollection>
    The list of delegation_control_resource_collection.
    id String
    The provider-assigned unique ID for this managed resource.
    filters List<GetDelegationControlResourcesFilter>
    delegationControlId string
    delegationControlResourceCollections GetDelegationControlResourcesDelegationControlResourceCollection[]
    The list of delegation_control_resource_collection.
    id string
    The provider-assigned unique ID for this managed resource.
    filters GetDelegationControlResourcesFilter[]
    delegationControlId String
    delegationControlResourceCollections List<Property Map>
    The list of delegation_control_resource_collection.
    id String
    The provider-assigned unique ID for this managed resource.
    filters List<Property Map>

    Supporting Types

    GetDelegationControlResourcesDelegationControlResourceCollection

    Items []GetDelegationControlResourcesDelegationControlResourceCollectionItem
    List of DelegationControlResourceSummary objects.
    items GetDelegationControlResourcesDelegationControlResourceCollectionItem[]
    List of DelegationControlResourceSummary objects.
    items List<Property Map>
    List of DelegationControlResourceSummary objects.

    GetDelegationControlResourcesDelegationControlResourceCollectionItem

    Id string
    OCID of the resource.
    ResourceStatus string
    The current status of the resource in Delegation Control.
    Id string
    OCID of the resource.
    ResourceStatus string
    The current status of the resource in Delegation Control.
    id String
    OCID of the resource.
    resourceStatus String
    The current status of the resource in Delegation Control.
    id string
    OCID of the resource.
    resourceStatus string
    The current status of the resource in Delegation Control.
    id str
    OCID of the resource.
    resource_status str
    The current status of the resource in Delegation Control.
    id String
    OCID of the resource.
    resourceStatus String
    The current status of the resource in Delegation Control.

    GetDelegationControlResourcesFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values 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.
    oci logo
    Oracle Cloud Infrastructure v2.11.0 published on Thursday, Sep 19, 2024 by Pulumi