1. Packages
  2. Harness
  3. API Docs
  4. platform
  5. getPermissions
Harness v0.2.1 published on Friday, Jul 26, 2024 by Pulumi

harness.platform.getPermissions

Explore with Pulumi AI

harness logo
Harness v0.2.1 published on Friday, Jul 26, 2024 by Pulumi

    Data source for retrieving permissions.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as harness from "@pulumi/harness";
    
    const test = harness.platform.getPermissions({
        orgId: "org_id",
        projectId: "project_id",
    });
    
    import pulumi
    import pulumi_harness as harness
    
    test = harness.platform.get_permissions(org_id="org_id",
        project_id="project_id")
    
    package main
    
    import (
    	"github.com/pulumi/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.GetPermissions(ctx, &platform.GetPermissionsArgs{
    			OrgId:     pulumi.StringRef("org_id"),
    			ProjectId: pulumi.StringRef("project_id"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Harness = Pulumi.Harness;
    
    return await Deployment.RunAsync(() => 
    {
        var test = Harness.Platform.GetPermissions.Invoke(new()
        {
            OrgId = "org_id",
            ProjectId = "project_id",
        });
    
    });
    
    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.GetPermissionsArgs;
    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 test = PlatformFunctions.getPermissions(GetPermissionsArgs.builder()
                .orgId("org_id")
                .projectId("project_id")
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          Function: harness:platform:getPermissions
          Arguments:
            orgId: org_id
            projectId: project_id
    

    Using getPermissions

    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 getPermissions(args: GetPermissionsArgs, opts?: InvokeOptions): Promise<GetPermissionsResult>
    function getPermissionsOutput(args: GetPermissionsOutputArgs, opts?: InvokeOptions): Output<GetPermissionsResult>
    def get_permissions(org_id: Optional[str] = None,
                        project_id: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetPermissionsResult
    def get_permissions_output(org_id: Optional[pulumi.Input[str]] = None,
                        project_id: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetPermissionsResult]
    func GetPermissions(ctx *Context, args *GetPermissionsArgs, opts ...InvokeOption) (*GetPermissionsResult, error)
    func GetPermissionsOutput(ctx *Context, args *GetPermissionsOutputArgs, opts ...InvokeOption) GetPermissionsResultOutput

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

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

    The following arguments are supported:

    OrgId string
    Organization Identifier
    ProjectId string
    Project Identifier
    OrgId string
    Organization Identifier
    ProjectId string
    Project Identifier
    orgId String
    Organization Identifier
    projectId String
    Project Identifier
    orgId string
    Organization Identifier
    projectId string
    Project Identifier
    org_id str
    Organization Identifier
    project_id str
    Project Identifier
    orgId String
    Organization Identifier
    projectId String
    Project Identifier

    getPermissions Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Permissions List<GetPermissionsPermission>
    Response of the api
    OrgId string
    Organization Identifier
    ProjectId string
    Project Identifier
    Id string
    The provider-assigned unique ID for this managed resource.
    Permissions []GetPermissionsPermission
    Response of the api
    OrgId string
    Organization Identifier
    ProjectId string
    Project Identifier
    id String
    The provider-assigned unique ID for this managed resource.
    permissions List<GetPermissionsPermission>
    Response of the api
    orgId String
    Organization Identifier
    projectId String
    Project Identifier
    id string
    The provider-assigned unique ID for this managed resource.
    permissions GetPermissionsPermission[]
    Response of the api
    orgId string
    Organization Identifier
    projectId string
    Project Identifier
    id str
    The provider-assigned unique ID for this managed resource.
    permissions Sequence[GetPermissionsPermission]
    Response of the api
    org_id str
    Organization Identifier
    project_id str
    Project Identifier
    id String
    The provider-assigned unique ID for this managed resource.
    permissions List<Property Map>
    Response of the api
    orgId String
    Organization Identifier
    projectId String
    Project Identifier

    Supporting Types

    GetPermissionsPermission

    Action string
    Action performed by the permission
    AllowedScopeLevels List<string>
    The scope levels at which this resource group can be used
    Identifier string
    Identifier of the permission
    IncludeInAllRoles bool
    Is included in all roles
    Name string
    Name of the permission
    ResourceType string
    Resource type for the given permission
    Status string
    Status of the permission
    Action string
    Action performed by the permission
    AllowedScopeLevels []string
    The scope levels at which this resource group can be used
    Identifier string
    Identifier of the permission
    IncludeInAllRoles bool
    Is included in all roles
    Name string
    Name of the permission
    ResourceType string
    Resource type for the given permission
    Status string
    Status of the permission
    action String
    Action performed by the permission
    allowedScopeLevels List<String>
    The scope levels at which this resource group can be used
    identifier String
    Identifier of the permission
    includeInAllRoles Boolean
    Is included in all roles
    name String
    Name of the permission
    resourceType String
    Resource type for the given permission
    status String
    Status of the permission
    action string
    Action performed by the permission
    allowedScopeLevels string[]
    The scope levels at which this resource group can be used
    identifier string
    Identifier of the permission
    includeInAllRoles boolean
    Is included in all roles
    name string
    Name of the permission
    resourceType string
    Resource type for the given permission
    status string
    Status of the permission
    action str
    Action performed by the permission
    allowed_scope_levels Sequence[str]
    The scope levels at which this resource group can be used
    identifier str
    Identifier of the permission
    include_in_all_roles bool
    Is included in all roles
    name str
    Name of the permission
    resource_type str
    Resource type for the given permission
    status str
    Status of the permission
    action String
    Action performed by the permission
    allowedScopeLevels List<String>
    The scope levels at which this resource group can be used
    identifier String
    Identifier of the permission
    includeInAllRoles Boolean
    Is included in all roles
    name String
    Name of the permission
    resourceType String
    Resource type for the given permission
    status String
    Status of the permission

    Package Details

    Repository
    harness pulumi/pulumi-harness
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the harness Terraform Provider.
    harness logo
    Harness v0.2.1 published on Friday, Jul 26, 2024 by Pulumi