1. Packages
  2. Harness
  3. API Docs
  4. platform
  5. getRoleAssignments
Harness v0.0.6 published on Saturday, Jul 1, 2023 by lbrlabs

harness.platform.getRoleAssignments

Explore with Pulumi AI

harness logo
Harness v0.0.6 published on Saturday, Jul 1, 2023 by lbrlabs

    Data source for retrieving role assignment.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Harness = Pulumi.Harness;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Harness.Platform.GetRoleAssignments.Invoke(new()
        {
            Identifier = "identifier",
            OrgId = "org_id",
            ProjectId = "project_id",
        });
    
    });
    
    package main
    
    import (
    	"github.com/lbrlabs/pulumi-harness/sdk/go/harness/platform"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := platform.LookupRoleAssignments(ctx, &platform.LookupRoleAssignmentsArgs{
    			Identifier: "identifier",
    			OrgId:      pulumi.StringRef("org_id"),
    			ProjectId:  pulumi.StringRef("project_id"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.harness.platform.PlatformFunctions;
    import com.pulumi.harness.platform.inputs.GetRoleAssignmentsArgs;
    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 example = PlatformFunctions.getRoleAssignments(GetRoleAssignmentsArgs.builder()
                .identifier("identifier")
                .orgId("org_id")
                .projectId("project_id")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_harness as harness
    
    example = harness.platform.get_role_assignments(identifier="identifier",
        org_id="org_id",
        project_id="project_id")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as harness from "@pulumi/harness";
    
    const example = harness.platform.getRoleAssignments({
        identifier: "identifier",
        orgId: "org_id",
        projectId: "project_id",
    });
    
    variables:
      example:
        fn::invoke:
          Function: harness:platform:getRoleAssignments
          Arguments:
            identifier: identifier
            orgId: org_id
            projectId: project_id
    

    Using getRoleAssignments

    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 getRoleAssignments(args: GetRoleAssignmentsArgs, opts?: InvokeOptions): Promise<GetRoleAssignmentsResult>
    function getRoleAssignmentsOutput(args: GetRoleAssignmentsOutputArgs, opts?: InvokeOptions): Output<GetRoleAssignmentsResult>
    def get_role_assignments(identifier: Optional[str] = None,
                             org_id: Optional[str] = None,
                             project_id: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetRoleAssignmentsResult
    def get_role_assignments_output(identifier: Optional[pulumi.Input[str]] = None,
                             org_id: Optional[pulumi.Input[str]] = None,
                             project_id: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetRoleAssignmentsResult]
    func LookupRoleAssignments(ctx *Context, args *LookupRoleAssignmentsArgs, opts ...InvokeOption) (*LookupRoleAssignmentsResult, error)
    func LookupRoleAssignmentsOutput(ctx *Context, args *LookupRoleAssignmentsOutputArgs, opts ...InvokeOption) LookupRoleAssignmentsResultOutput

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

    public static class GetRoleAssignments 
    {
        public static Task<GetRoleAssignmentsResult> InvokeAsync(GetRoleAssignmentsArgs args, InvokeOptions? opts = null)
        public static Output<GetRoleAssignmentsResult> Invoke(GetRoleAssignmentsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetRoleAssignmentsResult> getRoleAssignments(GetRoleAssignmentsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: harness:platform/getRoleAssignments:getRoleAssignments
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Identifier string
    Identifier for role assignment.
    OrgId string
    Org identifier.
    ProjectId string
    Project Identifier
    Identifier string
    Identifier for role assignment.
    OrgId string
    Org identifier.
    ProjectId string
    Project Identifier
    identifier String
    Identifier for role assignment.
    orgId String
    Org identifier.
    projectId String
    Project Identifier
    identifier string
    Identifier for role assignment.
    orgId string
    Org identifier.
    projectId string
    Project Identifier
    identifier str
    Identifier for role assignment.
    org_id str
    Org identifier.
    project_id str
    Project Identifier
    identifier String
    Identifier for role assignment.
    orgId String
    Org identifier.
    projectId String
    Project Identifier

    getRoleAssignments Result

    The following output properties are available:

    Disabled bool
    Disabled or not.
    Id string
    The provider-assigned unique ID for this managed resource.
    Identifier string
    Identifier for role assignment.
    Managed bool
    Managed or not.
    Principals List<Lbrlabs.PulumiPackage.Harness.Platform.Outputs.GetRoleAssignmentsPrincipal>
    Principal.
    ResourceGroupIdentifier string
    Resource group identifier.
    RoleIdentifier string
    Role identifier.
    OrgId string
    Org identifier.
    ProjectId string
    Project Identifier
    Disabled bool
    Disabled or not.
    Id string
    The provider-assigned unique ID for this managed resource.
    Identifier string
    Identifier for role assignment.
    Managed bool
    Managed or not.
    Principals []GetRoleAssignmentsPrincipal
    Principal.
    ResourceGroupIdentifier string
    Resource group identifier.
    RoleIdentifier string
    Role identifier.
    OrgId string
    Org identifier.
    ProjectId string
    Project Identifier
    disabled Boolean
    Disabled or not.
    id String
    The provider-assigned unique ID for this managed resource.
    identifier String
    Identifier for role assignment.
    managed Boolean
    Managed or not.
    principals List<GetRoleAssignmentsPrincipal>
    Principal.
    resourceGroupIdentifier String
    Resource group identifier.
    roleIdentifier String
    Role identifier.
    orgId String
    Org identifier.
    projectId String
    Project Identifier
    disabled boolean
    Disabled or not.
    id string
    The provider-assigned unique ID for this managed resource.
    identifier string
    Identifier for role assignment.
    managed boolean
    Managed or not.
    principals GetRoleAssignmentsPrincipal[]
    Principal.
    resourceGroupIdentifier string
    Resource group identifier.
    roleIdentifier string
    Role identifier.
    orgId string
    Org identifier.
    projectId string
    Project Identifier
    disabled bool
    Disabled or not.
    id str
    The provider-assigned unique ID for this managed resource.
    identifier str
    Identifier for role assignment.
    managed bool
    Managed or not.
    principals Sequence[GetRoleAssignmentsPrincipal]
    Principal.
    resource_group_identifier str
    Resource group identifier.
    role_identifier str
    Role identifier.
    org_id str
    Org identifier.
    project_id str
    Project Identifier
    disabled Boolean
    Disabled or not.
    id String
    The provider-assigned unique ID for this managed resource.
    identifier String
    Identifier for role assignment.
    managed Boolean
    Managed or not.
    principals List<Property Map>
    Principal.
    resourceGroupIdentifier String
    Resource group identifier.
    roleIdentifier String
    Role identifier.
    orgId String
    Org identifier.
    projectId String
    Project Identifier

    Supporting Types

    GetRoleAssignmentsPrincipal

    Identifier string
    Identifier for role assignment.
    ScopeLevel string
    Type string
    Identifier string
    Identifier for role assignment.
    ScopeLevel string
    Type string
    identifier String
    Identifier for role assignment.
    scopeLevel String
    type String
    identifier string
    Identifier for role assignment.
    scopeLevel string
    type string
    identifier str
    Identifier for role assignment.
    scope_level str
    type str
    identifier String
    Identifier for role assignment.
    scopeLevel String
    type String

    Package Details

    Repository
    harness lbrlabs/pulumi-harness
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the harness Terraform Provider.
    harness logo
    Harness v0.0.6 published on Saturday, Jul 1, 2023 by lbrlabs