RoleService_UpdateRole
PUT/auth/v3/partner/{metadata.partner}/organization/{metadata.organization}/role/{metadata.name}
RoleService_UpdateRole
Request
Path Parameters
Partner to which the resource belongs
Organization to which the resource belongs
name of the resource
- application/json
- application/yaml
Body
required
Default value: system.k8smgmt.io/v3
API Version of the Role resource
Default value: Role
Kind of the role resource
metadata objectrequired
metadata of the resource
display name of the resource
description of the resource
labels object
labels of the resource
annotations object
annotations of the resource
Project of the resource
spec objectrequired
Spec of the role resource
Permissions for the role
Specify if this is a global role
Scope of role
status object
Status of the resource
Body
required
Default value: system.k8smgmt.io/v3
API Version of the Role resource
Default value: Role
Kind of the role resource
metadata objectrequired
metadata of the resource
display name of the resource
description of the resource
labels object
labels of the resource
annotations object
annotations of the resource
Project of the resource
spec objectrequired
Spec of the role resource
Permissions for the role
Specify if this is a global role
Scope of role
status object
Status of the resource
Responses
- 200
- 403
- 404
- default
A successful response.
- application/json
- application/yaml
- Schema
- Example (from schema)
Schema
Default value: system.k8smgmt.io/v3
API Version of the Role resource
Default value: Role
Kind of the role resource
metadata objectrequired
Metadata of the role resource
name of the resource
display name of the resource
description of the resource
labels object
labels of the resource
annotations object
annotations of the resource
Project of the resource
Organization to which the resource belongs
Partner to which the resource belongs
spec objectrequired
Spec of the role resource
Permissions for the role
Specify if this is a global role
Scope of role
Specify if this is a builtin role
status object
Status of the resource
type of the status condition
Possible values: [StatusNotSet
, StatusSubmitted
, StatusOK
, StatusFailed
]
Default value: StatusNotSet
status of the condition
when the condition status is last updated
reason of the last condition status
{
"apiVersion": "system.k8smgmt.io/v3",
"kind": "Role",
"metadata": {
"name": "some-name",
"project": "defaultproject"
},
"spec": {
"rolepermissions": [
"string"
],
"isGlobal": true,
"scope": "string",
"builtin": true
},
"status": {
"conditionType": "string",
"conditionStatus": "StatusNotSet",
"lastUpdated": "2024-02-15T00:40:10.121Z",
"reason": "string"
}
}
- Schema
- Example (from schema)
Schema
Default value: system.k8smgmt.io/v3
API Version of the Role resource
Default value: Role
Kind of the role resource
metadata objectrequired
Metadata of the role resource
name of the resource
display name of the resource
description of the resource
labels object
labels of the resource
annotations object
annotations of the resource
Project of the resource
Organization to which the resource belongs
Partner to which the resource belongs
spec objectrequired
Spec of the role resource
Permissions for the role
Specify if this is a global role
Scope of role
Specify if this is a builtin role
status object
Status of the resource
type of the status condition
Possible values: [StatusNotSet
, StatusSubmitted
, StatusOK
, StatusFailed
]
Default value: StatusNotSet
status of the condition
when the condition status is last updated
reason of the last condition status
{
"apiVersion": "system.k8smgmt.io/v3",
"kind": "Role",
"metadata": {
"name": "some-name",
"project": "defaultproject"
},
"spec": {
"rolepermissions": [
"string"
],
"isGlobal": true,
"scope": "string",
"builtin": true
},
"status": {
"conditionType": "string",
"conditionStatus": "StatusNotSet",
"lastUpdated": "2024-02-15T00:40:10.121Z",
"reason": "string"
}
}
Returned when the role does not have permission to access the resource.
- application/json
- application/yaml
- Schema
Schema
- any
- Schema
Schema
- any
Returned when the resource does not exist.
- application/json
- application/yaml
- Schema
Schema
string
- Schema
Schema
string
An unexpected error response.
- application/json
- application/yaml
- Schema
- Example (from schema)
Schema
- Array [
- ]
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}
- Schema
- Example (from schema)
Schema
- Array [
- ]
details object[]
{
"code": 0,
"message": "string",
"details": [
{
"@type": "string"
}
]
}