outscale 1.2.1 published on Wednesday, Aug 27, 2025 by outscale
outscale.getEntitiesLinkedToPolicy
Explore with Pulumi AI
outscale 1.2.1 published on Wednesday, Aug 27, 2025 by outscale
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 dictionary
The following arguments are supported:
- Policy
Orn string - The OUTSCALE Resource Name (ORN) of the policy. For more information, see Resource Identifiers.
- Entities
Types 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.
- Policy
Orn string - The OUTSCALE Resource Name (ORN) of the policy. For more information, see Resource Identifiers.
- Entities
Types []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 String - The OUTSCALE Resource Name (ORN) of the policy. For more information, see Resource Identifiers.
- entities
Types 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.
- policy
Orn string - The OUTSCALE Resource Name (ORN) of the policy. For more information, see Resource Identifiers.
- entities
Types 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.
- policy
Orn String - The OUTSCALE Resource Name (ORN) of the policy. For more information, see Resource Identifiers.
- entities
Types 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.
- Policy
Entities List<GetEntities Linked To Policy Policy Entity> - Policy
Orn string - Entities
Types List<string>
- Id string
- The ID of the entity.
- Policy
Entities []GetEntities Linked To Policy Policy Entity - Policy
Orn string - Entities
Types []string
- id String
- The ID of the entity.
- policy
Entities List<GetEntities Linked To Policy Policy Entity> - policy
Orn String - entities
Types List<String>
- id string
- The ID of the entity.
- policy
Entities GetEntities Linked To Policy Policy Entity[] - policy
Orn string - entities
Types 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.
- policy
Entities List<Property Map> - policy
Orn String - entities
Types List<String>
Supporting Types
GetEntitiesLinkedToPolicyPolicyEntity
- Accounts
List<Get
Entities Linked To Policy Policy Entity Account> - The accounts linked to the specified policy.
- Groups
List<Get
Entities Linked To Policy Policy Entity Group> - The groups linked to the specified policy.
- Users
List<Get
Entities Linked To Policy Policy Entity User> - The users linked to the specified policy.
- Accounts
[]Get
Entities Linked To Policy Policy Entity Account - The accounts linked to the specified policy.
- Groups
[]Get
Entities Linked To Policy Policy Entity Group - The groups linked to the specified policy.
- Users
[]Get
Entities Linked To Policy Policy Entity User - The users linked to the specified policy.
- accounts
List<Get
Entities Linked To Policy Policy Entity Account> - The accounts linked to the specified policy.
- groups
List<Get
Entities Linked To Policy Policy Entity Group> - The groups linked to the specified policy.
- users
List<Get
Entities Linked To Policy Policy Entity User> - The users linked to the specified policy.
- accounts
Get
Entities Linked To Policy Policy Entity Account[] - The accounts linked to the specified policy.
- groups
Get
Entities Linked To Policy Policy Entity Group[] - The groups linked to the specified policy.
- users
Get
Entities Linked To Policy Policy Entity User[] - The users linked to the specified policy.
- accounts
Sequence[Get
Entities Linked To Policy Policy Entity Account] - The accounts linked to the specified policy.
- groups
Sequence[Get
Entities Linked To Policy Policy Entity Group] - The groups linked to the specified policy.
- users
Sequence[Get
Entities Linked To Policy Policy Entity User] - The users linked to the specified policy.
- accounts List<Property Map>
- The accounts linked to the specified policy.
- groups List<Property Map>
- The groups linked to the specified policy.
- users List<Property Map>
- The users linked to the specified policy.
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
outscale
Terraform Provider.
outscale 1.2.1 published on Wednesday, Aug 27, 2025 by outscale