outscale 1.0.1 published on Thursday, Mar 13, 2025 by outscale
outscale.getEntitiesLinkedToPolicy
Explore with Pulumi AI
Provides information about entities (account, users, or user groups) linked to a specific managed policy.
For more information on this resource, see the User Guide.
For more information on this resource actions, see the API documentation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as outscale from "@pulumi/outscale";
const entitiesLinkedPolicy01 = outscale.getEntitiesLinkedToPolicy({
    entitiesTypes: [
        "USER",
        "GROUP",
        "ACCOUNT",
    ],
    policyOrn: "orn:ows:idauth::012345678910:policy/example/example-policy",
});
import pulumi
import pulumi_outscale as outscale
entities_linked_policy01 = outscale.get_entities_linked_to_policy(entities_types=[
        "USER",
        "GROUP",
        "ACCOUNT",
    ],
    policy_orn="orn:ows:idauth::012345678910:policy/example/example-policy")
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/outscale/outscale"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := outscale.GetEntitiesLinkedToPolicy(ctx, &outscale.GetEntitiesLinkedToPolicyArgs{
			EntitiesTypes: []string{
				"USER",
				"GROUP",
				"ACCOUNT",
			},
			PolicyOrn: "orn:ows:idauth::012345678910:policy/example/example-policy",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Outscale = Pulumi.Outscale;
return await Deployment.RunAsync(() => 
{
    var entitiesLinkedPolicy01 = Outscale.GetEntitiesLinkedToPolicy.Invoke(new()
    {
        EntitiesTypes = new[]
        {
            "USER",
            "GROUP",
            "ACCOUNT",
        },
        PolicyOrn = "orn:ows:idauth::012345678910:policy/example/example-policy",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.outscale.OutscaleFunctions;
import com.pulumi.outscale.inputs.GetEntitiesLinkedToPolicyArgs;
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 entitiesLinkedPolicy01 = OutscaleFunctions.getEntitiesLinkedToPolicy(GetEntitiesLinkedToPolicyArgs.builder()
            .entitiesTypes(            
                "USER",
                "GROUP",
                "ACCOUNT")
            .policyOrn("orn:ows:idauth::012345678910:policy/example/example-policy")
            .build());
    }
}
variables:
  entitiesLinkedPolicy01:
    fn::invoke:
      function: outscale:getEntitiesLinkedToPolicy
      arguments:
        entitiesTypes:
          - USER
          - GROUP
          - ACCOUNT
        policyOrn: orn:ows:idauth::012345678910:policy/example/example-policy
Using getEntitiesLinkedToPolicy
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 getEntitiesLinkedToPolicy(args: GetEntitiesLinkedToPolicyArgs, opts?: InvokeOptions): Promise<GetEntitiesLinkedToPolicyResult>
function getEntitiesLinkedToPolicyOutput(args: GetEntitiesLinkedToPolicyOutputArgs, opts?: InvokeOptions): Output<GetEntitiesLinkedToPolicyResult>def get_entities_linked_to_policy(entities_types: Optional[Sequence[str]] = None,
                                  id: Optional[str] = None,
                                  policy_orn: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetEntitiesLinkedToPolicyResult
def get_entities_linked_to_policy_output(entities_types: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                  id: Optional[pulumi.Input[str]] = None,
                                  policy_orn: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetEntitiesLinkedToPolicyResult]func GetEntitiesLinkedToPolicy(ctx *Context, args *GetEntitiesLinkedToPolicyArgs, opts ...InvokeOption) (*GetEntitiesLinkedToPolicyResult, error)
func GetEntitiesLinkedToPolicyOutput(ctx *Context, args *GetEntitiesLinkedToPolicyOutputArgs, opts ...InvokeOption) GetEntitiesLinkedToPolicyResultOutput> Note: This function is named GetEntitiesLinkedToPolicy in the Go SDK.
public static class GetEntitiesLinkedToPolicy 
{
    public static Task<GetEntitiesLinkedToPolicyResult> InvokeAsync(GetEntitiesLinkedToPolicyArgs args, InvokeOptions? opts = null)
    public static Output<GetEntitiesLinkedToPolicyResult> Invoke(GetEntitiesLinkedToPolicyInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetEntitiesLinkedToPolicyResult> getEntitiesLinkedToPolicy(GetEntitiesLinkedToPolicyArgs args, InvokeOptions options)
public static Output<GetEntitiesLinkedToPolicyResult> getEntitiesLinkedToPolicy(GetEntitiesLinkedToPolicyArgs args, InvokeOptions options)
fn::invoke:
  function: outscale:index/getEntitiesLinkedToPolicy:getEntitiesLinkedToPolicy
  arguments:
    # arguments dictionaryThe following arguments are supported:
- PolicyOrn string
- The OUTSCALE Resource Name (ORN) of the policy. For more information, see Resource Identifiers.
- EntitiesTypes List<string>
- The type of entity linked to the policy (ACCOUNT|USER|GROUP) you want to get information about.
- Id string
- The ID of the entity.
- PolicyOrn string
- The OUTSCALE Resource Name (ORN) of the policy. For more information, see Resource Identifiers.
- EntitiesTypes []string
- The type of entity linked to the policy (ACCOUNT|USER|GROUP) you want to get information about.
- Id string
- The ID of the entity.
- policyOrn String
- The OUTSCALE Resource Name (ORN) of the policy. For more information, see Resource Identifiers.
- entitiesTypes List<String>
- The type of entity linked to the policy (ACCOUNT|USER|GROUP) you want to get information about.
- id String
- The ID of the entity.
- policyOrn string
- The OUTSCALE Resource Name (ORN) of the policy. For more information, see Resource Identifiers.
- entitiesTypes string[]
- The type of entity linked to the policy (ACCOUNT|USER|GROUP) you want to get information about.
- id string
- The ID of the entity.
- policy_orn str
- The OUTSCALE Resource Name (ORN) of the policy. For more information, see Resource Identifiers.
- entities_types Sequence[str]
- The type of entity linked to the policy (ACCOUNT|USER|GROUP) you want to get information about.
- id str
- The ID of the entity.
- policyOrn String
- The OUTSCALE Resource Name (ORN) of the policy. For more information, see Resource Identifiers.
- entitiesTypes List<String>
- The type of entity linked to the policy (ACCOUNT|USER|GROUP) you want to get information about.
- id String
- The ID of the entity.
getEntitiesLinkedToPolicy Result
The following output properties are available:
- Id string
- The ID of the entity.
- PolicyEntities List<GetEntities Linked To Policy Policy Entity> 
- PolicyOrn string
- EntitiesTypes List<string>
- Id string
- The ID of the entity.
- PolicyEntities []GetEntities Linked To Policy Policy Entity 
- PolicyOrn string
- EntitiesTypes []string
- id String
- The ID of the entity.
- policyEntities List<GetEntities Linked To Policy Policy Entity> 
- policyOrn String
- entitiesTypes List<String>
- id string
- The ID of the entity.
- policyEntities GetEntities Linked To Policy Policy Entity[] 
- policyOrn string
- entitiesTypes string[]
- id str
- The ID of the entity.
- policy_entities Sequence[GetEntities Linked To Policy Policy Entity] 
- policy_orn str
- entities_types Sequence[str]
- id String
- The ID of the entity.
- policyEntities List<Property Map>
- policyOrn String
- entitiesTypes List<String>
Supporting Types
GetEntitiesLinkedToPolicyPolicyEntity      
- accounts List<Property Map>
- TODO_ARRAY
- groups List<Property Map>
- TODO_ARRAY
- users List<Property Map>
- TODO_ARRAY
GetEntitiesLinkedToPolicyPolicyEntityAccount       
- Id string
- The ID of the entity.
- Name string
- The name of the entity.
- Orn string
- The OUTSCALE Resource Name (ORN) of the entity. For more information, see Resource Identifiers.
- Id string
- The ID of the entity.
- Name string
- The name of the entity.
- Orn string
- The OUTSCALE Resource Name (ORN) of the entity. For more information, see Resource Identifiers.
- id String
- The ID of the entity.
- name String
- The name of the entity.
- orn String
- The OUTSCALE Resource Name (ORN) of the entity. For more information, see Resource Identifiers.
- id string
- The ID of the entity.
- name string
- The name of the entity.
- orn string
- The OUTSCALE Resource Name (ORN) of the entity. For more information, see Resource Identifiers.
- id str
- The ID of the entity.
- name str
- The name of the entity.
- orn str
- The OUTSCALE Resource Name (ORN) of the entity. For more information, see Resource Identifiers.
- id String
- The ID of the entity.
- name String
- The name of the entity.
- orn String
- The OUTSCALE Resource Name (ORN) of the entity. For more information, see Resource Identifiers.
GetEntitiesLinkedToPolicyPolicyEntityGroup       
- Id string
- The ID of the entity.
- Name string
- The name of the entity.
- Orn string
- The OUTSCALE Resource Name (ORN) of the entity. For more information, see Resource Identifiers.
- Id string
- The ID of the entity.
- Name string
- The name of the entity.
- Orn string
- The OUTSCALE Resource Name (ORN) of the entity. For more information, see Resource Identifiers.
- id String
- The ID of the entity.
- name String
- The name of the entity.
- orn String
- The OUTSCALE Resource Name (ORN) of the entity. For more information, see Resource Identifiers.
- id string
- The ID of the entity.
- name string
- The name of the entity.
- orn string
- The OUTSCALE Resource Name (ORN) of the entity. For more information, see Resource Identifiers.
- id str
- The ID of the entity.
- name str
- The name of the entity.
- orn str
- The OUTSCALE Resource Name (ORN) of the entity. For more information, see Resource Identifiers.
- id String
- The ID of the entity.
- name String
- The name of the entity.
- orn String
- The OUTSCALE Resource Name (ORN) of the entity. For more information, see Resource Identifiers.
GetEntitiesLinkedToPolicyPolicyEntityUser       
- Id string
- The ID of the entity.
- Name string
- The name of the entity.
- Orn string
- The OUTSCALE Resource Name (ORN) of the entity. For more information, see Resource Identifiers.
- Id string
- The ID of the entity.
- Name string
- The name of the entity.
- Orn string
- The OUTSCALE Resource Name (ORN) of the entity. For more information, see Resource Identifiers.
- id String
- The ID of the entity.
- name String
- The name of the entity.
- orn String
- The OUTSCALE Resource Name (ORN) of the entity. For more information, see Resource Identifiers.
- id string
- The ID of the entity.
- name string
- The name of the entity.
- orn string
- The OUTSCALE Resource Name (ORN) of the entity. For more information, see Resource Identifiers.
- id str
- The ID of the entity.
- name str
- The name of the entity.
- orn str
- The OUTSCALE Resource Name (ORN) of the entity. For more information, see Resource Identifiers.
- id String
- The ID of the entity.
- name String
- The name of the entity.
- orn String
- The OUTSCALE Resource Name (ORN) of the entity. For more information, see Resource Identifiers.
Package Details
- Repository
- outscale outscale/terraform-provider-outscale
- License
- Notes
- This Pulumi package is based on the outscaleTerraform Provider.