Harness v0.3.2 published on Monday, Sep 16, 2024 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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: harness:platform/getPermissions:getPermissions
arguments:
# arguments dictionary
The 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<Get
Permissions Permission> - Response of the api
- Org
Id string - Organization Identifier
- Project
Id string - Project Identifier
- Id string
- The provider-assigned unique ID for this managed resource.
- Permissions
[]Get
Permissions Permission - Response of the api
- Org
Id string - Organization Identifier
- Project
Id string - Project Identifier
- id String
- The provider-assigned unique ID for this managed resource.
- permissions
List<Get
Permissions Permission> - Response of the api
- org
Id String - Organization Identifier
- project
Id String - Project Identifier
- id string
- The provider-assigned unique ID for this managed resource.
- permissions
Get
Permissions Permission[] - Response of the api
- org
Id string - Organization Identifier
- project
Id string - Project Identifier
- id str
- The provider-assigned unique ID for this managed resource.
- permissions
Sequence[Get
Permissions 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
- org
Id String - Organization Identifier
- project
Id String - Project Identifier
Supporting Types
GetPermissionsPermission
- Action string
- Action performed by the permission
- Allowed
Scope List<string>Levels - The scope levels at which this resource group can be used
- Identifier string
- Identifier of the permission
- Include
In boolAll Roles - Is included in all roles
- Name string
- Name of the permission
- Resource
Type string - Resource type for the given permission
- Status string
- Status of the permission
- Action string
- Action performed by the permission
- Allowed
Scope []stringLevels - The scope levels at which this resource group can be used
- Identifier string
- Identifier of the permission
- Include
In boolAll Roles - Is included in all roles
- Name string
- Name of the permission
- Resource
Type string - Resource type for the given permission
- Status string
- Status of the permission
- action String
- Action performed by the permission
- allowed
Scope List<String>Levels - The scope levels at which this resource group can be used
- identifier String
- Identifier of the permission
- include
In BooleanAll Roles - Is included in all roles
- name String
- Name of the permission
- resource
Type String - Resource type for the given permission
- status String
- Status of the permission
- action string
- Action performed by the permission
- allowed
Scope string[]Levels - The scope levels at which this resource group can be used
- identifier string
- Identifier of the permission
- include
In booleanAll Roles - Is included in all roles
- name string
- Name of the permission
- resource
Type 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
- allowed
Scope List<String>Levels - The scope levels at which this resource group can be used
- identifier String
- Identifier of the permission
- include
In BooleanAll Roles - Is included in all roles
- name String
- Name of the permission
- resource
Type 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.