---
title: "Get a role."
method: GET
path: "/roles/{uuid}"
tags: ["role"]
---

# Get a role.

`GET /roles/{uuid}`

Get a role.

## Path parameters

- `uuid` string, UUID, required

## Response `200`

Success

- RoleIntentResponse — Response object for intentful operations on a role
  - `status` RoleDefStatus — Role status definition.
    - `state` string — The state of the role entity.
    - `message_list` MessageResource[]
      - `message` string, required — If state is ERROR, a message describing the error.
      - `reason` string, required — If state is ERROR, a machine-readable snake-cased string.
      - `details` object — Custom key-value details relevant to the status.
    - `name` string, required — Role name.
    - `resources` object, required
      - `permission_reference_list` PermissionReference[] — List of permission entities.
        - `kind` string, required — The kind name
        - `name` string
        - `uuid` string, UUID, required
    - `description` string — A description or user annotation for the role.
  - `spec` Role — Role Input Definition.
    - `name` string, required — Role name.
    - `resources` object, required
      - `permission_reference_list` PermissionReference[] — List of permission references.
        - `kind` string, required — The kind name
        - `name` string
        - `uuid` string, UUID, required
    - `description` string — A description or user annotation for the role.
  - `api_version` string, required
  - `metadata` RoleMetadata, required — The role kind metadata
    - `last_update_time` string, date-time — UTC date and time in RFC-3339 format when role was last updated
    - `kind` string, required — The kind name
    - `uuid` string, UUID — role uuid
    - `spec_version` integer — Version number of the latest spec.
    - `creation_time` string, date-time — UTC date and time in RFC-3339 format when role was created
    - `spec_hash` string — Hash of the spec. This will be returned from server.
    - `should_force_translate` boolean — Applied on Prism Central only. Indicate whether force to translate the spec of the fanout request to fit the target cluster API schema.
    - `owner_reference` UserReference — The reference to a user
      - `kind` string, required — The kind name
      - `name` string
      - `uuid` string, UUID, required
    - `categories` object — Categories for the role
    - `name` string — role name

## Other responses

- `404` — Invalid UUID provided
- `default` — Internal Error

---

[API](https://skmtc.net/nutanix/apis/nutanix-intentful-api.md) · [All operations](https://skmtc.net/nutanix/apis/nutanix-intentful-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/nutanix/nutanix-intentful-api/revisions/40395083ab31/schema)
