1. Packages
  2. Wavefront Provider
  3. API Docs
  4. getRole
Wavefront v3.1.8 published on Tuesday, Mar 4, 2025 by Pulumi

wavefront.getRole

Explore with Pulumi AI

Wavefront v3.1.8 published on Tuesday, Mar 4, 2025 by Pulumi

Use this data source to get information about a Wavefront role by its ID.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as wavefront from "@pulumi/wavefront";

// Get the information about the role.
const example = wavefront.getRole({
    id: "role-id",
});
Copy
import pulumi
import pulumi_wavefront as wavefront

# Get the information about the role.
example = wavefront.get_role(id="role-id")
Copy
package main

import (
	"github.com/pulumi/pulumi-wavefront/sdk/v3/go/wavefront"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		// Get the information about the role.
		_, err := wavefront.LookupRole(ctx, &wavefront.LookupRoleArgs{
			Id: "role-id",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Wavefront = Pulumi.Wavefront;

return await Deployment.RunAsync(() => 
{
    // Get the information about the role.
    var example = Wavefront.GetRole.Invoke(new()
    {
        Id = "role-id",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.wavefront.WavefrontFunctions;
import com.pulumi.wavefront.inputs.GetRoleArgs;
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) {
        // Get the information about the role.
        final var example = WavefrontFunctions.getRole(GetRoleArgs.builder()
            .id("role-id")
            .build());

    }
}
Copy
variables:
  # Get the information about the role.
  example:
    fn::invoke:
      function: wavefront:getRole
      arguments:
        id: role-id
Copy

Using getRole

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 getRole(args: GetRoleArgs, opts?: InvokeOptions): Promise<GetRoleResult>
function getRoleOutput(args: GetRoleOutputArgs, opts?: InvokeOptions): Output<GetRoleResult>
Copy
def get_role(id: Optional[str] = None,
             opts: Optional[InvokeOptions] = None) -> GetRoleResult
def get_role_output(id: Optional[pulumi.Input[str]] = None,
             opts: Optional[InvokeOptions] = None) -> Output[GetRoleResult]
Copy
func LookupRole(ctx *Context, args *LookupRoleArgs, opts ...InvokeOption) (*LookupRoleResult, error)
func LookupRoleOutput(ctx *Context, args *LookupRoleOutputArgs, opts ...InvokeOption) LookupRoleResultOutput
Copy

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

public static class GetRole 
{
    public static Task<GetRoleResult> InvokeAsync(GetRoleArgs args, InvokeOptions? opts = null)
    public static Output<GetRoleResult> Invoke(GetRoleInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetRoleResult> getRole(GetRoleArgs args, InvokeOptions options)
public static Output<GetRoleResult> getRole(GetRoleArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: wavefront:index/getRole:getRole
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Id This property is required. string
The ID associated with the role data to be fetched.
Id This property is required. string
The ID associated with the role data to be fetched.
id This property is required. String
The ID associated with the role data to be fetched.
id This property is required. string
The ID associated with the role data to be fetched.
id This property is required. str
The ID associated with the role data to be fetched.
id This property is required. String
The ID associated with the role data to be fetched.

getRole Result

The following output properties are available:

Description string
Human-readable description of the role.
Id string
The ID of the role in Wavefront.
Name string
The name of the role in Wavefront.
Permissions List<string>
The list of permissions associated with role.
Description string
Human-readable description of the role.
Id string
The ID of the role in Wavefront.
Name string
The name of the role in Wavefront.
Permissions []string
The list of permissions associated with role.
description String
Human-readable description of the role.
id String
The ID of the role in Wavefront.
name String
The name of the role in Wavefront.
permissions List<String>
The list of permissions associated with role.
description string
Human-readable description of the role.
id string
The ID of the role in Wavefront.
name string
The name of the role in Wavefront.
permissions string[]
The list of permissions associated with role.
description str
Human-readable description of the role.
id str
The ID of the role in Wavefront.
name str
The name of the role in Wavefront.
permissions Sequence[str]
The list of permissions associated with role.
description String
Human-readable description of the role.
id String
The ID of the role in Wavefront.
name String
The name of the role in Wavefront.
permissions List<String>
The list of permissions associated with role.

Package Details

Repository
Wavefront pulumi/pulumi-wavefront
License
Apache-2.0
Notes
This Pulumi package is based on the wavefront Terraform Provider.
Wavefront v3.1.8 published on Tuesday, Mar 4, 2025 by Pulumi