1. Packages
  2. Opentelekomcloud Provider
  3. API Docs
  4. IdentityRoleV3
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

opentelekomcloud.IdentityRoleV3

Explore with Pulumi AI

opentelekomcloud logo
opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud

    Up-to-date reference of API arguments for IAM role you can get at documentation portal

    Custom role management

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as opentelekomcloud from "@pulumi/opentelekomcloud";
    
    const role = new opentelekomcloud.IdentityRoleV3("role", {
        description: "role",
        displayLayer: "domain",
        displayName: "custom_role",
        statements: [
            {
                actions: ["obs:bucket:GetBucketAcl"],
                condition: `    {
          "StringStartWith": {
              "g:ProjectName": [
                  "eu-de"
              ]
          },
          "StringNotEqualsIgnoreCase": {
              "g:ServiceName": [
                  "iam"
              ]
        }
        
    `,
                effect: "Allow",
                resources: ["OBS:*:*:bucket:test-bucket"],
            },
            {
                actions: [
                    "obs:bucket:HeadBucket",
                    "obs:bucket:ListBucketMultipartUploads",
                    "obs:bucket:ListBucket",
                ],
                effect: "Allow",
            },
        ],
    });
    
    import pulumi
    import pulumi_opentelekomcloud as opentelekomcloud
    
    role = opentelekomcloud.IdentityRoleV3("role",
        description="role",
        display_layer="domain",
        display_name="custom_role",
        statements=[
            {
                "actions": ["obs:bucket:GetBucketAcl"],
                "condition": """    {
          "StringStartWith": {
              "g:ProjectName": [
                  "eu-de"
              ]
          },
          "StringNotEqualsIgnoreCase": {
              "g:ServiceName": [
                  "iam"
              ]
        }
        
    """,
                "effect": "Allow",
                "resources": ["OBS:*:*:bucket:test-bucket"],
            },
            {
                "actions": [
                    "obs:bucket:HeadBucket",
                    "obs:bucket:ListBucketMultipartUploads",
                    "obs:bucket:ListBucket",
                ],
                "effect": "Allow",
            },
        ])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/opentelekomcloud/opentelekomcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := opentelekomcloud.NewIdentityRoleV3(ctx, "role", &opentelekomcloud.IdentityRoleV3Args{
    			Description:  pulumi.String("role"),
    			DisplayLayer: pulumi.String("domain"),
    			DisplayName:  pulumi.String("custom_role"),
    			Statements: opentelekomcloud.IdentityRoleV3StatementArray{
    				&opentelekomcloud.IdentityRoleV3StatementArgs{
    					Actions: pulumi.StringArray{
    						pulumi.String("obs:bucket:GetBucketAcl"),
    					},
    					Condition: pulumi.String(`    {
          "StringStartWith": {
              "g:ProjectName": [
                  "eu-de"
              ]
          },
          "StringNotEqualsIgnoreCase": {
              "g:ServiceName": [
                  "iam"
              ]
        }
        
    `),
    					Effect: pulumi.String("Allow"),
    					Resources: pulumi.StringArray{
    						pulumi.String("OBS:*:*:bucket:test-bucket"),
    					},
    				},
    				&opentelekomcloud.IdentityRoleV3StatementArgs{
    					Actions: pulumi.StringArray{
    						pulumi.String("obs:bucket:HeadBucket"),
    						pulumi.String("obs:bucket:ListBucketMultipartUploads"),
    						pulumi.String("obs:bucket:ListBucket"),
    					},
    					Effect: pulumi.String("Allow"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Opentelekomcloud = Pulumi.Opentelekomcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var role = new Opentelekomcloud.IdentityRoleV3("role", new()
        {
            Description = "role",
            DisplayLayer = "domain",
            DisplayName = "custom_role",
            Statements = new[]
            {
                new Opentelekomcloud.Inputs.IdentityRoleV3StatementArgs
                {
                    Actions = new[]
                    {
                        "obs:bucket:GetBucketAcl",
                    },
                    Condition = @"    {
          ""StringStartWith"": {
              ""g:ProjectName"": [
                  ""eu-de""
              ]
          },
          ""StringNotEqualsIgnoreCase"": {
              ""g:ServiceName"": [
                  ""iam""
              ]
        }
        
    ",
                    Effect = "Allow",
                    Resources = new[]
                    {
                        "OBS:*:*:bucket:test-bucket",
                    },
                },
                new Opentelekomcloud.Inputs.IdentityRoleV3StatementArgs
                {
                    Actions = new[]
                    {
                        "obs:bucket:HeadBucket",
                        "obs:bucket:ListBucketMultipartUploads",
                        "obs:bucket:ListBucket",
                    },
                    Effect = "Allow",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.opentelekomcloud.IdentityRoleV3;
    import com.pulumi.opentelekomcloud.IdentityRoleV3Args;
    import com.pulumi.opentelekomcloud.inputs.IdentityRoleV3StatementArgs;
    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) {
            var role = new IdentityRoleV3("role", IdentityRoleV3Args.builder()
                .description("role")
                .displayLayer("domain")
                .displayName("custom_role")
                .statements(            
                    IdentityRoleV3StatementArgs.builder()
                        .actions("obs:bucket:GetBucketAcl")
                        .condition("""
        {
          "StringStartWith": {
              "g:ProjectName": [
                  "eu-de"
              ]
          },
          "StringNotEqualsIgnoreCase": {
              "g:ServiceName": [
                  "iam"
              ]
        }
        
                        """)
                        .effect("Allow")
                        .resources("OBS:*:*:bucket:test-bucket")
                        .build(),
                    IdentityRoleV3StatementArgs.builder()
                        .actions(                    
                            "obs:bucket:HeadBucket",
                            "obs:bucket:ListBucketMultipartUploads",
                            "obs:bucket:ListBucket")
                        .effect("Allow")
                        .build())
                .build());
    
        }
    }
    
    resources:
      role:
        type: opentelekomcloud:IdentityRoleV3
        properties:
          description: role
          displayLayer: domain
          displayName: custom_role
          statements:
            - actions:
                - obs:bucket:GetBucketAcl
              condition: "    {\n      \"StringStartWith\": {\n          \"g:ProjectName\": [\n              \"eu-de\"\n          ]\n      },\n      \"StringNotEqualsIgnoreCase\": {\n          \"g:ServiceName\": [\n              \"iam\"\n          ]\n    }\n    \n"
              effect: Allow
              resources:
                - OBS:*:*:bucket:test-bucket
            - actions:
                - obs:bucket:HeadBucket
                - obs:bucket:ListBucketMultipartUploads
                - obs:bucket:ListBucket
              effect: Allow
    

    Create IdentityRoleV3 Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new IdentityRoleV3(name: string, args: IdentityRoleV3Args, opts?: CustomResourceOptions);
    @overload
    def IdentityRoleV3(resource_name: str,
                       args: IdentityRoleV3Args,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def IdentityRoleV3(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       description: Optional[str] = None,
                       display_layer: Optional[str] = None,
                       display_name: Optional[str] = None,
                       statements: Optional[Sequence[IdentityRoleV3StatementArgs]] = None,
                       identity_role_v3_id: Optional[str] = None)
    func NewIdentityRoleV3(ctx *Context, name string, args IdentityRoleV3Args, opts ...ResourceOption) (*IdentityRoleV3, error)
    public IdentityRoleV3(string name, IdentityRoleV3Args args, CustomResourceOptions? opts = null)
    public IdentityRoleV3(String name, IdentityRoleV3Args args)
    public IdentityRoleV3(String name, IdentityRoleV3Args args, CustomResourceOptions options)
    
    type: opentelekomcloud:IdentityRoleV3
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args IdentityRoleV3Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args IdentityRoleV3Args
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args IdentityRoleV3Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IdentityRoleV3Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IdentityRoleV3Args
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var identityRoleV3Resource = new Opentelekomcloud.IdentityRoleV3("identityRoleV3Resource", new()
    {
        Description = "string",
        DisplayLayer = "string",
        DisplayName = "string",
        Statements = new[]
        {
            new Opentelekomcloud.Inputs.IdentityRoleV3StatementArgs
            {
                Actions = new[]
                {
                    "string",
                },
                Effect = "string",
                Condition = "string",
                Resources = new[]
                {
                    "string",
                },
            },
        },
        IdentityRoleV3Id = "string",
    });
    
    example, err := opentelekomcloud.NewIdentityRoleV3(ctx, "identityRoleV3Resource", &opentelekomcloud.IdentityRoleV3Args{
    	Description:  pulumi.String("string"),
    	DisplayLayer: pulumi.String("string"),
    	DisplayName:  pulumi.String("string"),
    	Statements: opentelekomcloud.IdentityRoleV3StatementArray{
    		&opentelekomcloud.IdentityRoleV3StatementArgs{
    			Actions: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			Effect:    pulumi.String("string"),
    			Condition: pulumi.String("string"),
    			Resources: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    	},
    	IdentityRoleV3Id: pulumi.String("string"),
    })
    
    var identityRoleV3Resource = new IdentityRoleV3("identityRoleV3Resource", IdentityRoleV3Args.builder()
        .description("string")
        .displayLayer("string")
        .displayName("string")
        .statements(IdentityRoleV3StatementArgs.builder()
            .actions("string")
            .effect("string")
            .condition("string")
            .resources("string")
            .build())
        .identityRoleV3Id("string")
        .build());
    
    identity_role_v3_resource = opentelekomcloud.IdentityRoleV3("identityRoleV3Resource",
        description="string",
        display_layer="string",
        display_name="string",
        statements=[{
            "actions": ["string"],
            "effect": "string",
            "condition": "string",
            "resources": ["string"],
        }],
        identity_role_v3_id="string")
    
    const identityRoleV3Resource = new opentelekomcloud.IdentityRoleV3("identityRoleV3Resource", {
        description: "string",
        displayLayer: "string",
        displayName: "string",
        statements: [{
            actions: ["string"],
            effect: "string",
            condition: "string",
            resources: ["string"],
        }],
        identityRoleV3Id: "string",
    });
    
    type: opentelekomcloud:IdentityRoleV3
    properties:
        description: string
        displayLayer: string
        displayName: string
        identityRoleV3Id: string
        statements:
            - actions:
                - string
              condition: string
              effect: string
              resources:
                - string
    

    IdentityRoleV3 Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The IdentityRoleV3 resource accepts the following input properties:

    Description string
    Description of a role. The value cannot exceed 256 characters.
    DisplayLayer string
    Display layer of a role.
    DisplayName string
    Displayed name of a role. The value cannot exceed 64 characters.
    Statements List<IdentityRoleV3Statement>
    Statement: The Statement field contains the Effect and Action elements. Effect indicates whether the policy allows or denies access. Action indicates authorization items. The number of statements cannot exceed 8. Structure is documented below.
    IdentityRoleV3Id string
    Description string
    Description of a role. The value cannot exceed 256 characters.
    DisplayLayer string
    Display layer of a role.
    DisplayName string
    Displayed name of a role. The value cannot exceed 64 characters.
    Statements []IdentityRoleV3StatementArgs
    Statement: The Statement field contains the Effect and Action elements. Effect indicates whether the policy allows or denies access. Action indicates authorization items. The number of statements cannot exceed 8. Structure is documented below.
    IdentityRoleV3Id string
    description String
    Description of a role. The value cannot exceed 256 characters.
    displayLayer String
    Display layer of a role.
    displayName String
    Displayed name of a role. The value cannot exceed 64 characters.
    statements List<IdentityRoleV3Statement>
    Statement: The Statement field contains the Effect and Action elements. Effect indicates whether the policy allows or denies access. Action indicates authorization items. The number of statements cannot exceed 8. Structure is documented below.
    identityRoleV3Id String
    description string
    Description of a role. The value cannot exceed 256 characters.
    displayLayer string
    Display layer of a role.
    displayName string
    Displayed name of a role. The value cannot exceed 64 characters.
    statements IdentityRoleV3Statement[]
    Statement: The Statement field contains the Effect and Action elements. Effect indicates whether the policy allows or denies access. Action indicates authorization items. The number of statements cannot exceed 8. Structure is documented below.
    identityRoleV3Id string
    description str
    Description of a role. The value cannot exceed 256 characters.
    display_layer str
    Display layer of a role.
    display_name str
    Displayed name of a role. The value cannot exceed 64 characters.
    statements Sequence[IdentityRoleV3StatementArgs]
    Statement: The Statement field contains the Effect and Action elements. Effect indicates whether the policy allows or denies access. Action indicates authorization items. The number of statements cannot exceed 8. Structure is documented below.
    identity_role_v3_id str
    description String
    Description of a role. The value cannot exceed 256 characters.
    displayLayer String
    Display layer of a role.
    displayName String
    Displayed name of a role. The value cannot exceed 64 characters.
    statements List<Property Map>
    Statement: The Statement field contains the Effect and Action elements. Effect indicates whether the policy allows or denies access. Action indicates authorization items. The number of statements cannot exceed 8. Structure is documented below.
    identityRoleV3Id String

    Outputs

    All input properties are implicitly available as output properties. Additionally, the IdentityRoleV3 resource produces the following output properties:

    Catalog string
    Directory where a role locates
    DomainId string
    ID of the domain to which a role belongs
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Name of a role
    Catalog string
    Directory where a role locates
    DomainId string
    ID of the domain to which a role belongs
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    Name of a role
    catalog String
    Directory where a role locates
    domainId String
    ID of the domain to which a role belongs
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Name of a role
    catalog string
    Directory where a role locates
    domainId string
    ID of the domain to which a role belongs
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    Name of a role
    catalog str
    Directory where a role locates
    domain_id str
    ID of the domain to which a role belongs
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    Name of a role
    catalog String
    Directory where a role locates
    domainId String
    ID of the domain to which a role belongs
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    Name of a role

    Look up Existing IdentityRoleV3 Resource

    Get an existing IdentityRoleV3 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: IdentityRoleV3State, opts?: CustomResourceOptions): IdentityRoleV3
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            catalog: Optional[str] = None,
            description: Optional[str] = None,
            display_layer: Optional[str] = None,
            display_name: Optional[str] = None,
            domain_id: Optional[str] = None,
            identity_role_v3_id: Optional[str] = None,
            name: Optional[str] = None,
            statements: Optional[Sequence[IdentityRoleV3StatementArgs]] = None) -> IdentityRoleV3
    func GetIdentityRoleV3(ctx *Context, name string, id IDInput, state *IdentityRoleV3State, opts ...ResourceOption) (*IdentityRoleV3, error)
    public static IdentityRoleV3 Get(string name, Input<string> id, IdentityRoleV3State? state, CustomResourceOptions? opts = null)
    public static IdentityRoleV3 get(String name, Output<String> id, IdentityRoleV3State state, CustomResourceOptions options)
    resources:  _:    type: opentelekomcloud:IdentityRoleV3    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Catalog string
    Directory where a role locates
    Description string
    Description of a role. The value cannot exceed 256 characters.
    DisplayLayer string
    Display layer of a role.
    DisplayName string
    Displayed name of a role. The value cannot exceed 64 characters.
    DomainId string
    ID of the domain to which a role belongs
    IdentityRoleV3Id string
    Name string
    Name of a role
    Statements List<IdentityRoleV3Statement>
    Statement: The Statement field contains the Effect and Action elements. Effect indicates whether the policy allows or denies access. Action indicates authorization items. The number of statements cannot exceed 8. Structure is documented below.
    Catalog string
    Directory where a role locates
    Description string
    Description of a role. The value cannot exceed 256 characters.
    DisplayLayer string
    Display layer of a role.
    DisplayName string
    Displayed name of a role. The value cannot exceed 64 characters.
    DomainId string
    ID of the domain to which a role belongs
    IdentityRoleV3Id string
    Name string
    Name of a role
    Statements []IdentityRoleV3StatementArgs
    Statement: The Statement field contains the Effect and Action elements. Effect indicates whether the policy allows or denies access. Action indicates authorization items. The number of statements cannot exceed 8. Structure is documented below.
    catalog String
    Directory where a role locates
    description String
    Description of a role. The value cannot exceed 256 characters.
    displayLayer String
    Display layer of a role.
    displayName String
    Displayed name of a role. The value cannot exceed 64 characters.
    domainId String
    ID of the domain to which a role belongs
    identityRoleV3Id String
    name String
    Name of a role
    statements List<IdentityRoleV3Statement>
    Statement: The Statement field contains the Effect and Action elements. Effect indicates whether the policy allows or denies access. Action indicates authorization items. The number of statements cannot exceed 8. Structure is documented below.
    catalog string
    Directory where a role locates
    description string
    Description of a role. The value cannot exceed 256 characters.
    displayLayer string
    Display layer of a role.
    displayName string
    Displayed name of a role. The value cannot exceed 64 characters.
    domainId string
    ID of the domain to which a role belongs
    identityRoleV3Id string
    name string
    Name of a role
    statements IdentityRoleV3Statement[]
    Statement: The Statement field contains the Effect and Action elements. Effect indicates whether the policy allows or denies access. Action indicates authorization items. The number of statements cannot exceed 8. Structure is documented below.
    catalog str
    Directory where a role locates
    description str
    Description of a role. The value cannot exceed 256 characters.
    display_layer str
    Display layer of a role.
    display_name str
    Displayed name of a role. The value cannot exceed 64 characters.
    domain_id str
    ID of the domain to which a role belongs
    identity_role_v3_id str
    name str
    Name of a role
    statements Sequence[IdentityRoleV3StatementArgs]
    Statement: The Statement field contains the Effect and Action elements. Effect indicates whether the policy allows or denies access. Action indicates authorization items. The number of statements cannot exceed 8. Structure is documented below.
    catalog String
    Directory where a role locates
    description String
    Description of a role. The value cannot exceed 256 characters.
    displayLayer String
    Display layer of a role.
    displayName String
    Displayed name of a role. The value cannot exceed 64 characters.
    domainId String
    ID of the domain to which a role belongs
    identityRoleV3Id String
    name String
    Name of a role
    statements List<Property Map>
    Statement: The Statement field contains the Effect and Action elements. Effect indicates whether the policy allows or denies access. Action indicates authorization items. The number of statements cannot exceed 8. Structure is documented below.

    Supporting Types

    IdentityRoleV3Statement, IdentityRoleV3StatementArgs

    Actions List<string>
    Permission set, which specifies the operation permissions on resources. The number of permission sets cannot exceed 100. Format: The value format is Service name:Resource type:Action, for example, vpc:ports:create. Service name: indicates the product name, such as ecs, evs, or vpc. Only lowercase letters are allowed. Resource type and Action: The values are case-insensitive, and the wildcard () are allowed. A wildcard () can represent all or part of information about resource types and actions for the specific service.
    Effect string
    The value can be Allow and Deny. If both Allow and Deny are found in statements, the policy evaluation starts with Deny.
    Condition string

    The conditions for the permission to take effect. A maximum of 10 conditions are allowed. Conditions should be provided as string as in example above.

    For the full reference checkout Policy Syntax.

    Resources List<string>
    The resources which will be granted/denied accesses. Format: Service:*:*:resource:resource_path. Examples: KMS:*:*:KeyId:your_key, OBS:*:*:bucket:your_bucket, OBS:*:*:object:your_object.
    Actions []string
    Permission set, which specifies the operation permissions on resources. The number of permission sets cannot exceed 100. Format: The value format is Service name:Resource type:Action, for example, vpc:ports:create. Service name: indicates the product name, such as ecs, evs, or vpc. Only lowercase letters are allowed. Resource type and Action: The values are case-insensitive, and the wildcard () are allowed. A wildcard () can represent all or part of information about resource types and actions for the specific service.
    Effect string
    The value can be Allow and Deny. If both Allow and Deny are found in statements, the policy evaluation starts with Deny.
    Condition string

    The conditions for the permission to take effect. A maximum of 10 conditions are allowed. Conditions should be provided as string as in example above.

    For the full reference checkout Policy Syntax.

    Resources []string
    The resources which will be granted/denied accesses. Format: Service:*:*:resource:resource_path. Examples: KMS:*:*:KeyId:your_key, OBS:*:*:bucket:your_bucket, OBS:*:*:object:your_object.
    actions List<String>
    Permission set, which specifies the operation permissions on resources. The number of permission sets cannot exceed 100. Format: The value format is Service name:Resource type:Action, for example, vpc:ports:create. Service name: indicates the product name, such as ecs, evs, or vpc. Only lowercase letters are allowed. Resource type and Action: The values are case-insensitive, and the wildcard () are allowed. A wildcard () can represent all or part of information about resource types and actions for the specific service.
    effect String
    The value can be Allow and Deny. If both Allow and Deny are found in statements, the policy evaluation starts with Deny.
    condition String

    The conditions for the permission to take effect. A maximum of 10 conditions are allowed. Conditions should be provided as string as in example above.

    For the full reference checkout Policy Syntax.

    resources List<String>
    The resources which will be granted/denied accesses. Format: Service:*:*:resource:resource_path. Examples: KMS:*:*:KeyId:your_key, OBS:*:*:bucket:your_bucket, OBS:*:*:object:your_object.
    actions string[]
    Permission set, which specifies the operation permissions on resources. The number of permission sets cannot exceed 100. Format: The value format is Service name:Resource type:Action, for example, vpc:ports:create. Service name: indicates the product name, such as ecs, evs, or vpc. Only lowercase letters are allowed. Resource type and Action: The values are case-insensitive, and the wildcard () are allowed. A wildcard () can represent all or part of information about resource types and actions for the specific service.
    effect string
    The value can be Allow and Deny. If both Allow and Deny are found in statements, the policy evaluation starts with Deny.
    condition string

    The conditions for the permission to take effect. A maximum of 10 conditions are allowed. Conditions should be provided as string as in example above.

    For the full reference checkout Policy Syntax.

    resources string[]
    The resources which will be granted/denied accesses. Format: Service:*:*:resource:resource_path. Examples: KMS:*:*:KeyId:your_key, OBS:*:*:bucket:your_bucket, OBS:*:*:object:your_object.
    actions Sequence[str]
    Permission set, which specifies the operation permissions on resources. The number of permission sets cannot exceed 100. Format: The value format is Service name:Resource type:Action, for example, vpc:ports:create. Service name: indicates the product name, such as ecs, evs, or vpc. Only lowercase letters are allowed. Resource type and Action: The values are case-insensitive, and the wildcard () are allowed. A wildcard () can represent all or part of information about resource types and actions for the specific service.
    effect str
    The value can be Allow and Deny. If both Allow and Deny are found in statements, the policy evaluation starts with Deny.
    condition str

    The conditions for the permission to take effect. A maximum of 10 conditions are allowed. Conditions should be provided as string as in example above.

    For the full reference checkout Policy Syntax.

    resources Sequence[str]
    The resources which will be granted/denied accesses. Format: Service:*:*:resource:resource_path. Examples: KMS:*:*:KeyId:your_key, OBS:*:*:bucket:your_bucket, OBS:*:*:object:your_object.
    actions List<String>
    Permission set, which specifies the operation permissions on resources. The number of permission sets cannot exceed 100. Format: The value format is Service name:Resource type:Action, for example, vpc:ports:create. Service name: indicates the product name, such as ecs, evs, or vpc. Only lowercase letters are allowed. Resource type and Action: The values are case-insensitive, and the wildcard () are allowed. A wildcard () can represent all or part of information about resource types and actions for the specific service.
    effect String
    The value can be Allow and Deny. If both Allow and Deny are found in statements, the policy evaluation starts with Deny.
    condition String

    The conditions for the permission to take effect. A maximum of 10 conditions are allowed. Conditions should be provided as string as in example above.

    For the full reference checkout Policy Syntax.

    resources List<String>
    The resources which will be granted/denied accesses. Format: Service:*:*:resource:resource_path. Examples: KMS:*:*:KeyId:your_key, OBS:*:*:bucket:your_bucket, OBS:*:*:object:your_object.

    Import

    Role can be imported using the following format:

    $ pulumi import opentelekomcloud:index/identityRoleV3:IdentityRoleV3 default {{ resource id}}
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    opentelekomcloud opentelekomcloud/terraform-provider-opentelekomcloud
    License
    Notes
    This Pulumi package is based on the opentelekomcloud Terraform Provider.
    opentelekomcloud logo
    opentelekomcloud 1.36.37 published on Thursday, Apr 24, 2025 by opentelekomcloud