Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi
oci.DelegateAccessControl.getDelegationControlResources
Explore with Pulumi AI
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:
- Delegation
Control stringId - unique Delegation Control identifier
- Filters
List<Get
Delegation Control Resources Filter>
- Delegation
Control stringId - unique Delegation Control identifier
- Filters
[]Get
Delegation Control Resources Filter
- delegation
Control StringId - unique Delegation Control identifier
- filters
List<Get
Delegation Control Resources Filter>
- delegation
Control stringId - unique Delegation Control identifier
- filters
Get
Delegation Control Resources Filter[]
- delegation_
control_ strid - unique Delegation Control identifier
- filters
Sequence[delegateaccesscontrol.
Get Delegation Control Resources Filter]
- delegation
Control StringId - unique Delegation Control identifier
- filters List<Property Map>
getDelegationControlResources Result
The following output properties are available:
- Delegation
Control stringId - Delegation
Control List<GetResource Collections Delegation Control Resources Delegation Control Resource Collection> - The list of delegation_control_resource_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
List<Get
Delegation Control Resources Filter>
- Delegation
Control stringId - Delegation
Control []GetResource Collections Delegation Control Resources Delegation Control Resource Collection - The list of delegation_control_resource_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Filters
[]Get
Delegation Control Resources Filter
- delegation
Control StringId - delegation
Control List<GetResource Collections Delegation Control Resources Delegation Control Resource Collection> - The list of delegation_control_resource_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- filters
List<Get
Delegation Control Resources Filter>
- delegation
Control stringId - delegation
Control GetResource Collections Delegation Control Resources Delegation Control Resource Collection[] - The list of delegation_control_resource_collection.
- id string
- The provider-assigned unique ID for this managed resource.
- filters
Get
Delegation Control Resources Filter[]
- delegation_
control_ strid - delegation_
control_ Sequence[delegateaccesscontrol.resource_ collections Get Delegation Control Resources Delegation Control Resource Collection] - The list of delegation_control_resource_collection.
- id str
- The provider-assigned unique ID for this managed resource.
- filters
Sequence[delegateaccesscontrol.
Get Delegation Control Resources Filter]
- delegation
Control StringId - delegation
Control List<Property Map>Resource Collections - 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
List<Get
Delegation Control Resources Delegation Control Resource Collection Item> - List of DelegationControlResourceSummary objects.
- Items
[]Get
Delegation Control Resources Delegation Control Resource Collection Item - List of DelegationControlResourceSummary objects.
- items
List<Get
Delegation Control Resources Delegation Control Resource Collection Item> - List of DelegationControlResourceSummary objects.
- items
Get
Delegation Control Resources Delegation Control Resource Collection Item[] - List of DelegationControlResourceSummary objects.
- items
Sequence[delegateaccesscontrol.
Get Delegation Control Resources Delegation Control Resource Collection Item] - List of DelegationControlResourceSummary objects.
- items List<Property Map>
- List of DelegationControlResourceSummary objects.
GetDelegationControlResourcesDelegationControlResourceCollectionItem
- Id string
- OCID of the resource.
- Resource
Status string - The current status of the resource in Delegation Control.
- Id string
- OCID of the resource.
- Resource
Status string - The current status of the resource in Delegation Control.
- id String
- OCID of the resource.
- resource
Status String - The current status of the resource in Delegation Control.
- id string
- OCID of the resource.
- resource
Status 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.
- resource
Status String - The current status of the resource in Delegation Control.
GetDelegationControlResourcesFilter
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.