1. Packages
  2. Wavefront
  3. API Docs
  4. getRole
Wavefront v3.1.4 published on Friday, Sep 20, 2024 by Pulumi

wavefront.getRole

Explore with Pulumi AI

wavefront logo
Wavefront v3.1.4 published on Friday, Sep 20, 2024 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",
    });
    
    import pulumi
    import pulumi_wavefront as wavefront
    
    # Get the information about the role.
    example = wavefront.get_role(id="role-id")
    
    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
    	})
    }
    
    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",
        });
    
    });
    
    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());
    
        }
    }
    
    variables:
      # Get the information about the role.
      example:
        fn::invoke:
          Function: wavefront:getRole
          Arguments:
            id: role-id
    

    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>
    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]
    func LookupRole(ctx *Context, args *LookupRoleArgs, opts ...InvokeOption) (*LookupRoleResult, error)
    func LookupRoleOutput(ctx *Context, args *LookupRoleOutputArgs, opts ...InvokeOption) LookupRoleResultOutput

    > 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)
    }
    public static CompletableFuture<GetRoleResult> getRole(GetRoleArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: wavefront:index/getRole:getRole
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    The ID associated with the role data to be fetched.
    Id string
    The ID associated with the role data to be fetched.
    id String
    The ID associated with the role data to be fetched.
    id string
    The ID associated with the role data to be fetched.
    id str
    The ID associated with the role data to be fetched.
    id 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 logo
    Wavefront v3.1.4 published on Friday, Sep 20, 2024 by Pulumi