Wavefront v3.1.4 published on Friday, Sep 20, 2024 by Pulumi
wavefront.getRoles
Explore with Pulumi AI
Use this data source to get all Roles in Wavefront.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as wavefront from "@pulumi/wavefront";
// Get all Roles
const roles = wavefront.getRoles({
limit: 10,
offset: 0,
});
import pulumi
import pulumi_wavefront as wavefront
# Get all Roles
roles = wavefront.get_roles(limit=10,
offset=0)
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 all Roles
_, err := wavefront.GetRoles(ctx, &wavefront.GetRolesArgs{
Limit: pulumi.IntRef(10),
Offset: pulumi.IntRef(0),
}, 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 all Roles
var roles = Wavefront.GetRoles.Invoke(new()
{
Limit = 10,
Offset = 0,
});
});
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.GetRolesArgs;
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 all Roles
final var roles = WavefrontFunctions.getRoles(GetRolesArgs.builder()
.limit(10)
.offset(0)
.build());
}
}
variables:
# Get all Roles
roles:
fn::invoke:
Function: wavefront:getRoles
Arguments:
limit: 10
offset: 0
Using getRoles
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 getRoles(args: GetRolesArgs, opts?: InvokeOptions): Promise<GetRolesResult>
function getRolesOutput(args: GetRolesOutputArgs, opts?: InvokeOptions): Output<GetRolesResult>
def get_roles(limit: Optional[int] = None,
offset: Optional[int] = None,
opts: Optional[InvokeOptions] = None) -> GetRolesResult
def get_roles_output(limit: Optional[pulumi.Input[int]] = None,
offset: Optional[pulumi.Input[int]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRolesResult]
func GetRoles(ctx *Context, args *GetRolesArgs, opts ...InvokeOption) (*GetRolesResult, error)
func GetRolesOutput(ctx *Context, args *GetRolesOutputArgs, opts ...InvokeOption) GetRolesResultOutput
> Note: This function is named GetRoles
in the Go SDK.
public static class GetRoles
{
public static Task<GetRolesResult> InvokeAsync(GetRolesArgs args, InvokeOptions? opts = null)
public static Output<GetRolesResult> Invoke(GetRolesInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetRolesResult> getRoles(GetRolesArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: wavefront:index/getRoles:getRoles
arguments:
# arguments dictionary
The following arguments are supported:
getRoles Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Roles
List<Get
Roles Role> - List of Wavefront Roles.
- Limit int
- Offset int
- Id string
- The provider-assigned unique ID for this managed resource.
- Roles
[]Get
Roles Role - List of Wavefront Roles.
- Limit int
- Offset int
- id String
- The provider-assigned unique ID for this managed resource.
- roles
List<Get
Roles Role> - List of Wavefront Roles.
- limit Integer
- offset Integer
- id string
- The provider-assigned unique ID for this managed resource.
- roles
Get
Roles Role[] - List of Wavefront Roles.
- limit number
- offset number
- id str
- The provider-assigned unique ID for this managed resource.
- roles
Sequence[Get
Roles Role] - List of Wavefront Roles.
- limit int
- offset int
- id String
- The provider-assigned unique ID for this managed resource.
- roles List<Property Map>
- List of Wavefront Roles.
- limit Number
- offset Number
Supporting Types
GetRolesRole
- Description string
- The Role's description.
- Id string
- The Role ID.
- Name string
- The Role Name.
- Permissions List<string>
- List of Permissions (Strings) associated with Role.
- Description string
- The Role's description.
- Id string
- The Role ID.
- Name string
- The Role Name.
- Permissions []string
- List of Permissions (Strings) associated with Role.
- description String
- The Role's description.
- id String
- The Role ID.
- name String
- The Role Name.
- permissions List<String>
- List of Permissions (Strings) associated with Role.
- description string
- The Role's description.
- id string
- The Role ID.
- name string
- The Role Name.
- permissions string[]
- List of Permissions (Strings) associated with Role.
- description str
- The Role's description.
- id str
- The Role ID.
- name str
- The Role Name.
- permissions Sequence[str]
- List of Permissions (Strings) associated with Role.
- description String
- The Role's description.
- id String
- The Role ID.
- name String
- The Role Name.
- permissions List<String>
- List of Permissions (Strings) 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.