spectrocloud 0.23.4 published on Monday, Apr 14, 2025 by spectrocloud
spectrocloud.getPermission
Explore with Pulumi AI
spectrocloud 0.23.4 published on Monday, Apr 14, 2025 by spectrocloud
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as spectrocloud from "@pulumi/spectrocloud";
const appPermission = spectrocloud.getPermission({
name: "App Profile",
});
export const permissions = appPermission.then(appPermission => appPermission.permissions);
import pulumi
import pulumi_spectrocloud as spectrocloud
app_permission = spectrocloud.get_permission(name="App Profile")
pulumi.export("permissions", app_permission.permissions)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/spectrocloud/spectrocloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
appPermission, err := spectrocloud.GetPermission(ctx, &spectrocloud.GetPermissionArgs{
Name: "App Profile",
}, nil)
if err != nil {
return err
}
ctx.Export("permissions", appPermission.Permissions)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Spectrocloud = Pulumi.Spectrocloud;
return await Deployment.RunAsync(() =>
{
var appPermission = Spectrocloud.GetPermission.Invoke(new()
{
Name = "App Profile",
});
return new Dictionary<string, object?>
{
["permissions"] = appPermission.Apply(getPermissionResult => getPermissionResult.Permissions),
};
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.spectrocloud.SpectrocloudFunctions;
import com.pulumi.spectrocloud.inputs.GetPermissionArgs;
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 appPermission = SpectrocloudFunctions.getPermission(GetPermissionArgs.builder()
.name("App Profile")
.build());
ctx.export("permissions", appPermission.applyValue(getPermissionResult -> getPermissionResult.permissions()));
}
}
variables:
appPermission:
fn::invoke:
function: spectrocloud:getPermission
arguments:
name: App Profile
outputs:
permissions: ${appPermission.permissions}
Using getPermission
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 getPermission(args: GetPermissionArgs, opts?: InvokeOptions): Promise<GetPermissionResult>
function getPermissionOutput(args: GetPermissionOutputArgs, opts?: InvokeOptions): Output<GetPermissionResult>
def get_permission(name: Optional[str] = None,
scope: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPermissionResult
def get_permission_output(name: Optional[pulumi.Input[str]] = None,
scope: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPermissionResult]
func GetPermission(ctx *Context, args *GetPermissionArgs, opts ...InvokeOption) (*GetPermissionResult, error)
func GetPermissionOutput(ctx *Context, args *GetPermissionOutputArgs, opts ...InvokeOption) GetPermissionResultOutput
> Note: This function is named GetPermission
in the Go SDK.
public static class GetPermission
{
public static Task<GetPermissionResult> InvokeAsync(GetPermissionArgs args, InvokeOptions? opts = null)
public static Output<GetPermissionResult> Invoke(GetPermissionInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPermissionResult> getPermission(GetPermissionArgs args, InvokeOptions options)
public static Output<GetPermissionResult> getPermission(GetPermissionArgs args, InvokeOptions options)
fn::invoke:
function: spectrocloud:index/getPermission:getPermission
arguments:
# arguments dictionary
The following arguments are supported:
getPermission Result
The following output properties are available:
- Id string
- The ID of this resource.
- Name string
- Name of the permissions. eg:
App Deployment
. - Permissions List<string>
- List of permissions associated with the permission name.
- Scope string
- Permission scope. Allowed permission levels are
project
ortenant
orresource
. Defaults toproject
.
- Id string
- The ID of this resource.
- Name string
- Name of the permissions. eg:
App Deployment
. - Permissions []string
- List of permissions associated with the permission name.
- Scope string
- Permission scope. Allowed permission levels are
project
ortenant
orresource
. Defaults toproject
.
- id String
- The ID of this resource.
- name String
- Name of the permissions. eg:
App Deployment
. - permissions List<String>
- List of permissions associated with the permission name.
- scope String
- Permission scope. Allowed permission levels are
project
ortenant
orresource
. Defaults toproject
.
- id string
- The ID of this resource.
- name string
- Name of the permissions. eg:
App Deployment
. - permissions string[]
- List of permissions associated with the permission name.
- scope string
- Permission scope. Allowed permission levels are
project
ortenant
orresource
. Defaults toproject
.
- id str
- The ID of this resource.
- name str
- Name of the permissions. eg:
App Deployment
. - permissions Sequence[str]
- List of permissions associated with the permission name.
- scope str
- Permission scope. Allowed permission levels are
project
ortenant
orresource
. Defaults toproject
.
- id String
- The ID of this resource.
- name String
- Name of the permissions. eg:
App Deployment
. - permissions List<String>
- List of permissions associated with the permission name.
- scope String
- Permission scope. Allowed permission levels are
project
ortenant
orresource
. Defaults toproject
.
Package Details
- Repository
- spectrocloud spectrocloud/terraform-provider-spectrocloud
- License
- Notes
- This Pulumi package is based on the
spectrocloud
Terraform Provider.
spectrocloud 0.23.4 published on Monday, Apr 14, 2025 by spectrocloud