Harness v0.7.2 published on Tuesday, Apr 15, 2025 by Pulumi
harness.platform.getPermissions
Explore with Pulumi AI
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)
public static Output<GetPermissionsResult> getPermissions(GetPermissionsArgs args, InvokeOptions options)
fn::invoke:
  function: harness:platform/getPermissions:getPermissions
  arguments:
    # arguments dictionaryThe following arguments are supported:
- org_id str
- Organization Identifier
- project_id str
- Project Identifier
getPermissions Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Permissions
List<GetPermissions Permission> 
- Response of the api
- OrgId string
- Organization Identifier
- ProjectId string
- Project Identifier
- Id string
- The provider-assigned unique ID for this managed resource.
- Permissions
[]GetPermissions Permission 
- 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<GetPermissions Permission> 
- Response of the api
- orgId String
- Organization Identifier
- projectId String
- Project Identifier
- id string
- The provider-assigned unique ID for this managed resource.
- permissions
GetPermissions Permission[] 
- 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[GetPermissions Permission] 
- 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
- AllowedScope List<string>Levels 
- The scope levels at which this resource group can be used
- Identifier string
- Identifier of the permission
- IncludeIn boolAll Roles 
- 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
- AllowedScope []stringLevels 
- The scope levels at which this resource group can be used
- Identifier string
- Identifier of the permission
- IncludeIn boolAll Roles 
- 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
- allowedScope List<String>Levels 
- The scope levels at which this resource group can be used
- identifier String
- Identifier of the permission
- includeIn BooleanAll Roles 
- 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
- allowedScope string[]Levels 
- The scope levels at which this resource group can be used
- identifier string
- Identifier of the permission
- includeIn booleanAll Roles 
- 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_ Sequence[str]levels 
- The scope levels at which this resource group can be used
- identifier str
- Identifier of the permission
- include_in_ boolall_ roles 
- 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
- allowedScope List<String>Levels 
- The scope levels at which this resource group can be used
- identifier String
- Identifier of the permission
- includeIn BooleanAll Roles 
- 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 harnessTerraform Provider.
