Datadog

Pulumi Official
Package maintained by Pulumi
v4.8.0 published on Monday, Mar 28, 2022 by Pulumi

getRoles

Use this data source to retrieve information about multiple roles for use in other resources.

Example Usage

using Pulumi;
using Datadog = Pulumi.Datadog;

class MyStack : Stack
{
    public MyStack()
    {
        var foo = Output.Create(Datadog.GetRoles.InvokeAsync(new Datadog.GetRolesArgs
        {
            Filter = "Datadog",
        }));
    }

}
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := datadog.GetRoles(ctx, &GetRolesArgs{
			Filter: pulumi.StringRef("Datadog"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_datadog as datadog

foo = datadog.get_roles(filter="Datadog")
import * as pulumi from "@pulumi/pulumi";
import * as datadog from "@pulumi/datadog";

const foo = pulumi.output(datadog.getRoles({
    filter: "Datadog",
}));

Coming soon!

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(filter: Optional[str] = None,
              opts: Optional[InvokeOptions] = None) -> GetRolesResult
def get_roles_output(filter: Optional[pulumi.Input[str]] = 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: datadog:index/getRoles:getRoles
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Filter string

Filter all roles by the given string.

Filter string

Filter all roles by the given string.

filter String

Filter all roles by the given string.

filter string

Filter all roles by the given string.

filter str

Filter all roles by the given string.

filter String

Filter all roles by the given string.

getRoles Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Roles List<GetRolesRole>

List of Roles

Filter string

Filter all roles by the given string.

Id string

The provider-assigned unique ID for this managed resource.

Roles []GetRolesRole

List of Roles

Filter string

Filter all roles by the given string.

id String

The provider-assigned unique ID for this managed resource.

roles ListRolesRole>

List of Roles

filter String

Filter all roles by the given string.

id string

The provider-assigned unique ID for this managed resource.

roles GetRolesRole[]

List of Roles

filter string

Filter all roles by the given string.

id str

The provider-assigned unique ID for this managed resource.

roles Sequence[GetRolesRole]

List of Roles

filter str

Filter all roles by the given string.

id String

The provider-assigned unique ID for this managed resource.

roles List

List of Roles

filter String

Filter all roles by the given string.

Supporting Types

GetRolesRole

Id string

The ID of this resource.

Name string
UserCount int
Id string

The ID of this resource.

Name string
UserCount int
id String

The ID of this resource.

name String
userCount Integer
id string

The ID of this resource.

name string
userCount number
id str

The ID of this resource.

name str
user_count int
id String

The ID of this resource.

name String
userCount Number

Package Details

Repository
https://github.com/pulumi/pulumi-datadog
License
Apache-2.0
Notes

This Pulumi package is based on the datadog Terraform Provider.