Akamai

Pulumi Official
Package maintained by Pulumi
v3.0.0 published on Monday, Jul 25, 2022 by Pulumi

getIamRoles

Use akamai.getIamRoles to list roles for the current account and contract type. The account and contract type are determined by the access tokens in your API client. Use the roleId from this data source to construct the auth_grants_json when creating or updating a user’s auth grants.

Attributes reference

These attributes are returned:

  • roles — A list of roles.

API Reference

Example Usage

using Pulumi;
using Akamai = Pulumi.Akamai;

class MyStack : Stack
{
    public MyStack()
    {
        var my_roles = Output.Create(Akamai.GetIamRoles.InvokeAsync());
        this.Roles = my_roles;
    }

    [Output("roles")]
    public Output<string> Roles { get; set; }
}
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		my_roles, err := akamai.GetIamRoles(ctx, nil, nil)
		if err != nil {
			return err
		}
		ctx.Export("roles", my_roles)
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_akamai as akamai

my_roles = akamai.get_iam_roles()
pulumi.export("roles", my_roles)
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const my-roles = akamai.getIamRoles({});
export const roles = my_roles;
variables:
  my-roles:
    Fn::Invoke:
      Function: akamai:getIamRoles
      Arguments: {}
outputs:
  roles: ${["my-roles"]}

Using getIamRoles

function getIamRoles(opts?: InvokeOptions): Promise<GetIamRolesResult>
def get_iam_roles(opts: Optional[InvokeOptions] = None) -> GetIamRolesResult
func GetIamRoles(ctx *Context, opts ...InvokeOption) (*GetIamRolesResult, error)

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

public static class GetIamRoles 
{
    public static Task<GetIamRolesResult> InvokeAsync(InvokeOptions? opts = null)
}
public static CompletableFuture<GetIamRolesResult> getIamRoles(InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: akamai:index/getIamRoles:getIamRoles
  Arguments:
    # Arguments dictionary

getIamRoles Result

The following output properties are available:

Id string

The provider-assigned unique ID for this managed resource.

Roles List<GetIamRolesRole>
Id string

The provider-assigned unique ID for this managed resource.

Roles []GetIamRolesRole
id String

The provider-assigned unique ID for this managed resource.

roles List<GetIamRolesRole>
id string

The provider-assigned unique ID for this managed resource.

roles GetIamRolesRole[]
id str

The provider-assigned unique ID for this managed resource.

roles Sequence[GetIamRolesRole]
id String

The provider-assigned unique ID for this managed resource.

roles List<Property Map>

Supporting Types

GetIamRolesRole

CreatedBy string
Description string
ModifiedBy string
Name string
RoleId string
TimeCreated string
TimeModified string
Type string
CreatedBy string
Description string
ModifiedBy string
Name string
RoleId string
TimeCreated string
TimeModified string
Type string
createdBy String
description String
modifiedBy String
name String
roleId String
timeCreated String
timeModified String
type String
createdBy string
description string
modifiedBy string
name string
roleId string
timeCreated string
timeModified string
type string
createdBy String
description String
modifiedBy String
name String
roleId String
timeCreated String
timeModified String
type String

Package Details

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

This Pulumi package is based on the akamai Terraform Provider.