1. Packages
  2. Outscale Provider
  3. API Docs
  4. getEntitiesLinkedToPolicy
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",
});
Copy
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")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
variables:
  entitiesLinkedPolicy01:
    fn::invoke:
      function: outscale:getEntitiesLinkedToPolicy
      arguments:
        entitiesTypes:
          - USER
          - GROUP
          - ACCOUNT
        policyOrn: orn:ows:idauth::012345678910:policy/example/example-policy
Copy

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>
Copy
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]
Copy
func GetEntitiesLinkedToPolicy(ctx *Context, args *GetEntitiesLinkedToPolicyArgs, opts ...InvokeOption) (*GetEntitiesLinkedToPolicyResult, error)
func GetEntitiesLinkedToPolicyOutput(ctx *Context, args *GetEntitiesLinkedToPolicyOutputArgs, opts ...InvokeOption) GetEntitiesLinkedToPolicyResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetEntitiesLinkedToPolicyResult> getEntitiesLinkedToPolicy(GetEntitiesLinkedToPolicyArgs args, InvokeOptions options)
public static Output<GetEntitiesLinkedToPolicyResult> getEntitiesLinkedToPolicy(GetEntitiesLinkedToPolicyArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: outscale:index/getEntitiesLinkedToPolicy:getEntitiesLinkedToPolicy
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

PolicyOrn This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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<Property Map>
policyOrn String
entitiesTypes List<String>

Supporting Types

GetEntitiesLinkedToPolicyPolicyEntity

Accounts This property is required. List<GetEntitiesLinkedToPolicyPolicyEntityAccount>
TODO_ARRAY
Groups This property is required. List<GetEntitiesLinkedToPolicyPolicyEntityGroup>
TODO_ARRAY
Users This property is required. List<GetEntitiesLinkedToPolicyPolicyEntityUser>
TODO_ARRAY
Accounts This property is required. []GetEntitiesLinkedToPolicyPolicyEntityAccount
TODO_ARRAY
Groups This property is required. []GetEntitiesLinkedToPolicyPolicyEntityGroup
TODO_ARRAY
Users This property is required. []GetEntitiesLinkedToPolicyPolicyEntityUser
TODO_ARRAY
accounts This property is required. List<GetEntitiesLinkedToPolicyPolicyEntityAccount>
TODO_ARRAY
groups This property is required. List<GetEntitiesLinkedToPolicyPolicyEntityGroup>
TODO_ARRAY
users This property is required. List<GetEntitiesLinkedToPolicyPolicyEntityUser>
TODO_ARRAY
accounts This property is required. GetEntitiesLinkedToPolicyPolicyEntityAccount[]
TODO_ARRAY
groups This property is required. GetEntitiesLinkedToPolicyPolicyEntityGroup[]
TODO_ARRAY
users This property is required. GetEntitiesLinkedToPolicyPolicyEntityUser[]
TODO_ARRAY
accounts This property is required. List<Property Map>
TODO_ARRAY
groups This property is required. List<Property Map>
TODO_ARRAY
users This property is required. List<Property Map>
TODO_ARRAY

GetEntitiesLinkedToPolicyPolicyEntityAccount

Id This property is required. string
The ID of the entity.
Name This property is required. string
The name of the entity.
Orn This property is required. string
The OUTSCALE Resource Name (ORN) of the entity. For more information, see Resource Identifiers.
Id This property is required. string
The ID of the entity.
Name This property is required. string
The name of the entity.
Orn This property is required. string
The OUTSCALE Resource Name (ORN) of the entity. For more information, see Resource Identifiers.
id This property is required. String
The ID of the entity.
name This property is required. String
The name of the entity.
orn This property is required. String
The OUTSCALE Resource Name (ORN) of the entity. For more information, see Resource Identifiers.
id This property is required. string
The ID of the entity.
name This property is required. string
The name of the entity.
orn This property is required. string
The OUTSCALE Resource Name (ORN) of the entity. For more information, see Resource Identifiers.
id This property is required. str
The ID of the entity.
name This property is required. str
The name of the entity.
orn This property is required. str
The OUTSCALE Resource Name (ORN) of the entity. For more information, see Resource Identifiers.
id This property is required. String
The ID of the entity.
name This property is required. String
The name of the entity.
orn This property is required. String
The OUTSCALE Resource Name (ORN) of the entity. For more information, see Resource Identifiers.

GetEntitiesLinkedToPolicyPolicyEntityGroup

Id This property is required. string
The ID of the entity.
Name This property is required. string
The name of the entity.
Orn This property is required. string
The OUTSCALE Resource Name (ORN) of the entity. For more information, see Resource Identifiers.
Id This property is required. string
The ID of the entity.
Name This property is required. string
The name of the entity.
Orn This property is required. string
The OUTSCALE Resource Name (ORN) of the entity. For more information, see Resource Identifiers.
id This property is required. String
The ID of the entity.
name This property is required. String
The name of the entity.
orn This property is required. String
The OUTSCALE Resource Name (ORN) of the entity. For more information, see Resource Identifiers.
id This property is required. string
The ID of the entity.
name This property is required. string
The name of the entity.
orn This property is required. string
The OUTSCALE Resource Name (ORN) of the entity. For more information, see Resource Identifiers.
id This property is required. str
The ID of the entity.
name This property is required. str
The name of the entity.
orn This property is required. str
The OUTSCALE Resource Name (ORN) of the entity. For more information, see Resource Identifiers.
id This property is required. String
The ID of the entity.
name This property is required. String
The name of the entity.
orn This property is required. String
The OUTSCALE Resource Name (ORN) of the entity. For more information, see Resource Identifiers.

GetEntitiesLinkedToPolicyPolicyEntityUser

Id This property is required. string
The ID of the entity.
Name This property is required. string
The name of the entity.
Orn This property is required. string
The OUTSCALE Resource Name (ORN) of the entity. For more information, see Resource Identifiers.
Id This property is required. string
The ID of the entity.
Name This property is required. string
The name of the entity.
Orn This property is required. string
The OUTSCALE Resource Name (ORN) of the entity. For more information, see Resource Identifiers.
id This property is required. String
The ID of the entity.
name This property is required. String
The name of the entity.
orn This property is required. String
The OUTSCALE Resource Name (ORN) of the entity. For more information, see Resource Identifiers.
id This property is required. string
The ID of the entity.
name This property is required. string
The name of the entity.
orn This property is required. string
The OUTSCALE Resource Name (ORN) of the entity. For more information, see Resource Identifiers.
id This property is required. str
The ID of the entity.
name This property is required. str
The name of the entity.
orn This property is required. str
The OUTSCALE Resource Name (ORN) of the entity. For more information, see Resource Identifiers.
id This property is required. String
The ID of the entity.
name This property is required. String
The name of the entity.
orn This property is required. 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 outscale Terraform Provider.