メインコンテンツへスキップ
GET
https://{tenantDomain}/api/v2
/
roles
/
{id}
Go
package example

import (
    context "context"

    client "github.com/auth0/go-auth0/management/management/client"
    option "github.com/auth0/go-auth0/management/management/option"
)

func do() {
    client := client.NewClient(
        option.WithToken(
            "<token>",
        ),
    )
    client.Roles.Get(
        context.TODO(),
        "id",
    )
}
{
  "description": "<string>",
  "id": "<string>",
  "name": "<string>"
}

承認

Authorization
string
header
必須

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

パスパラメータ

id
string
必須

取得するロールのID。

レスポンス

ロールを正常に取得しました。

description
string

このロールの説明。

id
string

このロールの ID。

name
string

このロールの名前。