1. Packages
  2. stackit
  3. API Docs
  4. getAuthorizationProjectCustomRole
Viewing docs for stackit v0.0.4
published on Friday, Feb 20, 2026 by stackitcloud
stackit logo
Viewing docs for stackit v0.0.4
published on Friday, Feb 20, 2026 by stackitcloud

    Custom Role resource schema.

    Example Usage

    data "stackit_authorization_project_custom_role" "example" {
      project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
      name       = "my.custom.role"
    }
    

    Using getAuthorizationProjectCustomRole

    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 getAuthorizationProjectCustomRole(args: GetAuthorizationProjectCustomRoleArgs, opts?: InvokeOptions): Promise<GetAuthorizationProjectCustomRoleResult>
    function getAuthorizationProjectCustomRoleOutput(args: GetAuthorizationProjectCustomRoleOutputArgs, opts?: InvokeOptions): Output<GetAuthorizationProjectCustomRoleResult>
    def get_authorization_project_custom_role(resource_id: Optional[str] = None,
                                              role_id: Optional[str] = None,
                                              opts: Optional[InvokeOptions] = None) -> GetAuthorizationProjectCustomRoleResult
    def get_authorization_project_custom_role_output(resource_id: Optional[pulumi.Input[str]] = None,
                                              role_id: Optional[pulumi.Input[str]] = None,
                                              opts: Optional[InvokeOptions] = None) -> Output[GetAuthorizationProjectCustomRoleResult]
    func LookupAuthorizationProjectCustomRole(ctx *Context, args *LookupAuthorizationProjectCustomRoleArgs, opts ...InvokeOption) (*LookupAuthorizationProjectCustomRoleResult, error)
    func LookupAuthorizationProjectCustomRoleOutput(ctx *Context, args *LookupAuthorizationProjectCustomRoleOutputArgs, opts ...InvokeOption) LookupAuthorizationProjectCustomRoleResultOutput

    > Note: This function is named LookupAuthorizationProjectCustomRole in the Go SDK.

    public static class GetAuthorizationProjectCustomRole 
    {
        public static Task<GetAuthorizationProjectCustomRoleResult> InvokeAsync(GetAuthorizationProjectCustomRoleArgs args, InvokeOptions? opts = null)
        public static Output<GetAuthorizationProjectCustomRoleResult> Invoke(GetAuthorizationProjectCustomRoleInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAuthorizationProjectCustomRoleResult> getAuthorizationProjectCustomRole(GetAuthorizationProjectCustomRoleArgs args, InvokeOptions options)
    public static Output<GetAuthorizationProjectCustomRoleResult> getAuthorizationProjectCustomRole(GetAuthorizationProjectCustomRoleArgs args, InvokeOptions options)
    
    fn::invoke:
      function: stackit:index/getAuthorizationProjectCustomRole:getAuthorizationProjectCustomRole
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ResourceId string
    Resource to add the custom role to.
    RoleId string
    The ID of the role.
    ResourceId string
    Resource to add the custom role to.
    RoleId string
    The ID of the role.
    resourceId String
    Resource to add the custom role to.
    roleId String
    The ID of the role.
    resourceId string
    Resource to add the custom role to.
    roleId string
    The ID of the role.
    resource_id str
    Resource to add the custom role to.
    role_id str
    The ID of the role.
    resourceId String
    Resource to add the custom role to.
    roleId String
    The ID of the role.

    getAuthorizationProjectCustomRole Result

    The following output properties are available:

    Description string
    A human readable description of the role.
    Id string
    Name string
    Name of the role
    Permissions List<string>
    Permissions for the role
    ResourceId string
    Resource to add the custom role to.
    RoleId string
    The ID of the role.
    Description string
    A human readable description of the role.
    Id string
    Name string
    Name of the role
    Permissions []string
    Permissions for the role
    ResourceId string
    Resource to add the custom role to.
    RoleId string
    The ID of the role.
    description String
    A human readable description of the role.
    id String
    name String
    Name of the role
    permissions List<String>
    Permissions for the role
    resourceId String
    Resource to add the custom role to.
    roleId String
    The ID of the role.
    description string
    A human readable description of the role.
    id string
    name string
    Name of the role
    permissions string[]
    Permissions for the role
    resourceId string
    Resource to add the custom role to.
    roleId string
    The ID of the role.
    description str
    A human readable description of the role.
    id str
    name str
    Name of the role
    permissions Sequence[str]
    Permissions for the role
    resource_id str
    Resource to add the custom role to.
    role_id str
    The ID of the role.
    description String
    A human readable description of the role.
    id String
    name String
    Name of the role
    permissions List<String>
    Permissions for the role
    resourceId String
    Resource to add the custom role to.
    roleId String
    The ID of the role.

    Package Details

    Repository
    stackit stackitcloud/pulumi-stackit
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the stackit Terraform Provider.
    stackit logo
    Viewing docs for stackit v0.0.4
    published on Friday, Feb 20, 2026 by stackitcloud
      Try Pulumi Cloud free. Your team will thank you.