The name parameter's value depends on the target resource for the
request, namely
roles,
projects, or
organizations. Each
resource type's name value format is described below:
roles.get(): roles/{ROLE_NAME}.
This method returns results from all
predefined roles in
Cloud IAM. Example request URL:
https://iam.googleapis.com/v1/roles/{ROLE_NAME}
projects.roles.get():
projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}. This method returns only
custom roles that have been
created at the project level. Example request URL:
https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}
organizations.roles.get():
organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}. This method
returns only custom roles that
have been created at the organization level. Example request URL:
https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}
Note: Wildcard (*) values are invalid; you must specify a complete project
ID or organization ID.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis document provides detailed information about the \u003ccode\u003eGetRoleRequest\u003c/code\u003e class, which is used to request the definition of an existing role within the Google Cloud IAM Admin V1 API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGetRoleRequest\u003c/code\u003e class, found in the \u003ccode\u003eGoogle.Cloud.Iam.Admin.V1\u003c/code\u003e namespace, implements multiple interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits from the base \u003ccode\u003eObject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the documentation is 2.4.0, with several previous versions available, including 2.3.0, 2.2.0, 2.1.0, 2.0.0, 1.2.0, 1.1.0 and 1.0.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGetRoleRequest\u003c/code\u003e class includes properties like \u003ccode\u003eName\u003c/code\u003e and \u003ccode\u003eResourceName\u003c/code\u003e, which are crucial for specifying the target role, and their required formats depend on the resource type being requested, such as roles, projects, or organizations.\u003c/p\u003e\n"],["\u003cp\u003eThe class has two constructors, allowing for either a new instance or a copy of an existing \u003ccode\u003eGetRoleRequest\u003c/code\u003e to be created.\u003c/p\u003e\n"]]],[],null,[]]