outscale 1.0.1 published on Thursday, Mar 13, 2025 by outscale
outscale.getPoliciesLinkedToUserGroup
Explore with Pulumi AI
Provides information about a link policy to user group.
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 managedPoliciesLinkedToUserGroup = outscale.getPoliciesLinkedToUserGroup({
    filters: [
        {
            name: "user_group_ids",
            values: [
                "XXXXXXX",
                "YYYYYY",
            ],
        },
        {
            name: "path_prefix",
            values: ["/test/"],
        },
    ],
    userGroupName: "user_group_name",
});
import pulumi
import pulumi_outscale as outscale
managed_policies_linked_to_user_group = outscale.get_policies_linked_to_user_group(filters=[
        {
            "name": "user_group_ids",
            "values": [
                "XXXXXXX",
                "YYYYYY",
            ],
        },
        {
            "name": "path_prefix",
            "values": ["/test/"],
        },
    ],
    user_group_name="user_group_name")
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.GetPoliciesLinkedToUserGroup(ctx, &outscale.GetPoliciesLinkedToUserGroupArgs{
			Filters: []outscale.GetPoliciesLinkedToUserGroupFilter{
				{
					Name: "user_group_ids",
					Values: []string{
						"XXXXXXX",
						"YYYYYY",
					},
				},
				{
					Name: "path_prefix",
					Values: []string{
						"/test/",
					},
				},
			},
			UserGroupName: "user_group_name",
		}, 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 managedPoliciesLinkedToUserGroup = Outscale.GetPoliciesLinkedToUserGroup.Invoke(new()
    {
        Filters = new[]
        {
            new Outscale.Inputs.GetPoliciesLinkedToUserGroupFilterInputArgs
            {
                Name = "user_group_ids",
                Values = new[]
                {
                    "XXXXXXX",
                    "YYYYYY",
                },
            },
            new Outscale.Inputs.GetPoliciesLinkedToUserGroupFilterInputArgs
            {
                Name = "path_prefix",
                Values = new[]
                {
                    "/test/",
                },
            },
        },
        UserGroupName = "user_group_name",
    });
});
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.GetPoliciesLinkedToUserGroupArgs;
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 managedPoliciesLinkedToUserGroup = OutscaleFunctions.getPoliciesLinkedToUserGroup(GetPoliciesLinkedToUserGroupArgs.builder()
            .filters(            
                GetPoliciesLinkedToUserGroupFilterArgs.builder()
                    .name("user_group_ids")
                    .values(                    
                        "XXXXXXX",
                        "YYYYYY")
                    .build(),
                GetPoliciesLinkedToUserGroupFilterArgs.builder()
                    .name("path_prefix")
                    .values("/test/")
                    .build())
            .userGroupName("user_group_name")
            .build());
    }
}
variables:
  managedPoliciesLinkedToUserGroup:
    fn::invoke:
      function: outscale:getPoliciesLinkedToUserGroup
      arguments:
        filters:
          - name: user_group_ids
            values:
              - XXXXXXX
              - YYYYYY
          - name: path_prefix
            values:
              - /test/
        userGroupName: user_group_name
Using getPoliciesLinkedToUserGroup
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 getPoliciesLinkedToUserGroup(args: GetPoliciesLinkedToUserGroupArgs, opts?: InvokeOptions): Promise<GetPoliciesLinkedToUserGroupResult>
function getPoliciesLinkedToUserGroupOutput(args: GetPoliciesLinkedToUserGroupOutputArgs, opts?: InvokeOptions): Output<GetPoliciesLinkedToUserGroupResult>def get_policies_linked_to_user_group(filters: Optional[Sequence[GetPoliciesLinkedToUserGroupFilter]] = None,
                                      id: Optional[str] = None,
                                      user_group_name: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetPoliciesLinkedToUserGroupResult
def get_policies_linked_to_user_group_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetPoliciesLinkedToUserGroupFilterArgs]]]] = None,
                                      id: Optional[pulumi.Input[str]] = None,
                                      user_group_name: Optional[pulumi.Input[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetPoliciesLinkedToUserGroupResult]func GetPoliciesLinkedToUserGroup(ctx *Context, args *GetPoliciesLinkedToUserGroupArgs, opts ...InvokeOption) (*GetPoliciesLinkedToUserGroupResult, error)
func GetPoliciesLinkedToUserGroupOutput(ctx *Context, args *GetPoliciesLinkedToUserGroupOutputArgs, opts ...InvokeOption) GetPoliciesLinkedToUserGroupResultOutput> Note: This function is named GetPoliciesLinkedToUserGroup in the Go SDK.
public static class GetPoliciesLinkedToUserGroup 
{
    public static Task<GetPoliciesLinkedToUserGroupResult> InvokeAsync(GetPoliciesLinkedToUserGroupArgs args, InvokeOptions? opts = null)
    public static Output<GetPoliciesLinkedToUserGroupResult> Invoke(GetPoliciesLinkedToUserGroupInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetPoliciesLinkedToUserGroupResult> getPoliciesLinkedToUserGroup(GetPoliciesLinkedToUserGroupArgs args, InvokeOptions options)
public static Output<GetPoliciesLinkedToUserGroupResult> getPoliciesLinkedToUserGroup(GetPoliciesLinkedToUserGroupArgs args, InvokeOptions options)
fn::invoke:
  function: outscale:index/getPoliciesLinkedToUserGroup:getPoliciesLinkedToUserGroup
  arguments:
    # arguments dictionaryThe following arguments are supported:
- UserGroup stringName 
- The name of the group.
- Filters
List<GetPolicies Linked To User Group Filter> 
- Id string
- UserGroup stringName 
- The name of the group.
- Filters
[]GetPolicies Linked To User Group Filter 
- Id string
- userGroup StringName 
- The name of the group.
- filters
List<GetPolicies Linked To User Group Filter> 
- id String
- userGroup stringName 
- The name of the group.
- filters
GetPolicies Linked To User Group Filter[] 
- id string
- user_group_ strname 
- The name of the group.
- filters
Sequence[GetPolicies Linked To User Group Filter] 
- id str
- userGroup StringName 
- The name of the group.
- filters List<Property Map>
- id String
getPoliciesLinkedToUserGroup Result
The following output properties are available:
Supporting Types
GetPoliciesLinkedToUserGroupFilter      
GetPoliciesLinkedToUserGroupPolicy      
- CreationDate string
- The date and time (UTC) at which the linked policy was created.
- LastModification stringDate 
- The date and time (UTC) at which the linked policy was last modified.
- Orn string
- The OUTSCALE Resource Name (ORN) of the policy. For more information, see Resource Identifiers.
- PolicyId string
- The ID of the policy.
- PolicyName string
- The name of the policy.
- CreationDate string
- The date and time (UTC) at which the linked policy was created.
- LastModification stringDate 
- The date and time (UTC) at which the linked policy was last modified.
- Orn string
- The OUTSCALE Resource Name (ORN) of the policy. For more information, see Resource Identifiers.
- PolicyId string
- The ID of the policy.
- PolicyName string
- The name of the policy.
- creationDate String
- The date and time (UTC) at which the linked policy was created.
- lastModification StringDate 
- The date and time (UTC) at which the linked policy was last modified.
- orn String
- The OUTSCALE Resource Name (ORN) of the policy. For more information, see Resource Identifiers.
- policyId String
- The ID of the policy.
- policyName String
- The name of the policy.
- creationDate string
- The date and time (UTC) at which the linked policy was created.
- lastModification stringDate 
- The date and time (UTC) at which the linked policy was last modified.
- orn string
- The OUTSCALE Resource Name (ORN) of the policy. For more information, see Resource Identifiers.
- policyId string
- The ID of the policy.
- policyName string
- The name of the policy.
- creation_date str
- The date and time (UTC) at which the linked policy was created.
- last_modification_ strdate 
- The date and time (UTC) at which the linked policy was last modified.
- orn str
- The OUTSCALE Resource Name (ORN) of the policy. For more information, see Resource Identifiers.
- policy_id str
- The ID of the policy.
- policy_name str
- The name of the policy.
- creationDate String
- The date and time (UTC) at which the linked policy was created.
- lastModification StringDate 
- The date and time (UTC) at which the linked policy was last modified.
- orn String
- The OUTSCALE Resource Name (ORN) of the policy. For more information, see Resource Identifiers.
- policyId String
- The ID of the policy.
- policyName String
- The name of the policy.
Package Details
- Repository
- outscale outscale/terraform-provider-outscale
- License
- Notes
- This Pulumi package is based on the outscaleTerraform Provider.