- API 参考
- Kubernetes (v1.27.5+k3s1)
- managementCattleIo_v3
- Responses
- Response samples
- listManagementCattleIoV3GlobalRoleBinding
- Responses
- Response samples
- createManagementCattleIoV3GlobalRoleBinding
- Responses
- Request samples
- Response samples
- deleteManagementCattleIoV3CollectionGlobalRoleBinding
- Responses
- Response samples
- readManagementCattleIoV3GlobalRoleBinding
- Responses
- Response samples
- replaceManagementCattleIoV3GlobalRoleBinding
- Responses
- Request samples
- Response samples
- deleteManagementCattleIoV3GlobalRoleBinding
- Responses
- Request samples
- Response samples
- patchManagementCattleIoV3GlobalRoleBinding
- Responses
- Request samples
- Response samples
- listManagementCattleIoV3GlobalRole
- Responses
- Response samples
- createManagementCattleIoV3GlobalRole
- Responses
- Request samples
- Response samples
- deleteManagementCattleIoV3CollectionGlobalRole
- Responses
- Response samples
- readManagementCattleIoV3GlobalRole
- Responses
- Response samples
- replaceManagementCattleIoV3GlobalRole
- Responses
- Request samples
- Response samples
- deleteManagementCattleIoV3GlobalRole
- Responses
- Request samples
- Response samples
- patchManagementCattleIoV3GlobalRole
- Responses
- Request samples
- Response samples
- listManagementCattleIoV3NamespacedClusterRoleTemplateBinding
- Responses
- Response samples
- createManagementCattleIoV3NamespacedClusterRoleTemplateBinding
- Responses
- Request samples
- Response samples
- deleteManagementCattleIoV3CollectionNamespacedClusterRoleTemplateBinding
- Responses
- Response samples
- readManagementCattleIoV3NamespacedClusterRoleTemplateBinding
- Responses
- Response samples
- replaceManagementCattleIoV3NamespacedClusterRoleTemplateBinding
- Responses
- Request samples
- Response samples
- deleteManagementCattleIoV3NamespacedClusterRoleTemplateBinding
- Responses
- Request samples
- Response samples
- patchManagementCattleIoV3NamespacedClusterRoleTemplateBinding
- Responses
- Request samples
- Response samples
- listManagementCattleIoV3NamespacedProjectRoleTemplateBinding
- Responses
- Response samples
- createManagementCattleIoV3NamespacedProjectRoleTemplateBinding
- Responses
- Request samples
- Response samples
- deleteManagementCattleIoV3CollectionNamespacedProjectRoleTemplateBinding
- Responses
- Response samples
- readManagementCattleIoV3NamespacedProjectRoleTemplateBinding
- Responses
- Response samples
- replaceManagementCattleIoV3NamespacedProjectRoleTemplateBinding
- Responses
- Request samples
- Response samples
- deleteManagementCattleIoV3NamespacedProjectRoleTemplateBinding
- Responses
- Request samples
- Response samples
- patchManagementCattleIoV3NamespacedProjectRoleTemplateBinding
- Responses
- Request samples
- Response samples
- listManagementCattleIoV3NamespacedProject
- Responses
- Response samples
- createManagementCattleIoV3NamespacedProject
- Responses
- Request samples
- Response samples
- deleteManagementCattleIoV3CollectionNamespacedProject
- Responses
- Response samples
- readManagementCattleIoV3NamespacedProject
- Responses
- Response samples
- replaceManagementCattleIoV3NamespacedProject
- Responses
- Request samples
- Response samples
- deleteManagementCattleIoV3NamespacedProject
- Responses
- Request samples
- Response samples
- patchManagementCattleIoV3NamespacedProject
- Responses
- Request samples
- Response samples
- listManagementCattleIoV3ProjectRoleTemplateBindingForAllNamespaces
- Responses
- Response samples
- listManagementCattleIoV3ProjectForAllNamespaces
- Responses
- Response samples
- listManagementCattleIoV3RoleTemplate
- Responses
- Response samples
- createManagementCattleIoV3RoleTemplate
- Responses
- Request samples
- Response samples
- deleteManagementCattleIoV3CollectionRoleTemplate
- Responses
- Response samples
- readManagementCattleIoV3RoleTemplate
- Responses
- Response samples
- replaceManagementCattleIoV3RoleTemplate
- Responses
- Request samples
- Response samples
- deleteManagementCattleIoV3RoleTemplate
- Responses
- Request samples
- Response samples
- patchManagementCattleIoV3RoleTemplate
- Responses
- Request samples
- Response samples
API 参考
备注
目前,并非所有的 Rancher 资源都可以通过 Rancher Kubernetes API 操作。
- managementCattleIo_v3
- getlistManagementCattleIoV3ClusterRoleTemplateBindingForAllNamespaces
- getlistManagementCattleIoV3GlobalRoleBinding
- postcreateManagementCattleIoV3GlobalRoleBinding
- deldeleteManagementCattleIoV3CollectionGlobalRoleBinding
- getreadManagementCattleIoV3GlobalRoleBinding
- putreplaceManagementCattleIoV3GlobalRoleBinding
- deldeleteManagementCattleIoV3GlobalRoleBinding
- patchpatchManagementCattleIoV3GlobalRoleBinding
- getlistManagementCattleIoV3GlobalRole
- postcreateManagementCattleIoV3GlobalRole
- deldeleteManagementCattleIoV3CollectionGlobalRole
- getreadManagementCattleIoV3GlobalRole
- putreplaceManagementCattleIoV3GlobalRole
- deldeleteManagementCattleIoV3GlobalRole
- patchpatchManagementCattleIoV3GlobalRole
- getlistManagementCattleIoV3NamespacedClusterRoleTemplateBinding
- postcreateManagementCattleIoV3NamespacedClusterRoleTemplateBinding
- deldeleteManagementCattleIoV3CollectionNamespacedClusterRoleTemplateBinding
- getreadManagementCattleIoV3NamespacedClusterRoleTemplateBinding
- putreplaceManagementCattleIoV3NamespacedClusterRoleTemplateBinding
- deldeleteManagementCattleIoV3NamespacedClusterRoleTemplateBinding
- patchpatchManagementCattleIoV3NamespacedClusterRoleTemplateBinding
- getlistManagementCattleIoV3NamespacedProjectRoleTemplateBinding
- postcreateManagementCattleIoV3NamespacedProjectRoleTemplateBinding
- deldeleteManagementCattleIoV3CollectionNamespacedProjectRoleTemplateBinding
- getreadManagementCattleIoV3NamespacedProjectRoleTemplateBinding
- putreplaceManagementCattleIoV3NamespacedProjectRoleTemplateBinding
- deldeleteManagementCattleIoV3NamespacedProjectRoleTemplateBinding
- patchpatchManagementCattleIoV3NamespacedProjectRoleTemplateBinding
- getlistManagementCattleIoV3NamespacedProject
- postcreateManagementCattleIoV3NamespacedProject
- deldeleteManagementCattleIoV3CollectionNamespacedProject
- getreadManagementCattleIoV3NamespacedProject
- putreplaceManagementCattleIoV3NamespacedProject
- deldeleteManagementCattleIoV3NamespacedProject
- patchpatchManagementCattleIoV3NamespacedProject
- getlistManagementCattleIoV3ProjectRoleTemplateBindingForAllNamespaces
- getlistManagementCattleIoV3ProjectForAllNamespaces
- getlistManagementCattleIoV3RoleTemplate
- postcreateManagementCattleIoV3RoleTemplate
- deldeleteManagementCattleIoV3CollectionRoleTemplate
- getreadManagementCattleIoV3RoleTemplate
- putreplaceManagementCattleIoV3RoleTemplate
- deldeleteManagementCattleIoV3RoleTemplate
- patchpatchManagementCattleIoV3RoleTemplate
Kubernetes (v1.27.5+k3s1)
Download OpenAPI specification:Download
managementCattleIo_v3
listManagementCattleIoV3ClusterRoleTemplateBindingForAllNamespaces
list objects of kind ClusterRoleTemplateBinding
Authorizations:
BearerToken
query Parameters
allowWatchBookmarks | boolean unique allowWatchBookmarks requests watch events with type “BOOKMARK”. Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server’s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. |
continue | string unique The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the “next key”. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. |
fieldSelector | string unique A selector to restrict the list of returned objects by their fields. Defaults to everything. |
labelSelector | string unique A selector to restrict the list of returned objects by their labels. Defaults to everything. |
limit | integer unique limit is a maximum number of responses to return for a list call. If more items exist, the server will set the The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. |
pretty | string unique If ‘true’, then the output is pretty printed. |
resourceVersion | string unique resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset |
resourceVersionMatch | string unique resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset |
sendInitialEvents | boolean unique
When
Defaults to true if |
timeoutSeconds | integer unique Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. |
watch | boolean unique Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. |
Responses
200
OK
401
Unauthorized
get/apis/management.cattle.io/v3/clusterroletemplatebindings
https://ranchermanager.docs.rancher.com/apis/management.cattle.io/v3/clusterroletemplatebindings
Response samples
- 200
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "apiVersion": "string", - "items": [ - { - "apiVersion": "string", - "clusterName": "string", - "groupName": "string", - "groupPrincipalName": "string", - "kind": "string", - "metadata": { - "annotations": { - "property1": "string", - "property2": "string" }, - "creationTimestamp": "2019-08-24T14:15:22Z", - "deletionGracePeriodSeconds": 0, - "deletionTimestamp": "2019-08-24T14:15:22Z", - "finalizers": [ - "string" ], - "generateName": "string", - "generation": 0, - "labels": { - "property1": "string", - "property2": "string" }, - "managedFields": [ - { - "apiVersion": "string", - "fieldsType": "string", - "fieldsV1": { }, - "manager": "string", - "operation": "string", - "subresource": "string", - "time": "2019-08-24T14:15:22Z" } ], - "name": "string", - "namespace": "string", - "ownerReferences": [ - { - "apiVersion": "string", - "blockOwnerDeletion": true, - "controller": true, - "kind": "string", - "name": "string", - "uid": "string" } ], - "resourceVersion": "string", - "selfLink": "string", - "uid": "string" }, - "roleTemplateName": "string", - "userName": "string", - "userPrincipalName": "string" } ], - "kind": "string", - "metadata": { - "continue": "string", - "remainingItemCount": 0, - "resourceVersion": "string", - "selfLink": "string" } }
listManagementCattleIoV3GlobalRoleBinding
list objects of kind GlobalRoleBinding
Authorizations:
BearerToken
query Parameters
pretty | string unique If ‘true’, then the output is pretty printed. |
allowWatchBookmarks | boolean unique allowWatchBookmarks requests watch events with type “BOOKMARK”. Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server’s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. |
continue | string unique The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the “next key”. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. |
fieldSelector | string unique A selector to restrict the list of returned objects by their fields. Defaults to everything. |
labelSelector | string unique A selector to restrict the list of returned objects by their labels. Defaults to everything. |
limit | integer unique limit is a maximum number of responses to return for a list call. If more items exist, the server will set the The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. |
resourceVersion | string unique resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset |
resourceVersionMatch | string unique resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset |
sendInitialEvents | boolean unique
When
Defaults to true if |
timeoutSeconds | integer unique Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. |
watch | boolean unique Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. |
Responses
200
OK
401
Unauthorized
get/apis/management.cattle.io/v3/globalrolebindings
https://ranchermanager.docs.rancher.com/apis/management.cattle.io/v3/globalrolebindings
Response samples
- 200
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "apiVersion": "string", - "items": [ - { - "apiVersion": "string", - "globalRoleName": "string", - "groupPrincipalName": "string", - "kind": "string", - "metadata": { - "annotations": { - "property1": "string", - "property2": "string" }, - "creationTimestamp": "2019-08-24T14:15:22Z", - "deletionGracePeriodSeconds": 0, - "deletionTimestamp": "2019-08-24T14:15:22Z", - "finalizers": [ - "string" ], - "generateName": "string", - "generation": 0, - "labels": { - "property1": "string", - "property2": "string" }, - "managedFields": [ - { - "apiVersion": "string", - "fieldsType": "string", - "fieldsV1": { }, - "manager": "string", - "operation": "string", - "subresource": "string", - "time": "2019-08-24T14:15:22Z" } ], - "name": "string", - "namespace": "string", - "ownerReferences": [ - { - "apiVersion": "string", - "blockOwnerDeletion": true, - "controller": true, - "kind": "string", - "name": "string", - "uid": "string" } ], - "resourceVersion": "string", - "selfLink": "string", - "uid": "string" }, - "userName": "string" } ], - "kind": "string", - "metadata": { - "continue": "string", - "remainingItemCount": 0, - "resourceVersion": "string", - "selfLink": "string" } }
createManagementCattleIoV3GlobalRoleBinding
create a GlobalRoleBinding
Authorizations:
BearerToken
query Parameters
pretty | string unique If ‘true’, then the output is pretty printed. |
dryRun | string unique When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed |
fieldManager | string unique fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. |
fieldValidation | string unique fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. |
Request Body schema:
application/jsonapplication/yamlapplication/json
apiVersion | string APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources |
globalRoleName required | string GlobalRoleName is the name of the Global Role that the subject will be bound to. Immutable. |
groupPrincipalName | string GroupPrincipalName is the name of the group principal subject to be bound. Immutable. |
kind | string Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds |
object (io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta) ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. | |
userName | string UserName is the name of the user subject to be bound. Immutable. |
Responses
200
OK
201
Created
202
Accepted
401
Unauthorized
post/apis/management.cattle.io/v3/globalrolebindings
https://ranchermanager.docs.rancher.com/apis/management.cattle.io/v3/globalrolebindings
Request samples
- Payload
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "apiVersion": "string", - "globalRoleName": "string", - "groupPrincipalName": "string", - "kind": "string", - "metadata": { - "annotations": { - "property1": "string", - "property2": "string" }, - "creationTimestamp": "2019-08-24T14:15:22Z", - "deletionGracePeriodSeconds": 0, - "deletionTimestamp": "2019-08-24T14:15:22Z", - "finalizers": [ - "string" ], - "generateName": "string", - "generation": 0, - "labels": { - "property1": "string", - "property2": "string" }, - "managedFields": [ - { - "apiVersion": "string", - "fieldsType": "string", - "fieldsV1": { }, - "manager": "string", - "operation": "string", - "subresource": "string", - "time": "2019-08-24T14:15:22Z" } ], - "name": "string", - "namespace": "string", - "ownerReferences": [ - { - "apiVersion": "string", - "blockOwnerDeletion": true, - "controller": true, - "kind": "string", - "name": "string", - "uid": "string" } ], - "resourceVersion": "string", - "selfLink": "string", - "uid": "string" }, - "userName": "string" }
Response samples
- 200
- 201
- 202
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "apiVersion": "string", - "globalRoleName": "string", - "groupPrincipalName": "string", - "kind": "string", - "metadata": { - "annotations": { - "property1": "string", - "property2": "string" }, - "creationTimestamp": "2019-08-24T14:15:22Z", - "deletionGracePeriodSeconds": 0, - "deletionTimestamp": "2019-08-24T14:15:22Z", - "finalizers": [ - "string" ], - "generateName": "string", - "generation": 0, - "labels": { - "property1": "string", - "property2": "string" }, - "managedFields": [ - { - "apiVersion": "string", - "fieldsType": "string", - "fieldsV1": { }, - "manager": "string", - "operation": "string", - "subresource": "string", - "time": "2019-08-24T14:15:22Z" } ], - "name": "string", - "namespace": "string", - "ownerReferences": [ - { - "apiVersion": "string", - "blockOwnerDeletion": true, - "controller": true, - "kind": "string", - "name": "string", - "uid": "string" } ], - "resourceVersion": "string", - "selfLink": "string", - "uid": "string" }, - "userName": "string" }
deleteManagementCattleIoV3CollectionGlobalRoleBinding
delete collection of GlobalRoleBinding
Authorizations:
BearerToken
query Parameters
pretty | string unique If ‘true’, then the output is pretty printed. |
allowWatchBookmarks | boolean unique allowWatchBookmarks requests watch events with type “BOOKMARK”. Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server’s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. |
continue | string unique The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the “next key”. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. |
fieldSelector | string unique A selector to restrict the list of returned objects by their fields. Defaults to everything. |
labelSelector | string unique A selector to restrict the list of returned objects by their labels. Defaults to everything. |
limit | integer unique limit is a maximum number of responses to return for a list call. If more items exist, the server will set the The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. |
resourceVersion | string unique resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset |
resourceVersionMatch | string unique resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset |
sendInitialEvents | boolean unique
When
Defaults to true if |
timeoutSeconds | integer unique Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. |
watch | boolean unique Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. |
Responses
200
OK
401
Unauthorized
delete/apis/management.cattle.io/v3/globalrolebindings
https://ranchermanager.docs.rancher.com/apis/management.cattle.io/v3/globalrolebindings
Response samples
- 200
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "apiVersion": "string", - "code": 0, - "details": { - "causes": [ - { - "field": "string", - "message": "string", - "reason": "string" } ], - "group": "string", - "kind": "string", - "name": "string", - "retryAfterSeconds": 0, - "uid": "string" }, - "kind": "string", - "message": "string", - "metadata": { - "continue": "string", - "remainingItemCount": 0, - "resourceVersion": "string", - "selfLink": "string" }, - "reason": "string", - "status": "string" }
readManagementCattleIoV3GlobalRoleBinding
read the specified GlobalRoleBinding
Authorizations:
BearerToken
path Parameters
name required | string unique name of the GlobalRoleBinding |
query Parameters
pretty | string unique If ‘true’, then the output is pretty printed. |
resourceVersion | string unique resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset |
Responses
200
OK
401
Unauthorized
get/apis/management.cattle.io/v3/globalrolebindings/{name}
https://ranchermanager.docs.rancher.com/apis/management.cattle.io/v3/globalrolebindings/{name}
Response samples
- 200
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "apiVersion": "string", - "globalRoleName": "string", - "groupPrincipalName": "string", - "kind": "string", - "metadata": { - "annotations": { - "property1": "string", - "property2": "string" }, - "creationTimestamp": "2019-08-24T14:15:22Z", - "deletionGracePeriodSeconds": 0, - "deletionTimestamp": "2019-08-24T14:15:22Z", - "finalizers": [ - "string" ], - "generateName": "string", - "generation": 0, - "labels": { - "property1": "string", - "property2": "string" }, - "managedFields": [ - { - "apiVersion": "string", - "fieldsType": "string", - "fieldsV1": { }, - "manager": "string", - "operation": "string", - "subresource": "string", - "time": "2019-08-24T14:15:22Z" } ], - "name": "string", - "namespace": "string", - "ownerReferences": [ - { - "apiVersion": "string", - "blockOwnerDeletion": true, - "controller": true, - "kind": "string", - "name": "string", - "uid": "string" } ], - "resourceVersion": "string", - "selfLink": "string", - "uid": "string" }, - "userName": "string" }
replaceManagementCattleIoV3GlobalRoleBinding
replace the specified GlobalRoleBinding
Authorizations:
BearerToken
path Parameters
name required | string unique name of the GlobalRoleBinding |
query Parameters
pretty | string unique If ‘true’, then the output is pretty printed. |
dryRun | string unique When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed |
fieldManager | string unique fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. |
fieldValidation | string unique fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. |
Request Body schema:
application/jsonapplication/yamlapplication/json
apiVersion | string APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources |
globalRoleName required | string GlobalRoleName is the name of the Global Role that the subject will be bound to. Immutable. |
groupPrincipalName | string GroupPrincipalName is the name of the group principal subject to be bound. Immutable. |
kind | string Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds |
object (io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta) ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. | |
userName | string UserName is the name of the user subject to be bound. Immutable. |
Responses
200
OK
201
Created
401
Unauthorized
put/apis/management.cattle.io/v3/globalrolebindings/{name}
https://ranchermanager.docs.rancher.com/apis/management.cattle.io/v3/globalrolebindings/{name}
Request samples
- Payload
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "apiVersion": "string", - "globalRoleName": "string", - "groupPrincipalName": "string", - "kind": "string", - "metadata": { - "annotations": { - "property1": "string", - "property2": "string" }, - "creationTimestamp": "2019-08-24T14:15:22Z", - "deletionGracePeriodSeconds": 0, - "deletionTimestamp": "2019-08-24T14:15:22Z", - "finalizers": [ - "string" ], - "generateName": "string", - "generation": 0, - "labels": { - "property1": "string", - "property2": "string" }, - "managedFields": [ - { - "apiVersion": "string", - "fieldsType": "string", - "fieldsV1": { }, - "manager": "string", - "operation": "string", - "subresource": "string", - "time": "2019-08-24T14:15:22Z" } ], - "name": "string", - "namespace": "string", - "ownerReferences": [ - { - "apiVersion": "string", - "blockOwnerDeletion": true, - "controller": true, - "kind": "string", - "name": "string", - "uid": "string" } ], - "resourceVersion": "string", - "selfLink": "string", - "uid": "string" }, - "userName": "string" }
Response samples
- 200
- 201
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "apiVersion": "string", - "globalRoleName": "string", - "groupPrincipalName": "string", - "kind": "string", - "metadata": { - "annotations": { - "property1": "string", - "property2": "string" }, - "creationTimestamp": "2019-08-24T14:15:22Z", - "deletionGracePeriodSeconds": 0, - "deletionTimestamp": "2019-08-24T14:15:22Z", - "finalizers": [ - "string" ], - "generateName": "string", - "generation": 0, - "labels": { - "property1": "string", - "property2": "string" }, - "managedFields": [ - { - "apiVersion": "string", - "fieldsType": "string", - "fieldsV1": { }, - "manager": "string", - "operation": "string", - "subresource": "string", - "time": "2019-08-24T14:15:22Z" } ], - "name": "string", - "namespace": "string", - "ownerReferences": [ - { - "apiVersion": "string", - "blockOwnerDeletion": true, - "controller": true, - "kind": "string", - "name": "string", - "uid": "string" } ], - "resourceVersion": "string", - "selfLink": "string", - "uid": "string" }, - "userName": "string" }
deleteManagementCattleIoV3GlobalRoleBinding
delete a GlobalRoleBinding
Authorizations:
BearerToken
path Parameters
name required | string unique name of the GlobalRoleBinding |
query Parameters
pretty | string unique If ‘true’, then the output is pretty printed. |
dryRun | string unique When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed |
gracePeriodSeconds | integer unique The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. |
orphanDependents | boolean unique Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the “orphan” finalizer will be added to/removed from the object’s finalizers list. Either this field or PropagationPolicy may be set, but not both. |
propagationPolicy | string unique Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: ‘Orphan’ - orphan the dependents; ‘Background’ - allow the garbage collector to delete the dependents in the background; ‘Foreground’ - a cascading policy that deletes all dependents in the foreground. |
Request Body schema:
application/jsonapplication/yamlapplication/json
apiVersion | string APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources |
dryRun | Array of strings When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed |
gracePeriodSeconds | integer <int64> The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. |
kind | string Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds |
orphanDependents | boolean Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the “orphan” finalizer will be added to/removed from the object’s finalizers list. Either this field or PropagationPolicy may be set, but not both. |
object (io.k8s.apimachinery.pkg.apis.meta.v1.Preconditions) Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out. | |
propagationPolicy | string Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: ‘Orphan’ - orphan the dependents; ‘Background’ - allow the garbage collector to delete the dependents in the background; ‘Foreground’ - a cascading policy that deletes all dependents in the foreground. |
Responses
200
OK
202
Accepted
401
Unauthorized
delete/apis/management.cattle.io/v3/globalrolebindings/{name}
https://ranchermanager.docs.rancher.com/apis/management.cattle.io/v3/globalrolebindings/{name}
Request samples
- Payload
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "apiVersion": "string", - "dryRun": [ - "string" ], - "gracePeriodSeconds": 0, - "kind": "string", - "orphanDependents": true, - "preconditions": { - "resourceVersion": "string", - "uid": "string" }, - "propagationPolicy": "string" }
Response samples
- 200
- 202
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "apiVersion": "string", - "code": 0, - "details": { - "causes": [ - { - "field": "string", - "message": "string", - "reason": "string" } ], - "group": "string", - "kind": "string", - "name": "string", - "retryAfterSeconds": 0, - "uid": "string" }, - "kind": "string", - "message": "string", - "metadata": { - "continue": "string", - "remainingItemCount": 0, - "resourceVersion": "string", - "selfLink": "string" }, - "reason": "string", - "status": "string" }
patchManagementCattleIoV3GlobalRoleBinding
partially update the specified GlobalRoleBinding
Authorizations:
BearerToken
path Parameters
name required | string unique name of the GlobalRoleBinding |
query Parameters
pretty | string unique If ‘true’, then the output is pretty printed. |
dryRun | string unique When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed |
fieldManager | string unique fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). |
fieldValidation | string unique fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. |
force | boolean unique Force is going to “force” Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. |
Request Body schema:
application/json-patch+jsonapplication/merge-patch+jsonapplication/apply-patch+yamlapplication/json-patch+json
object (io.k8s.apimachinery.pkg.apis.meta.v1.Patch)
Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.
Responses
200
OK
401
Unauthorized
patch/apis/management.cattle.io/v3/globalrolebindings/{name}
https://ranchermanager.docs.rancher.com/apis/management.cattle.io/v3/globalrolebindings/{name}
Request samples
- Payload
Content type
application/json-patch+jsonapplication/merge-patch+jsonapplication/apply-patch+yamlapplication/json-patch+json
Copy
{ }
Response samples
- 200
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "apiVersion": "string", - "globalRoleName": "string", - "groupPrincipalName": "string", - "kind": "string", - "metadata": { - "annotations": { - "property1": "string", - "property2": "string" }, - "creationTimestamp": "2019-08-24T14:15:22Z", - "deletionGracePeriodSeconds": 0, - "deletionTimestamp": "2019-08-24T14:15:22Z", - "finalizers": [ - "string" ], - "generateName": "string", - "generation": 0, - "labels": { - "property1": "string", - "property2": "string" }, - "managedFields": [ - { - "apiVersion": "string", - "fieldsType": "string", - "fieldsV1": { }, - "manager": "string", - "operation": "string", - "subresource": "string", - "time": "2019-08-24T14:15:22Z" } ], - "name": "string", - "namespace": "string", - "ownerReferences": [ - { - "apiVersion": "string", - "blockOwnerDeletion": true, - "controller": true, - "kind": "string", - "name": "string", - "uid": "string" } ], - "resourceVersion": "string", - "selfLink": "string", - "uid": "string" }, - "userName": "string" }
listManagementCattleIoV3GlobalRole
list objects of kind GlobalRole
Authorizations:
BearerToken
query Parameters
pretty | string unique If ‘true’, then the output is pretty printed. |
allowWatchBookmarks | boolean unique allowWatchBookmarks requests watch events with type “BOOKMARK”. Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server’s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. |
continue | string unique The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the “next key”. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. |
fieldSelector | string unique A selector to restrict the list of returned objects by their fields. Defaults to everything. |
labelSelector | string unique A selector to restrict the list of returned objects by their labels. Defaults to everything. |
limit | integer unique limit is a maximum number of responses to return for a list call. If more items exist, the server will set the The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. |
resourceVersion | string unique resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset |
resourceVersionMatch | string unique resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset |
sendInitialEvents | boolean unique
When
Defaults to true if |
timeoutSeconds | integer unique Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. |
watch | boolean unique Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. |
Responses
200
OK
401
Unauthorized
get/apis/management.cattle.io/v3/globalroles
https://ranchermanager.docs.rancher.com/apis/management.cattle.io/v3/globalroles
Response samples
- 200
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "apiVersion": "string", - "items": [ - { - "apiVersion": "string", - "builtin": true, - "description": "string", - "displayName": "string", - "inheritedClusterRoles": [ - "string" ], - "kind": "string", - "metadata": { - "annotations": { - "property1": "string", - "property2": "string" }, - "creationTimestamp": "2019-08-24T14:15:22Z", - "deletionGracePeriodSeconds": 0, - "deletionTimestamp": "2019-08-24T14:15:22Z", - "finalizers": [ - "string" ], - "generateName": "string", - "generation": 0, - "labels": { - "property1": "string", - "property2": "string" }, - "managedFields": [ - { - "apiVersion": "string", - "fieldsType": "string", - "fieldsV1": { }, - "manager": "string", - "operation": "string", - "subresource": "string", - "time": "2019-08-24T14:15:22Z" } ], - "name": "string", - "namespace": "string", - "ownerReferences": [ - { - "apiVersion": "string", - "blockOwnerDeletion": true, - "controller": true, - "kind": "string", - "name": "string", - "uid": "string" } ], - "resourceVersion": "string", - "selfLink": "string", - "uid": "string" }, - "newUserDefault": true, - "rules": [ - { - "apiGroups": [ - "string" ], - "nonResourceURLs": [ - "string" ], - "resourceNames": [ - "string" ], - "resources": [ - "string" ], - "verbs": [ - "string" ] } ] } ], - "kind": "string", - "metadata": { - "continue": "string", - "remainingItemCount": 0, - "resourceVersion": "string", - "selfLink": "string" } }
createManagementCattleIoV3GlobalRole
create a GlobalRole
Authorizations:
BearerToken
query Parameters
pretty | string unique If ‘true’, then the output is pretty printed. |
dryRun | string unique When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed |
fieldManager | string unique fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. |
fieldValidation | string unique fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. |
Request Body schema:
application/jsonapplication/yamlapplication/json
apiVersion | string APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources |
builtin | boolean Builtin specifies that this GlobalRole was created by Rancher if true. Immutable. |
description | string Description holds text that describes the resource. |
displayName | string DisplayName is the human-readable name displayed in the UI for this resource. |
inheritedClusterRoles | Array of strings InheritedClusterRoles are the names of RoleTemplates whose permissions are granted by this GlobalRole in every cluster besides the local cluster. To grant permissions in the local cluster, use the Rules field. |
kind | string Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds |
object (io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta) ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. | |
newUserDefault | boolean NewUserDefault specifies that all new users created should be bound to this GlobalRole if true. |
Array of objects Rules holds a list of PolicyRules that are applied to the local cluster only. |
Responses
200
OK
201
Created
202
Accepted
401
Unauthorized
post/apis/management.cattle.io/v3/globalroles
https://ranchermanager.docs.rancher.com/apis/management.cattle.io/v3/globalroles
Request samples
- Payload
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "apiVersion": "string", - "builtin": true, - "description": "string", - "displayName": "string", - "inheritedClusterRoles": [ - "string" ], - "kind": "string", - "metadata": { - "annotations": { - "property1": "string", - "property2": "string" }, - "creationTimestamp": "2019-08-24T14:15:22Z", - "deletionGracePeriodSeconds": 0, - "deletionTimestamp": "2019-08-24T14:15:22Z", - "finalizers": [ - "string" ], - "generateName": "string", - "generation": 0, - "labels": { - "property1": "string", - "property2": "string" }, - "managedFields": [ - { - "apiVersion": "string", - "fieldsType": "string", - "fieldsV1": { }, - "manager": "string", - "operation": "string", - "subresource": "string", - "time": "2019-08-24T14:15:22Z" } ], - "name": "string", - "namespace": "string", - "ownerReferences": [ - { - "apiVersion": "string", - "blockOwnerDeletion": true, - "controller": true, - "kind": "string", - "name": "string", - "uid": "string" } ], - "resourceVersion": "string", - "selfLink": "string", - "uid": "string" }, - "newUserDefault": true, - "rules": [ - { - "apiGroups": [ - "string" ], - "nonResourceURLs": [ - "string" ], - "resourceNames": [ - "string" ], - "resources": [ - "string" ], - "verbs": [ - "string" ] } ] }
Response samples
- 200
- 201
- 202
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "apiVersion": "string", - "builtin": true, - "description": "string", - "displayName": "string", - "inheritedClusterRoles": [ - "string" ], - "kind": "string", - "metadata": { - "annotations": { - "property1": "string", - "property2": "string" }, - "creationTimestamp": "2019-08-24T14:15:22Z", - "deletionGracePeriodSeconds": 0, - "deletionTimestamp": "2019-08-24T14:15:22Z", - "finalizers": [ - "string" ], - "generateName": "string", - "generation": 0, - "labels": { - "property1": "string", - "property2": "string" }, - "managedFields": [ - { - "apiVersion": "string", - "fieldsType": "string", - "fieldsV1": { }, - "manager": "string", - "operation": "string", - "subresource": "string", - "time": "2019-08-24T14:15:22Z" } ], - "name": "string", - "namespace": "string", - "ownerReferences": [ - { - "apiVersion": "string", - "blockOwnerDeletion": true, - "controller": true, - "kind": "string", - "name": "string", - "uid": "string" } ], - "resourceVersion": "string", - "selfLink": "string", - "uid": "string" }, - "newUserDefault": true, - "rules": [ - { - "apiGroups": [ - "string" ], - "nonResourceURLs": [ - "string" ], - "resourceNames": [ - "string" ], - "resources": [ - "string" ], - "verbs": [ - "string" ] } ] }
deleteManagementCattleIoV3CollectionGlobalRole
delete collection of GlobalRole
Authorizations:
BearerToken
query Parameters
pretty | string unique If ‘true’, then the output is pretty printed. |
allowWatchBookmarks | boolean unique allowWatchBookmarks requests watch events with type “BOOKMARK”. Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server’s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. |
continue | string unique The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the “next key”. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. |
fieldSelector | string unique A selector to restrict the list of returned objects by their fields. Defaults to everything. |
labelSelector | string unique A selector to restrict the list of returned objects by their labels. Defaults to everything. |
limit | integer unique limit is a maximum number of responses to return for a list call. If more items exist, the server will set the The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. |
resourceVersion | string unique resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset |
resourceVersionMatch | string unique resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset |
sendInitialEvents | boolean unique
When
Defaults to true if |
timeoutSeconds | integer unique Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. |
watch | boolean unique Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. |
Responses
200
OK
401
Unauthorized
delete/apis/management.cattle.io/v3/globalroles
https://ranchermanager.docs.rancher.com/apis/management.cattle.io/v3/globalroles
Response samples
- 200
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "apiVersion": "string", - "code": 0, - "details": { - "causes": [ - { - "field": "string", - "message": "string", - "reason": "string" } ], - "group": "string", - "kind": "string", - "name": "string", - "retryAfterSeconds": 0, - "uid": "string" }, - "kind": "string", - "message": "string", - "metadata": { - "continue": "string", - "remainingItemCount": 0, - "resourceVersion": "string", - "selfLink": "string" }, - "reason": "string", - "status": "string" }
readManagementCattleIoV3GlobalRole
read the specified GlobalRole
Authorizations:
BearerToken
path Parameters
name required | string unique name of the GlobalRole |
query Parameters
pretty | string unique If ‘true’, then the output is pretty printed. |
resourceVersion | string unique resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset |
Responses
200
OK
401
Unauthorized
get/apis/management.cattle.io/v3/globalroles/{name}
https://ranchermanager.docs.rancher.com/apis/management.cattle.io/v3/globalroles/{name}
Response samples
- 200
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "apiVersion": "string", - "builtin": true, - "description": "string", - "displayName": "string", - "inheritedClusterRoles": [ - "string" ], - "kind": "string", - "metadata": { - "annotations": { - "property1": "string", - "property2": "string" }, - "creationTimestamp": "2019-08-24T14:15:22Z", - "deletionGracePeriodSeconds": 0, - "deletionTimestamp": "2019-08-24T14:15:22Z", - "finalizers": [ - "string" ], - "generateName": "string", - "generation": 0, - "labels": { - "property1": "string", - "property2": "string" }, - "managedFields": [ - { - "apiVersion": "string", - "fieldsType": "string", - "fieldsV1": { }, - "manager": "string", - "operation": "string", - "subresource": "string", - "time": "2019-08-24T14:15:22Z" } ], - "name": "string", - "namespace": "string", - "ownerReferences": [ - { - "apiVersion": "string", - "blockOwnerDeletion": true, - "controller": true, - "kind": "string", - "name": "string", - "uid": "string" } ], - "resourceVersion": "string", - "selfLink": "string", - "uid": "string" }, - "newUserDefault": true, - "rules": [ - { - "apiGroups": [ - "string" ], - "nonResourceURLs": [ - "string" ], - "resourceNames": [ - "string" ], - "resources": [ - "string" ], - "verbs": [ - "string" ] } ] }
replaceManagementCattleIoV3GlobalRole
replace the specified GlobalRole
Authorizations:
BearerToken
path Parameters
name required | string unique name of the GlobalRole |
query Parameters
pretty | string unique If ‘true’, then the output is pretty printed. |
dryRun | string unique When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed |
fieldManager | string unique fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. |
fieldValidation | string unique fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. |
Request Body schema:
application/jsonapplication/yamlapplication/json
apiVersion | string APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources |
builtin | boolean Builtin specifies that this GlobalRole was created by Rancher if true. Immutable. |
description | string Description holds text that describes the resource. |
displayName | string DisplayName is the human-readable name displayed in the UI for this resource. |
inheritedClusterRoles | Array of strings InheritedClusterRoles are the names of RoleTemplates whose permissions are granted by this GlobalRole in every cluster besides the local cluster. To grant permissions in the local cluster, use the Rules field. |
kind | string Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds |
object (io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta) ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. | |
newUserDefault | boolean NewUserDefault specifies that all new users created should be bound to this GlobalRole if true. |
Array of objects Rules holds a list of PolicyRules that are applied to the local cluster only. |
Responses
200
OK
201
Created
401
Unauthorized
put/apis/management.cattle.io/v3/globalroles/{name}
https://ranchermanager.docs.rancher.com/apis/management.cattle.io/v3/globalroles/{name}
Request samples
- Payload
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "apiVersion": "string", - "builtin": true, - "description": "string", - "displayName": "string", - "inheritedClusterRoles": [ - "string" ], - "kind": "string", - "metadata": { - "annotations": { - "property1": "string", - "property2": "string" }, - "creationTimestamp": "2019-08-24T14:15:22Z", - "deletionGracePeriodSeconds": 0, - "deletionTimestamp": "2019-08-24T14:15:22Z", - "finalizers": [ - "string" ], - "generateName": "string", - "generation": 0, - "labels": { - "property1": "string", - "property2": "string" }, - "managedFields": [ - { - "apiVersion": "string", - "fieldsType": "string", - "fieldsV1": { }, - "manager": "string", - "operation": "string", - "subresource": "string", - "time": "2019-08-24T14:15:22Z" } ], - "name": "string", - "namespace": "string", - "ownerReferences": [ - { - "apiVersion": "string", - "blockOwnerDeletion": true, - "controller": true, - "kind": "string", - "name": "string", - "uid": "string" } ], - "resourceVersion": "string", - "selfLink": "string", - "uid": "string" }, - "newUserDefault": true, - "rules": [ - { - "apiGroups": [ - "string" ], - "nonResourceURLs": [ - "string" ], - "resourceNames": [ - "string" ], - "resources": [ - "string" ], - "verbs": [ - "string" ] } ] }
Response samples
- 200
- 201
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "apiVersion": "string", - "builtin": true, - "description": "string", - "displayName": "string", - "inheritedClusterRoles": [ - "string" ], - "kind": "string", - "metadata": { - "annotations": { - "property1": "string", - "property2": "string" }, - "creationTimestamp": "2019-08-24T14:15:22Z", - "deletionGracePeriodSeconds": 0, - "deletionTimestamp": "2019-08-24T14:15:22Z", - "finalizers": [ - "string" ], - "generateName": "string", - "generation": 0, - "labels": { - "property1": "string", - "property2": "string" }, - "managedFields": [ - { - "apiVersion": "string", - "fieldsType": "string", - "fieldsV1": { }, - "manager": "string", - "operation": "string", - "subresource": "string", - "time": "2019-08-24T14:15:22Z" } ], - "name": "string", - "namespace": "string", - "ownerReferences": [ - { - "apiVersion": "string", - "blockOwnerDeletion": true, - "controller": true, - "kind": "string", - "name": "string", - "uid": "string" } ], - "resourceVersion": "string", - "selfLink": "string", - "uid": "string" }, - "newUserDefault": true, - "rules": [ - { - "apiGroups": [ - "string" ], - "nonResourceURLs": [ - "string" ], - "resourceNames": [ - "string" ], - "resources": [ - "string" ], - "verbs": [ - "string" ] } ] }
deleteManagementCattleIoV3GlobalRole
delete a GlobalRole
Authorizations:
BearerToken
path Parameters
name required | string unique name of the GlobalRole |
query Parameters
pretty | string unique If ‘true’, then the output is pretty printed. |
dryRun | string unique When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed |
gracePeriodSeconds | integer unique The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. |
orphanDependents | boolean unique Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the “orphan” finalizer will be added to/removed from the object’s finalizers list. Either this field or PropagationPolicy may be set, but not both. |
propagationPolicy | string unique Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: ‘Orphan’ - orphan the dependents; ‘Background’ - allow the garbage collector to delete the dependents in the background; ‘Foreground’ - a cascading policy that deletes all dependents in the foreground. |
Request Body schema:
application/jsonapplication/yamlapplication/json
apiVersion | string APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources |
dryRun | Array of strings When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed |
gracePeriodSeconds | integer <int64> The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. |
kind | string Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds |
orphanDependents | boolean Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the “orphan” finalizer will be added to/removed from the object’s finalizers list. Either this field or PropagationPolicy may be set, but not both. |
object (io.k8s.apimachinery.pkg.apis.meta.v1.Preconditions) Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out. | |
propagationPolicy | string Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: ‘Orphan’ - orphan the dependents; ‘Background’ - allow the garbage collector to delete the dependents in the background; ‘Foreground’ - a cascading policy that deletes all dependents in the foreground. |
Responses
200
OK
202
Accepted
401
Unauthorized
delete/apis/management.cattle.io/v3/globalroles/{name}
https://ranchermanager.docs.rancher.com/apis/management.cattle.io/v3/globalroles/{name}
Request samples
- Payload
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "apiVersion": "string", - "dryRun": [ - "string" ], - "gracePeriodSeconds": 0, - "kind": "string", - "orphanDependents": true, - "preconditions": { - "resourceVersion": "string", - "uid": "string" }, - "propagationPolicy": "string" }
Response samples
- 200
- 202
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "apiVersion": "string", - "code": 0, - "details": { - "causes": [ - { - "field": "string", - "message": "string", - "reason": "string" } ], - "group": "string", - "kind": "string", - "name": "string", - "retryAfterSeconds": 0, - "uid": "string" }, - "kind": "string", - "message": "string", - "metadata": { - "continue": "string", - "remainingItemCount": 0, - "resourceVersion": "string", - "selfLink": "string" }, - "reason": "string", - "status": "string" }
patchManagementCattleIoV3GlobalRole
partially update the specified GlobalRole
Authorizations:
BearerToken
path Parameters
name required | string unique name of the GlobalRole |
query Parameters
pretty | string unique If ‘true’, then the output is pretty printed. |
dryRun | string unique When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed |
fieldManager | string unique fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). |
fieldValidation | string unique fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. |
force | boolean unique Force is going to “force” Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. |
Request Body schema:
application/json-patch+jsonapplication/merge-patch+jsonapplication/apply-patch+yamlapplication/json-patch+json
object (io.k8s.apimachinery.pkg.apis.meta.v1.Patch)
Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.
Responses
200
OK
401
Unauthorized
patch/apis/management.cattle.io/v3/globalroles/{name}
https://ranchermanager.docs.rancher.com/apis/management.cattle.io/v3/globalroles/{name}
Request samples
- Payload
Content type
application/json-patch+jsonapplication/merge-patch+jsonapplication/apply-patch+yamlapplication/json-patch+json
Copy
{ }
Response samples
- 200
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "apiVersion": "string", - "builtin": true, - "description": "string", - "displayName": "string", - "inheritedClusterRoles": [ - "string" ], - "kind": "string", - "metadata": { - "annotations": { - "property1": "string", - "property2": "string" }, - "creationTimestamp": "2019-08-24T14:15:22Z", - "deletionGracePeriodSeconds": 0, - "deletionTimestamp": "2019-08-24T14:15:22Z", - "finalizers": [ - "string" ], - "generateName": "string", - "generation": 0, - "labels": { - "property1": "string", - "property2": "string" }, - "managedFields": [ - { - "apiVersion": "string", - "fieldsType": "string", - "fieldsV1": { }, - "manager": "string", - "operation": "string", - "subresource": "string", - "time": "2019-08-24T14:15:22Z" } ], - "name": "string", - "namespace": "string", - "ownerReferences": [ - { - "apiVersion": "string", - "blockOwnerDeletion": true, - "controller": true, - "kind": "string", - "name": "string", - "uid": "string" } ], - "resourceVersion": "string", - "selfLink": "string", - "uid": "string" }, - "newUserDefault": true, - "rules": [ - { - "apiGroups": [ - "string" ], - "nonResourceURLs": [ - "string" ], - "resourceNames": [ - "string" ], - "resources": [ - "string" ], - "verbs": [ - "string" ] } ] }
listManagementCattleIoV3NamespacedClusterRoleTemplateBinding
list objects of kind ClusterRoleTemplateBinding
Authorizations:
BearerToken
path Parameters
namespace required | string unique object name and auth scope, such as for teams and projects |
query Parameters
pretty | string unique If ‘true’, then the output is pretty printed. |
allowWatchBookmarks | boolean unique allowWatchBookmarks requests watch events with type “BOOKMARK”. Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server’s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. |
continue | string unique The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the “next key”. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. |
fieldSelector | string unique A selector to restrict the list of returned objects by their fields. Defaults to everything. |
labelSelector | string unique A selector to restrict the list of returned objects by their labels. Defaults to everything. |
limit | integer unique limit is a maximum number of responses to return for a list call. If more items exist, the server will set the The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. |
resourceVersion | string unique resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset |
resourceVersionMatch | string unique resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset |
sendInitialEvents | boolean unique
When
Defaults to true if |
timeoutSeconds | integer unique Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. |
watch | boolean unique Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. |
Responses
200
OK
401
Unauthorized
get/apis/management.cattle.io/v3/namespaces/{namespace}/clusterroletemplatebindings
Response samples
- 200
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "apiVersion": "string", - "items": [ - { - "apiVersion": "string", - "clusterName": "string", - "groupName": "string", - "groupPrincipalName": "string", - "kind": "string", - "metadata": { - "annotations": { - "property1": "string", - "property2": "string" }, - "creationTimestamp": "2019-08-24T14:15:22Z", - "deletionGracePeriodSeconds": 0, - "deletionTimestamp": "2019-08-24T14:15:22Z", - "finalizers": [ - "string" ], - "generateName": "string", - "generation": 0, - "labels": { - "property1": "string", - "property2": "string" }, - "managedFields": [ - { - "apiVersion": "string", - "fieldsType": "string", - "fieldsV1": { }, - "manager": "string", - "operation": "string", - "subresource": "string", - "time": "2019-08-24T14:15:22Z" } ], - "name": "string", - "namespace": "string", - "ownerReferences": [ - { - "apiVersion": "string", - "blockOwnerDeletion": true, - "controller": true, - "kind": "string", - "name": "string", - "uid": "string" } ], - "resourceVersion": "string", - "selfLink": "string", - "uid": "string" }, - "roleTemplateName": "string", - "userName": "string", - "userPrincipalName": "string" } ], - "kind": "string", - "metadata": { - "continue": "string", - "remainingItemCount": 0, - "resourceVersion": "string", - "selfLink": "string" } }
createManagementCattleIoV3NamespacedClusterRoleTemplateBinding
create a ClusterRoleTemplateBinding
Authorizations:
BearerToken
path Parameters
namespace required | string unique object name and auth scope, such as for teams and projects |
query Parameters
pretty | string unique If ‘true’, then the output is pretty printed. |
dryRun | string unique When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed |
fieldManager | string unique fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. |
fieldValidation | string unique fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. |
Request Body schema:
application/jsonapplication/yamlapplication/json
apiVersion | string APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources |
clusterName required | string ClusterName is the metadata.name of the cluster to which a subject is added. Must match the namespace. Immutable. |
groupName | string GroupName is the name of the group subject added to the cluster. Immutable. |
groupPrincipalName | string GroupPrincipalName is the name of the group principal subject added to the cluster. Immutable. |
kind | string Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds |
object (io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta) ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. | |
roleTemplateName required | string RoleTemplateName is the name of the role template that defines permissions to perform actions on resources in the cluster. Immutable. |
userName | string UserName is the name of the user subject added to the cluster. Immutable. |
userPrincipalName | string UserPrincipalName is the name of the user principal subject added to the cluster. Immutable. |
Responses
200
OK
201
Created
202
Accepted
401
Unauthorized
post/apis/management.cattle.io/v3/namespaces/{namespace}/clusterroletemplatebindings
Request samples
- Payload
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "apiVersion": "string", - "clusterName": "string", - "groupName": "string", - "groupPrincipalName": "string", - "kind": "string", - "metadata": { - "annotations": { - "property1": "string", - "property2": "string" }, - "creationTimestamp": "2019-08-24T14:15:22Z", - "deletionGracePeriodSeconds": 0, - "deletionTimestamp": "2019-08-24T14:15:22Z", - "finalizers": [ - "string" ], - "generateName": "string", - "generation": 0, - "labels": { - "property1": "string", - "property2": "string" }, - "managedFields": [ - { - "apiVersion": "string", - "fieldsType": "string", - "fieldsV1": { }, - "manager": "string", - "operation": "string", - "subresource": "string", - "time": "2019-08-24T14:15:22Z" } ], - "name": "string", - "namespace": "string", - "ownerReferences": [ - { - "apiVersion": "string", - "blockOwnerDeletion": true, - "controller": true, - "kind": "string", - "name": "string", - "uid": "string" } ], - "resourceVersion": "string", - "selfLink": "string", - "uid": "string" }, - "roleTemplateName": "string", - "userName": "string", - "userPrincipalName": "string" }
Response samples
- 200
- 201
- 202
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "apiVersion": "string", - "clusterName": "string", - "groupName": "string", - "groupPrincipalName": "string", - "kind": "string", - "metadata": { - "annotations": { - "property1": "string", - "property2": "string" }, - "creationTimestamp": "2019-08-24T14:15:22Z", - "deletionGracePeriodSeconds": 0, - "deletionTimestamp": "2019-08-24T14:15:22Z", - "finalizers": [ - "string" ], - "generateName": "string", - "generation": 0, - "labels": { - "property1": "string", - "property2": "string" }, - "managedFields": [ - { - "apiVersion": "string", - "fieldsType": "string", - "fieldsV1": { }, - "manager": "string", - "operation": "string", - "subresource": "string", - "time": "2019-08-24T14:15:22Z" } ], - "name": "string", - "namespace": "string", - "ownerReferences": [ - { - "apiVersion": "string", - "blockOwnerDeletion": true, - "controller": true, - "kind": "string", - "name": "string", - "uid": "string" } ], - "resourceVersion": "string", - "selfLink": "string", - "uid": "string" }, - "roleTemplateName": "string", - "userName": "string", - "userPrincipalName": "string" }
deleteManagementCattleIoV3CollectionNamespacedClusterRoleTemplateBinding
delete collection of ClusterRoleTemplateBinding
Authorizations:
BearerToken
path Parameters
namespace required | string unique object name and auth scope, such as for teams and projects |
query Parameters
pretty | string unique If ‘true’, then the output is pretty printed. |
allowWatchBookmarks | boolean unique allowWatchBookmarks requests watch events with type “BOOKMARK”. Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server’s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. |
continue | string unique The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the “next key”. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. |
fieldSelector | string unique A selector to restrict the list of returned objects by their fields. Defaults to everything. |
labelSelector | string unique A selector to restrict the list of returned objects by their labels. Defaults to everything. |
limit | integer unique limit is a maximum number of responses to return for a list call. If more items exist, the server will set the The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. |
resourceVersion | string unique resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset |
resourceVersionMatch | string unique resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset |
sendInitialEvents | boolean unique
When
Defaults to true if |
timeoutSeconds | integer unique Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. |
watch | boolean unique Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. |
Responses
200
OK
401
Unauthorized
delete/apis/management.cattle.io/v3/namespaces/{namespace}/clusterroletemplatebindings
Response samples
- 200
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "apiVersion": "string", - "code": 0, - "details": { - "causes": [ - { - "field": "string", - "message": "string", - "reason": "string" } ], - "group": "string", - "kind": "string", - "name": "string", - "retryAfterSeconds": 0, - "uid": "string" }, - "kind": "string", - "message": "string", - "metadata": { - "continue": "string", - "remainingItemCount": 0, - "resourceVersion": "string", - "selfLink": "string" }, - "reason": "string", - "status": "string" }
readManagementCattleIoV3NamespacedClusterRoleTemplateBinding
read the specified ClusterRoleTemplateBinding
Authorizations:
BearerToken
path Parameters
name required | string unique name of the ClusterRoleTemplateBinding |
namespace required | string unique object name and auth scope, such as for teams and projects |
query Parameters
pretty | string unique If ‘true’, then the output is pretty printed. |
resourceVersion | string unique resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset |
Responses
200
OK
401
Unauthorized
get/apis/management.cattle.io/v3/namespaces/{namespace}/clusterroletemplatebindings/{name}
Response samples
- 200
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "apiVersion": "string", - "clusterName": "string", - "groupName": "string", - "groupPrincipalName": "string", - "kind": "string", - "metadata": { - "annotations": { - "property1": "string", - "property2": "string" }, - "creationTimestamp": "2019-08-24T14:15:22Z", - "deletionGracePeriodSeconds": 0, - "deletionTimestamp": "2019-08-24T14:15:22Z", - "finalizers": [ - "string" ], - "generateName": "string", - "generation": 0, - "labels": { - "property1": "string", - "property2": "string" }, - "managedFields": [ - { - "apiVersion": "string", - "fieldsType": "string", - "fieldsV1": { }, - "manager": "string", - "operation": "string", - "subresource": "string", - "time": "2019-08-24T14:15:22Z" } ], - "name": "string", - "namespace": "string", - "ownerReferences": [ - { - "apiVersion": "string", - "blockOwnerDeletion": true, - "controller": true, - "kind": "string", - "name": "string", - "uid": "string" } ], - "resourceVersion": "string", - "selfLink": "string", - "uid": "string" }, - "roleTemplateName": "string", - "userName": "string", - "userPrincipalName": "string" }
replaceManagementCattleIoV3NamespacedClusterRoleTemplateBinding
replace the specified ClusterRoleTemplateBinding
Authorizations:
BearerToken
path Parameters
name required | string unique name of the ClusterRoleTemplateBinding |
namespace required | string unique object name and auth scope, such as for teams and projects |
query Parameters
pretty | string unique If ‘true’, then the output is pretty printed. |
dryRun | string unique When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed |
fieldManager | string unique fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. |
fieldValidation | string unique fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. |
Request Body schema:
application/jsonapplication/yamlapplication/json
apiVersion | string APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources |
clusterName required | string ClusterName is the metadata.name of the cluster to which a subject is added. Must match the namespace. Immutable. |
groupName | string GroupName is the name of the group subject added to the cluster. Immutable. |
groupPrincipalName | string GroupPrincipalName is the name of the group principal subject added to the cluster. Immutable. |
kind | string Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds |
object (io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta) ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. | |
roleTemplateName required | string RoleTemplateName is the name of the role template that defines permissions to perform actions on resources in the cluster. Immutable. |
userName | string UserName is the name of the user subject added to the cluster. Immutable. |
userPrincipalName | string UserPrincipalName is the name of the user principal subject added to the cluster. Immutable. |
Responses
200
OK
201
Created
401
Unauthorized
put/apis/management.cattle.io/v3/namespaces/{namespace}/clusterroletemplatebindings/{name}
Request samples
- Payload
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "apiVersion": "string", - "clusterName": "string", - "groupName": "string", - "groupPrincipalName": "string", - "kind": "string", - "metadata": { - "annotations": { - "property1": "string", - "property2": "string" }, - "creationTimestamp": "2019-08-24T14:15:22Z", - "deletionGracePeriodSeconds": 0, - "deletionTimestamp": "2019-08-24T14:15:22Z", - "finalizers": [ - "string" ], - "generateName": "string", - "generation": 0, - "labels": { - "property1": "string", - "property2": "string" }, - "managedFields": [ - { - "apiVersion": "string", - "fieldsType": "string", - "fieldsV1": { }, - "manager": "string", - "operation": "string", - "subresource": "string", - "time": "2019-08-24T14:15:22Z" } ], - "name": "string", - "namespace": "string", - "ownerReferences": [ - { - "apiVersion": "string", - "blockOwnerDeletion": true, - "controller": true, - "kind": "string", - "name": "string", - "uid": "string" } ], - "resourceVersion": "string", - "selfLink": "string", - "uid": "string" }, - "roleTemplateName": "string", - "userName": "string", - "userPrincipalName": "string" }
Response samples
- 200
- 201
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "apiVersion": "string", - "clusterName": "string", - "groupName": "string", - "groupPrincipalName": "string", - "kind": "string", - "metadata": { - "annotations": { - "property1": "string", - "property2": "string" }, - "creationTimestamp": "2019-08-24T14:15:22Z", - "deletionGracePeriodSeconds": 0, - "deletionTimestamp": "2019-08-24T14:15:22Z", - "finalizers": [ - "string" ], - "generateName": "string", - "generation": 0, - "labels": { - "property1": "string", - "property2": "string" }, - "managedFields": [ - { - "apiVersion": "string", - "fieldsType": "string", - "fieldsV1": { }, - "manager": "string", - "operation": "string", - "subresource": "string", - "time": "2019-08-24T14:15:22Z" } ], - "name": "string", - "namespace": "string", - "ownerReferences": [ - { - "apiVersion": "string", - "blockOwnerDeletion": true, - "controller": true, - "kind": "string", - "name": "string", - "uid": "string" } ], - "resourceVersion": "string", - "selfLink": "string", - "uid": "string" }, - "roleTemplateName": "string", - "userName": "string", - "userPrincipalName": "string" }
deleteManagementCattleIoV3NamespacedClusterRoleTemplateBinding
delete a ClusterRoleTemplateBinding
Authorizations:
BearerToken
path Parameters
name required | string unique name of the ClusterRoleTemplateBinding |
namespace required | string unique object name and auth scope, such as for teams and projects |
query Parameters
pretty | string unique If ‘true’, then the output is pretty printed. |
dryRun | string unique When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed |
gracePeriodSeconds | integer unique The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. |
orphanDependents | boolean unique Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the “orphan” finalizer will be added to/removed from the object’s finalizers list. Either this field or PropagationPolicy may be set, but not both. |
propagationPolicy | string unique Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: ‘Orphan’ - orphan the dependents; ‘Background’ - allow the garbage collector to delete the dependents in the background; ‘Foreground’ - a cascading policy that deletes all dependents in the foreground. |
Request Body schema:
application/jsonapplication/yamlapplication/json
apiVersion | string APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources |
dryRun | Array of strings When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed |
gracePeriodSeconds | integer <int64> The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. |
kind | string Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds |
orphanDependents | boolean Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the “orphan” finalizer will be added to/removed from the object’s finalizers list. Either this field or PropagationPolicy may be set, but not both. |
object (io.k8s.apimachinery.pkg.apis.meta.v1.Preconditions) Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out. | |
propagationPolicy | string Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: ‘Orphan’ - orphan the dependents; ‘Background’ - allow the garbage collector to delete the dependents in the background; ‘Foreground’ - a cascading policy that deletes all dependents in the foreground. |
Responses
200
OK
202
Accepted
401
Unauthorized
delete/apis/management.cattle.io/v3/namespaces/{namespace}/clusterroletemplatebindings/{name}
Request samples
- Payload
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "apiVersion": "string", - "dryRun": [ - "string" ], - "gracePeriodSeconds": 0, - "kind": "string", - "orphanDependents": true, - "preconditions": { - "resourceVersion": "string", - "uid": "string" }, - "propagationPolicy": "string" }
Response samples
- 200
- 202
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "apiVersion": "string", - "code": 0, - "details": { - "causes": [ - { - "field": "string", - "message": "string", - "reason": "string" } ], - "group": "string", - "kind": "string", - "name": "string", - "retryAfterSeconds": 0, - "uid": "string" }, - "kind": "string", - "message": "string", - "metadata": { - "continue": "string", - "remainingItemCount": 0, - "resourceVersion": "string", - "selfLink": "string" }, - "reason": "string", - "status": "string" }
patchManagementCattleIoV3NamespacedClusterRoleTemplateBinding
partially update the specified ClusterRoleTemplateBinding
Authorizations:
BearerToken
path Parameters
name required | string unique name of the ClusterRoleTemplateBinding |
namespace required | string unique object name and auth scope, such as for teams and projects |
query Parameters
pretty | string unique If ‘true’, then the output is pretty printed. |
dryRun | string unique When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed |
fieldManager | string unique fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). |
fieldValidation | string unique fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. |
force | boolean unique Force is going to “force” Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. |
Request Body schema:
application/json-patch+jsonapplication/merge-patch+jsonapplication/apply-patch+yamlapplication/json-patch+json
object (io.k8s.apimachinery.pkg.apis.meta.v1.Patch)
Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.
Responses
200
OK
401
Unauthorized
patch/apis/management.cattle.io/v3/namespaces/{namespace}/clusterroletemplatebindings/{name}
Request samples
- Payload
Content type
application/json-patch+jsonapplication/merge-patch+jsonapplication/apply-patch+yamlapplication/json-patch+json
Copy
{ }
Response samples
- 200
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "apiVersion": "string", - "clusterName": "string", - "groupName": "string", - "groupPrincipalName": "string", - "kind": "string", - "metadata": { - "annotations": { - "property1": "string", - "property2": "string" }, - "creationTimestamp": "2019-08-24T14:15:22Z", - "deletionGracePeriodSeconds": 0, - "deletionTimestamp": "2019-08-24T14:15:22Z", - "finalizers": [ - "string" ], - "generateName": "string", - "generation": 0, - "labels": { - "property1": "string", - "property2": "string" }, - "managedFields": [ - { - "apiVersion": "string", - "fieldsType": "string", - "fieldsV1": { }, - "manager": "string", - "operation": "string", - "subresource": "string", - "time": "2019-08-24T14:15:22Z" } ], - "name": "string", - "namespace": "string", - "ownerReferences": [ - { - "apiVersion": "string", - "blockOwnerDeletion": true, - "controller": true, - "kind": "string", - "name": "string", - "uid": "string" } ], - "resourceVersion": "string", - "selfLink": "string", - "uid": "string" }, - "roleTemplateName": "string", - "userName": "string", - "userPrincipalName": "string" }
listManagementCattleIoV3NamespacedProjectRoleTemplateBinding
list objects of kind ProjectRoleTemplateBinding
Authorizations:
BearerToken
path Parameters
namespace required | string unique object name and auth scope, such as for teams and projects |
query Parameters
pretty | string unique If ‘true’, then the output is pretty printed. |
allowWatchBookmarks | boolean unique allowWatchBookmarks requests watch events with type “BOOKMARK”. Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server’s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. |
continue | string unique The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the “next key”. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. |
fieldSelector | string unique A selector to restrict the list of returned objects by their fields. Defaults to everything. |
labelSelector | string unique A selector to restrict the list of returned objects by their labels. Defaults to everything. |
limit | integer unique limit is a maximum number of responses to return for a list call. If more items exist, the server will set the The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. |
resourceVersion | string unique resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset |
resourceVersionMatch | string unique resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset |
sendInitialEvents | boolean unique
When
Defaults to true if |
timeoutSeconds | integer unique Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. |
watch | boolean unique Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. |
Responses
200
OK
401
Unauthorized
get/apis/management.cattle.io/v3/namespaces/{namespace}/projectroletemplatebindings
Response samples
- 200
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "apiVersion": "string", - "items": [ - { - "apiVersion": "string", - "groupName": "string", - "groupPrincipalName": "string", - "kind": "string", - "metadata": { - "annotations": { - "property1": "string", - "property2": "string" }, - "creationTimestamp": "2019-08-24T14:15:22Z", - "deletionGracePeriodSeconds": 0, - "deletionTimestamp": "2019-08-24T14:15:22Z", - "finalizers": [ - "string" ], - "generateName": "string", - "generation": 0, - "labels": { - "property1": "string", - "property2": "string" }, - "managedFields": [ - { - "apiVersion": "string", - "fieldsType": "string", - "fieldsV1": { }, - "manager": "string", - "operation": "string", - "subresource": "string", - "time": "2019-08-24T14:15:22Z" } ], - "name": "string", - "namespace": "string", - "ownerReferences": [ - { - "apiVersion": "string", - "blockOwnerDeletion": true, - "controller": true, - "kind": "string", - "name": "string", - "uid": "string" } ], - "resourceVersion": "string", - "selfLink": "string", - "uid": "string" }, - "projectName": "string", - "roleTemplateName": "string", - "serviceAccount": "string", - "userName": "string", - "userPrincipalName": "string" } ], - "kind": "string", - "metadata": { - "continue": "string", - "remainingItemCount": 0, - "resourceVersion": "string", - "selfLink": "string" } }
createManagementCattleIoV3NamespacedProjectRoleTemplateBinding
create a ProjectRoleTemplateBinding
Authorizations:
BearerToken
path Parameters
namespace required | string unique object name and auth scope, such as for teams and projects |
query Parameters
pretty | string unique If ‘true’, then the output is pretty printed. |
dryRun | string unique When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed |
fieldManager | string unique fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. |
fieldValidation | string unique fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. |
Request Body schema:
application/jsonapplication/yamlapplication/json
apiVersion | string APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources |
groupName | string GroupName is the name of the group subject added to the project. Immutable. |
groupPrincipalName | string GroupPrincipalName is the name of the group principal subject added to the project. Immutable. |
kind | string Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds |
object (io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta) ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. | |
projectName required | string ProjectName is the name of the project to which a subject is added. Immutable. |
roleTemplateName required | string RoleTemplateName is the name of the role template that defines permissions to perform actions on resources in the project. Immutable. |
serviceAccount | string ServiceAccount is the name of the service account bound as a subject. Immutable. Deprecated. |
userName | string UserName is the name of the user subject added to the project. Immutable. |
userPrincipalName | string UserPrincipalName is the name of the user principal subject added to the project. Immutable. |
Responses
200
OK
201
Created
202
Accepted
401
Unauthorized
post/apis/management.cattle.io/v3/namespaces/{namespace}/projectroletemplatebindings
Request samples
- Payload
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "apiVersion": "string", - "groupName": "string", - "groupPrincipalName": "string", - "kind": "string", - "metadata": { - "annotations": { - "property1": "string", - "property2": "string" }, - "creationTimestamp": "2019-08-24T14:15:22Z", - "deletionGracePeriodSeconds": 0, - "deletionTimestamp": "2019-08-24T14:15:22Z", - "finalizers": [ - "string" ], - "generateName": "string", - "generation": 0, - "labels": { - "property1": "string", - "property2": "string" }, - "managedFields": [ - { - "apiVersion": "string", - "fieldsType": "string", - "fieldsV1": { }, - "manager": "string", - "operation": "string", - "subresource": "string", - "time": "2019-08-24T14:15:22Z" } ], - "name": "string", - "namespace": "string", - "ownerReferences": [ - { - "apiVersion": "string", - "blockOwnerDeletion": true, - "controller": true, - "kind": "string", - "name": "string", - "uid": "string" } ], - "resourceVersion": "string", - "selfLink": "string", - "uid": "string" }, - "projectName": "string", - "roleTemplateName": "string", - "serviceAccount": "string", - "userName": "string", - "userPrincipalName": "string" }
Response samples
- 200
- 201
- 202
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "apiVersion": "string", - "groupName": "string", - "groupPrincipalName": "string", - "kind": "string", - "metadata": { - "annotations": { - "property1": "string", - "property2": "string" }, - "creationTimestamp": "2019-08-24T14:15:22Z", - "deletionGracePeriodSeconds": 0, - "deletionTimestamp": "2019-08-24T14:15:22Z", - "finalizers": [ - "string" ], - "generateName": "string", - "generation": 0, - "labels": { - "property1": "string", - "property2": "string" }, - "managedFields": [ - { - "apiVersion": "string", - "fieldsType": "string", - "fieldsV1": { }, - "manager": "string", - "operation": "string", - "subresource": "string", - "time": "2019-08-24T14:15:22Z" } ], - "name": "string", - "namespace": "string", - "ownerReferences": [ - { - "apiVersion": "string", - "blockOwnerDeletion": true, - "controller": true, - "kind": "string", - "name": "string", - "uid": "string" } ], - "resourceVersion": "string", - "selfLink": "string", - "uid": "string" }, - "projectName": "string", - "roleTemplateName": "string", - "serviceAccount": "string", - "userName": "string", - "userPrincipalName": "string" }
deleteManagementCattleIoV3CollectionNamespacedProjectRoleTemplateBinding
delete collection of ProjectRoleTemplateBinding
Authorizations:
BearerToken
path Parameters
namespace required | string unique object name and auth scope, such as for teams and projects |
query Parameters
pretty | string unique If ‘true’, then the output is pretty printed. |
allowWatchBookmarks | boolean unique allowWatchBookmarks requests watch events with type “BOOKMARK”. Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server’s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. |
continue | string unique The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the “next key”. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. |
fieldSelector | string unique A selector to restrict the list of returned objects by their fields. Defaults to everything. |
labelSelector | string unique A selector to restrict the list of returned objects by their labels. Defaults to everything. |
limit | integer unique limit is a maximum number of responses to return for a list call. If more items exist, the server will set the The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. |
resourceVersion | string unique resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset |
resourceVersionMatch | string unique resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset |
sendInitialEvents | boolean unique
When
Defaults to true if |
timeoutSeconds | integer unique Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. |
watch | boolean unique Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. |
Responses
200
OK
401
Unauthorized
delete/apis/management.cattle.io/v3/namespaces/{namespace}/projectroletemplatebindings
Response samples
- 200
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "apiVersion": "string", - "code": 0, - "details": { - "causes": [ - { - "field": "string", - "message": "string", - "reason": "string" } ], - "group": "string", - "kind": "string", - "name": "string", - "retryAfterSeconds": 0, - "uid": "string" }, - "kind": "string", - "message": "string", - "metadata": { - "continue": "string", - "remainingItemCount": 0, - "resourceVersion": "string", - "selfLink": "string" }, - "reason": "string", - "status": "string" }
readManagementCattleIoV3NamespacedProjectRoleTemplateBinding
read the specified ProjectRoleTemplateBinding
Authorizations:
BearerToken
path Parameters
name required | string unique name of the ProjectRoleTemplateBinding |
namespace required | string unique object name and auth scope, such as for teams and projects |
query Parameters
pretty | string unique If ‘true’, then the output is pretty printed. |
resourceVersion | string unique resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset |
Responses
200
OK
401
Unauthorized
get/apis/management.cattle.io/v3/namespaces/{namespace}/projectroletemplatebindings/{name}
Response samples
- 200
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "apiVersion": "string", - "groupName": "string", - "groupPrincipalName": "string", - "kind": "string", - "metadata": { - "annotations": { - "property1": "string", - "property2": "string" }, - "creationTimestamp": "2019-08-24T14:15:22Z", - "deletionGracePeriodSeconds": 0, - "deletionTimestamp": "2019-08-24T14:15:22Z", - "finalizers": [ - "string" ], - "generateName": "string", - "generation": 0, - "labels": { - "property1": "string", - "property2": "string" }, - "managedFields": [ - { - "apiVersion": "string", - "fieldsType": "string", - "fieldsV1": { }, - "manager": "string", - "operation": "string", - "subresource": "string", - "time": "2019-08-24T14:15:22Z" } ], - "name": "string", - "namespace": "string", - "ownerReferences": [ - { - "apiVersion": "string", - "blockOwnerDeletion": true, - "controller": true, - "kind": "string", - "name": "string", - "uid": "string" } ], - "resourceVersion": "string", - "selfLink": "string", - "uid": "string" }, - "projectName": "string", - "roleTemplateName": "string", - "serviceAccount": "string", - "userName": "string", - "userPrincipalName": "string" }
replaceManagementCattleIoV3NamespacedProjectRoleTemplateBinding
replace the specified ProjectRoleTemplateBinding
Authorizations:
BearerToken
path Parameters
name required | string unique name of the ProjectRoleTemplateBinding |
namespace required | string unique object name and auth scope, such as for teams and projects |
query Parameters
pretty | string unique If ‘true’, then the output is pretty printed. |
dryRun | string unique When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed |
fieldManager | string unique fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. |
fieldValidation | string unique fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. |
Request Body schema:
application/jsonapplication/yamlapplication/json
apiVersion | string APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources |
groupName | string GroupName is the name of the group subject added to the project. Immutable. |
groupPrincipalName | string GroupPrincipalName is the name of the group principal subject added to the project. Immutable. |
kind | string Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds |
object (io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta) ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. | |
projectName required | string ProjectName is the name of the project to which a subject is added. Immutable. |
roleTemplateName required | string RoleTemplateName is the name of the role template that defines permissions to perform actions on resources in the project. Immutable. |
serviceAccount | string ServiceAccount is the name of the service account bound as a subject. Immutable. Deprecated. |
userName | string UserName is the name of the user subject added to the project. Immutable. |
userPrincipalName | string UserPrincipalName is the name of the user principal subject added to the project. Immutable. |
Responses
200
OK
201
Created
401
Unauthorized
put/apis/management.cattle.io/v3/namespaces/{namespace}/projectroletemplatebindings/{name}
Request samples
- Payload
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "apiVersion": "string", - "groupName": "string", - "groupPrincipalName": "string", - "kind": "string", - "metadata": { - "annotations": { - "property1": "string", - "property2": "string" }, - "creationTimestamp": "2019-08-24T14:15:22Z", - "deletionGracePeriodSeconds": 0, - "deletionTimestamp": "2019-08-24T14:15:22Z", - "finalizers": [ - "string" ], - "generateName": "string", - "generation": 0, - "labels": { - "property1": "string", - "property2": "string" }, - "managedFields": [ - { - "apiVersion": "string", - "fieldsType": "string", - "fieldsV1": { }, - "manager": "string", - "operation": "string", - "subresource": "string", - "time": "2019-08-24T14:15:22Z" } ], - "name": "string", - "namespace": "string", - "ownerReferences": [ - { - "apiVersion": "string", - "blockOwnerDeletion": true, - "controller": true, - "kind": "string", - "name": "string", - "uid": "string" } ], - "resourceVersion": "string", - "selfLink": "string", - "uid": "string" }, - "projectName": "string", - "roleTemplateName": "string", - "serviceAccount": "string", - "userName": "string", - "userPrincipalName": "string" }
Response samples
- 200
- 201
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "apiVersion": "string", - "groupName": "string", - "groupPrincipalName": "string", - "kind": "string", - "metadata": { - "annotations": { - "property1": "string", - "property2": "string" }, - "creationTimestamp": "2019-08-24T14:15:22Z", - "deletionGracePeriodSeconds": 0, - "deletionTimestamp": "2019-08-24T14:15:22Z", - "finalizers": [ - "string" ], - "generateName": "string", - "generation": 0, - "labels": { - "property1": "string", - "property2": "string" }, - "managedFields": [ - { - "apiVersion": "string", - "fieldsType": "string", - "fieldsV1": { }, - "manager": "string", - "operation": "string", - "subresource": "string", - "time": "2019-08-24T14:15:22Z" } ], - "name": "string", - "namespace": "string", - "ownerReferences": [ - { - "apiVersion": "string", - "blockOwnerDeletion": true, - "controller": true, - "kind": "string", - "name": "string", - "uid": "string" } ], - "resourceVersion": "string", - "selfLink": "string", - "uid": "string" }, - "projectName": "string", - "roleTemplateName": "string", - "serviceAccount": "string", - "userName": "string", - "userPrincipalName": "string" }
deleteManagementCattleIoV3NamespacedProjectRoleTemplateBinding
delete a ProjectRoleTemplateBinding
Authorizations:
BearerToken
path Parameters
name required | string unique name of the ProjectRoleTemplateBinding |
namespace required | string unique object name and auth scope, such as for teams and projects |
query Parameters
pretty | string unique If ‘true’, then the output is pretty printed. |
dryRun | string unique When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed |
gracePeriodSeconds | integer unique The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. |
orphanDependents | boolean unique Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the “orphan” finalizer will be added to/removed from the object’s finalizers list. Either this field or PropagationPolicy may be set, but not both. |
propagationPolicy | string unique Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: ‘Orphan’ - orphan the dependents; ‘Background’ - allow the garbage collector to delete the dependents in the background; ‘Foreground’ - a cascading policy that deletes all dependents in the foreground. |
Request Body schema:
application/jsonapplication/yamlapplication/json
apiVersion | string APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources |
dryRun | Array of strings When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed |
gracePeriodSeconds | integer <int64> The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. |
kind | string Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds |
orphanDependents | boolean Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the “orphan” finalizer will be added to/removed from the object’s finalizers list. Either this field or PropagationPolicy may be set, but not both. |
object (io.k8s.apimachinery.pkg.apis.meta.v1.Preconditions) Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out. | |
propagationPolicy | string Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: ‘Orphan’ - orphan the dependents; ‘Background’ - allow the garbage collector to delete the dependents in the background; ‘Foreground’ - a cascading policy that deletes all dependents in the foreground. |
Responses
200
OK
202
Accepted
401
Unauthorized
delete/apis/management.cattle.io/v3/namespaces/{namespace}/projectroletemplatebindings/{name}
Request samples
- Payload
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "apiVersion": "string", - "dryRun": [ - "string" ], - "gracePeriodSeconds": 0, - "kind": "string", - "orphanDependents": true, - "preconditions": { - "resourceVersion": "string", - "uid": "string" }, - "propagationPolicy": "string" }
Response samples
- 200
- 202
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "apiVersion": "string", - "code": 0, - "details": { - "causes": [ - { - "field": "string", - "message": "string", - "reason": "string" } ], - "group": "string", - "kind": "string", - "name": "string", - "retryAfterSeconds": 0, - "uid": "string" }, - "kind": "string", - "message": "string", - "metadata": { - "continue": "string", - "remainingItemCount": 0, - "resourceVersion": "string", - "selfLink": "string" }, - "reason": "string", - "status": "string" }
patchManagementCattleIoV3NamespacedProjectRoleTemplateBinding
partially update the specified ProjectRoleTemplateBinding
Authorizations:
BearerToken
path Parameters
name required | string unique name of the ProjectRoleTemplateBinding |
namespace required | string unique object name and auth scope, such as for teams and projects |
query Parameters
pretty | string unique If ‘true’, then the output is pretty printed. |
dryRun | string unique When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed |
fieldManager | string unique fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). |
fieldValidation | string unique fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. |
force | boolean unique Force is going to “force” Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. |
Request Body schema:
application/json-patch+jsonapplication/merge-patch+jsonapplication/apply-patch+yamlapplication/json-patch+json
object (io.k8s.apimachinery.pkg.apis.meta.v1.Patch)
Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.
Responses
200
OK
401
Unauthorized
patch/apis/management.cattle.io/v3/namespaces/{namespace}/projectroletemplatebindings/{name}
Request samples
- Payload
Content type
application/json-patch+jsonapplication/merge-patch+jsonapplication/apply-patch+yamlapplication/json-patch+json
Copy
{ }
Response samples
- 200
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "apiVersion": "string", - "groupName": "string", - "groupPrincipalName": "string", - "kind": "string", - "metadata": { - "annotations": { - "property1": "string", - "property2": "string" }, - "creationTimestamp": "2019-08-24T14:15:22Z", - "deletionGracePeriodSeconds": 0, - "deletionTimestamp": "2019-08-24T14:15:22Z", - "finalizers": [ - "string" ], - "generateName": "string", - "generation": 0, - "labels": { - "property1": "string", - "property2": "string" }, - "managedFields": [ - { - "apiVersion": "string", - "fieldsType": "string", - "fieldsV1": { }, - "manager": "string", - "operation": "string", - "subresource": "string", - "time": "2019-08-24T14:15:22Z" } ], - "name": "string", - "namespace": "string", - "ownerReferences": [ - { - "apiVersion": "string", - "blockOwnerDeletion": true, - "controller": true, - "kind": "string", - "name": "string", - "uid": "string" } ], - "resourceVersion": "string", - "selfLink": "string", - "uid": "string" }, - "projectName": "string", - "roleTemplateName": "string", - "serviceAccount": "string", - "userName": "string", - "userPrincipalName": "string" }
listManagementCattleIoV3NamespacedProject
list objects of kind Project
Authorizations:
BearerToken
path Parameters
namespace required | string unique object name and auth scope, such as for teams and projects |
query Parameters
pretty | string unique If ‘true’, then the output is pretty printed. |
allowWatchBookmarks | boolean unique allowWatchBookmarks requests watch events with type “BOOKMARK”. Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server’s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. |
continue | string unique The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the “next key”. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. |
fieldSelector | string unique A selector to restrict the list of returned objects by their fields. Defaults to everything. |
labelSelector | string unique A selector to restrict the list of returned objects by their labels. Defaults to everything. |
limit | integer unique limit is a maximum number of responses to return for a list call. If more items exist, the server will set the The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. |
resourceVersion | string unique resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset |
resourceVersionMatch | string unique resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset |
sendInitialEvents | boolean unique
When
Defaults to true if |
timeoutSeconds | integer unique Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. |
watch | boolean unique Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. |
Responses
200
OK
401
Unauthorized
get/apis/management.cattle.io/v3/namespaces/{namespace}/projects
https://ranchermanager.docs.rancher.com/apis/management.cattle.io/v3/namespaces/{namespace}/projects
Response samples
- 200
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "apiVersion": "string", - "items": [ - { - "apiVersion": "string", - "kind": "string", - "metadata": { - "annotations": { - "property1": "string", - "property2": "string" }, - "creationTimestamp": "2019-08-24T14:15:22Z", - "deletionGracePeriodSeconds": 0, - "deletionTimestamp": "2019-08-24T14:15:22Z", - "finalizers": [ - "string" ], - "generateName": "string", - "generation": 0, - "labels": { - "property1": "string", - "property2": "string" }, - "managedFields": [ - { - "apiVersion": "string", - "fieldsType": "string", - "fieldsV1": { }, - "manager": "string", - "operation": "string", - "subresource": "string", - "time": "2019-08-24T14:15:22Z" } ], - "name": "string", - "namespace": "string", - "ownerReferences": [ - { - "apiVersion": "string", - "blockOwnerDeletion": true, - "controller": true, - "kind": "string", - "name": "string", - "uid": "string" } ], - "resourceVersion": "string", - "selfLink": "string", - "uid": "string" }, - "spec": { - "clusterName": "string", - "containerDefaultResourceLimit": { - "limitsCpu": "string", - "limitsMemory": "string", - "requestsCpu": "string", - "requestsMemory": "string" }, - "description": "string", - "displayName": "string", - "enableProjectMonitoring": true, - "namespaceDefaultResourceQuota": { - "limit": { - "configMaps": "string", - "limitsCpu": "string", - "limitsMemory": "string", - "persistentVolumeClaims": "string", - "pods": "string", - "replicationControllers": "string", - "requestsCpu": "string", - "requestsMemory": "string", - "requestsStorage": "string", - "secrets": "string", - "services": "string", - "servicesLoadBalancers": "string", - "servicesNodePorts": "string" } }, - "resourceQuota": { - "limit": { - "configMaps": "string", - "limitsCpu": "string", - "limitsMemory": "string", - "persistentVolumeClaims": "string", - "pods": "string", - "replicationControllers": "string", - "requestsCpu": "string", - "requestsMemory": "string", - "requestsStorage": "string", - "secrets": "string", - "services": "string", - "servicesLoadBalancers": "string", - "servicesNodePorts": "string" }, - "usedLimit": { - "configMaps": "string", - "limitsCpu": "string", - "limitsMemory": "string", - "persistentVolumeClaims": "string", - "pods": "string", - "replicationControllers": "string", - "requestsCpu": "string", - "requestsMemory": "string", - "requestsStorage": "string", - "secrets": "string", - "services": "string", - "servicesLoadBalancers": "string", - "servicesNodePorts": "string" } } }, - "status": { - "conditions": [ - { - "lastTransitionTime": "string", - "lastUpdateTime": "string", - "message": "string", - "reason": "string", - "status": "string", - "type": "string" } ], - "monitoringStatus": { - "conditions": [ - { - "lastTransitionTime": "string", - "lastUpdateTime": "string", - "message": "string", - "reason": "string", - "status": "string", - "type": "string" } ], - "grafanaEndpoint": "string" }, - "podSecurityPolicyTemplateId": "string" } } ], - "kind": "string", - "metadata": { - "continue": "string", - "remainingItemCount": 0, - "resourceVersion": "string", - "selfLink": "string" } }
createManagementCattleIoV3NamespacedProject
create a Project
Authorizations:
BearerToken
path Parameters
namespace required | string unique object name and auth scope, such as for teams and projects |
query Parameters
pretty | string unique If ‘true’, then the output is pretty printed. |
dryRun | string unique When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed |
fieldManager | string unique fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. |
fieldValidation | string unique fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. |
Request Body schema:
application/jsonapplication/yamlapplication/json
apiVersion | string APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources |
kind | string Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds |
object (io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta) ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. | |
object Spec is the specification of the desired configuration for the project. | |
object Status is the most recently observed status of the project. |
Responses
200
OK
201
Created
202
Accepted
401
Unauthorized
post/apis/management.cattle.io/v3/namespaces/{namespace}/projects
https://ranchermanager.docs.rancher.com/apis/management.cattle.io/v3/namespaces/{namespace}/projects
Request samples
- Payload
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "apiVersion": "string", - "kind": "string", - "metadata": { - "annotations": { - "property1": "string", - "property2": "string" }, - "creationTimestamp": "2019-08-24T14:15:22Z", - "deletionGracePeriodSeconds": 0, - "deletionTimestamp": "2019-08-24T14:15:22Z", - "finalizers": [ - "string" ], - "generateName": "string", - "generation": 0, - "labels": { - "property1": "string", - "property2": "string" }, - "managedFields": [ - { - "apiVersion": "string", - "fieldsType": "string", - "fieldsV1": { }, - "manager": "string", - "operation": "string", - "subresource": "string", - "time": "2019-08-24T14:15:22Z" } ], - "name": "string", - "namespace": "string", - "ownerReferences": [ - { - "apiVersion": "string", - "blockOwnerDeletion": true, - "controller": true, - "kind": "string", - "name": "string", - "uid": "string" } ], - "resourceVersion": "string", - "selfLink": "string", - "uid": "string" }, - "spec": { - "clusterName": "string", - "containerDefaultResourceLimit": { - "limitsCpu": "string", - "limitsMemory": "string", - "requestsCpu": "string", - "requestsMemory": "string" }, - "description": "string", - "displayName": "string", - "enableProjectMonitoring": true, - "namespaceDefaultResourceQuota": { - "limit": { - "configMaps": "string", - "limitsCpu": "string", - "limitsMemory": "string", - "persistentVolumeClaims": "string", - "pods": "string", - "replicationControllers": "string", - "requestsCpu": "string", - "requestsMemory": "string", - "requestsStorage": "string", - "secrets": "string", - "services": "string", - "servicesLoadBalancers": "string", - "servicesNodePorts": "string" } }, - "resourceQuota": { - "limit": { - "configMaps": "string", - "limitsCpu": "string", - "limitsMemory": "string", - "persistentVolumeClaims": "string", - "pods": "string", - "replicationControllers": "string", - "requestsCpu": "string", - "requestsMemory": "string", - "requestsStorage": "string", - "secrets": "string", - "services": "string", - "servicesLoadBalancers": "string", - "servicesNodePorts": "string" }, - "usedLimit": { - "configMaps": "string", - "limitsCpu": "string", - "limitsMemory": "string", - "persistentVolumeClaims": "string", - "pods": "string", - "replicationControllers": "string", - "requestsCpu": "string", - "requestsMemory": "string", - "requestsStorage": "string", - "secrets": "string", - "services": "string", - "servicesLoadBalancers": "string", - "servicesNodePorts": "string" } } }, - "status": { - "conditions": [ - { - "lastTransitionTime": "string", - "lastUpdateTime": "string", - "message": "string", - "reason": "string", - "status": "string", - "type": "string" } ], - "monitoringStatus": { - "conditions": [ - { - "lastTransitionTime": "string", - "lastUpdateTime": "string", - "message": "string", - "reason": "string", - "status": "string", - "type": "string" } ], - "grafanaEndpoint": "string" }, - "podSecurityPolicyTemplateId": "string" } }
Response samples
- 200
- 201
- 202
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "apiVersion": "string", - "kind": "string", - "metadata": { - "annotations": { - "property1": "string", - "property2": "string" }, - "creationTimestamp": "2019-08-24T14:15:22Z", - "deletionGracePeriodSeconds": 0, - "deletionTimestamp": "2019-08-24T14:15:22Z", - "finalizers": [ - "string" ], - "generateName": "string", - "generation": 0, - "labels": { - "property1": "string", - "property2": "string" }, - "managedFields": [ - { - "apiVersion": "string", - "fieldsType": "string", - "fieldsV1": { }, - "manager": "string", - "operation": "string", - "subresource": "string", - "time": "2019-08-24T14:15:22Z" } ], - "name": "string", - "namespace": "string", - "ownerReferences": [ - { - "apiVersion": "string", - "blockOwnerDeletion": true, - "controller": true, - "kind": "string", - "name": "string", - "uid": "string" } ], - "resourceVersion": "string", - "selfLink": "string", - "uid": "string" }, - "spec": { - "clusterName": "string", - "containerDefaultResourceLimit": { - "limitsCpu": "string", - "limitsMemory": "string", - "requestsCpu": "string", - "requestsMemory": "string" }, - "description": "string", - "displayName": "string", - "enableProjectMonitoring": true, - "namespaceDefaultResourceQuota": { - "limit": { - "configMaps": "string", - "limitsCpu": "string", - "limitsMemory": "string", - "persistentVolumeClaims": "string", - "pods": "string", - "replicationControllers": "string", - "requestsCpu": "string", - "requestsMemory": "string", - "requestsStorage": "string", - "secrets": "string", - "services": "string", - "servicesLoadBalancers": "string", - "servicesNodePorts": "string" } }, - "resourceQuota": { - "limit": { - "configMaps": "string", - "limitsCpu": "string", - "limitsMemory": "string", - "persistentVolumeClaims": "string", - "pods": "string", - "replicationControllers": "string", - "requestsCpu": "string", - "requestsMemory": "string", - "requestsStorage": "string", - "secrets": "string", - "services": "string", - "servicesLoadBalancers": "string", - "servicesNodePorts": "string" }, - "usedLimit": { - "configMaps": "string", - "limitsCpu": "string", - "limitsMemory": "string", - "persistentVolumeClaims": "string", - "pods": "string", - "replicationControllers": "string", - "requestsCpu": "string", - "requestsMemory": "string", - "requestsStorage": "string", - "secrets": "string", - "services": "string", - "servicesLoadBalancers": "string", - "servicesNodePorts": "string" } } }, - "status": { - "conditions": [ - { - "lastTransitionTime": "string", - "lastUpdateTime": "string", - "message": "string", - "reason": "string", - "status": "string", - "type": "string" } ], - "monitoringStatus": { - "conditions": [ - { - "lastTransitionTime": "string", - "lastUpdateTime": "string", - "message": "string", - "reason": "string", - "status": "string", - "type": "string" } ], - "grafanaEndpoint": "string" }, - "podSecurityPolicyTemplateId": "string" } }
deleteManagementCattleIoV3CollectionNamespacedProject
delete collection of Project
Authorizations:
BearerToken
path Parameters
namespace required | string unique object name and auth scope, such as for teams and projects |
query Parameters
pretty | string unique If ‘true’, then the output is pretty printed. |
allowWatchBookmarks | boolean unique allowWatchBookmarks requests watch events with type “BOOKMARK”. Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server’s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. |
continue | string unique The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the “next key”. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. |
fieldSelector | string unique A selector to restrict the list of returned objects by their fields. Defaults to everything. |
labelSelector | string unique A selector to restrict the list of returned objects by their labels. Defaults to everything. |
limit | integer unique limit is a maximum number of responses to return for a list call. If more items exist, the server will set the The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. |
resourceVersion | string unique resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset |
resourceVersionMatch | string unique resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset |
sendInitialEvents | boolean unique
When
Defaults to true if |
timeoutSeconds | integer unique Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. |
watch | boolean unique Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. |
Responses
200
OK
401
Unauthorized
delete/apis/management.cattle.io/v3/namespaces/{namespace}/projects
https://ranchermanager.docs.rancher.com/apis/management.cattle.io/v3/namespaces/{namespace}/projects
Response samples
- 200
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "apiVersion": "string", - "code": 0, - "details": { - "causes": [ - { - "field": "string", - "message": "string", - "reason": "string" } ], - "group": "string", - "kind": "string", - "name": "string", - "retryAfterSeconds": 0, - "uid": "string" }, - "kind": "string", - "message": "string", - "metadata": { - "continue": "string", - "remainingItemCount": 0, - "resourceVersion": "string", - "selfLink": "string" }, - "reason": "string", - "status": "string" }
readManagementCattleIoV3NamespacedProject
read the specified Project
Authorizations:
BearerToken
path Parameters
name required | string unique name of the Project |
namespace required | string unique object name and auth scope, such as for teams and projects |
query Parameters
pretty | string unique If ‘true’, then the output is pretty printed. |
resourceVersion | string unique resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset |
Responses
200
OK
401
Unauthorized
get/apis/management.cattle.io/v3/namespaces/{namespace}/projects/{name}
Response samples
- 200
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "apiVersion": "string", - "kind": "string", - "metadata": { - "annotations": { - "property1": "string", - "property2": "string" }, - "creationTimestamp": "2019-08-24T14:15:22Z", - "deletionGracePeriodSeconds": 0, - "deletionTimestamp": "2019-08-24T14:15:22Z", - "finalizers": [ - "string" ], - "generateName": "string", - "generation": 0, - "labels": { - "property1": "string", - "property2": "string" }, - "managedFields": [ - { - "apiVersion": "string", - "fieldsType": "string", - "fieldsV1": { }, - "manager": "string", - "operation": "string", - "subresource": "string", - "time": "2019-08-24T14:15:22Z" } ], - "name": "string", - "namespace": "string", - "ownerReferences": [ - { - "apiVersion": "string", - "blockOwnerDeletion": true, - "controller": true, - "kind": "string", - "name": "string", - "uid": "string" } ], - "resourceVersion": "string", - "selfLink": "string", - "uid": "string" }, - "spec": { - "clusterName": "string", - "containerDefaultResourceLimit": { - "limitsCpu": "string", - "limitsMemory": "string", - "requestsCpu": "string", - "requestsMemory": "string" }, - "description": "string", - "displayName": "string", - "enableProjectMonitoring": true, - "namespaceDefaultResourceQuota": { - "limit": { - "configMaps": "string", - "limitsCpu": "string", - "limitsMemory": "string", - "persistentVolumeClaims": "string", - "pods": "string", - "replicationControllers": "string", - "requestsCpu": "string", - "requestsMemory": "string", - "requestsStorage": "string", - "secrets": "string", - "services": "string", - "servicesLoadBalancers": "string", - "servicesNodePorts": "string" } }, - "resourceQuota": { - "limit": { - "configMaps": "string", - "limitsCpu": "string", - "limitsMemory": "string", - "persistentVolumeClaims": "string", - "pods": "string", - "replicationControllers": "string", - "requestsCpu": "string", - "requestsMemory": "string", - "requestsStorage": "string", - "secrets": "string", - "services": "string", - "servicesLoadBalancers": "string", - "servicesNodePorts": "string" }, - "usedLimit": { - "configMaps": "string", - "limitsCpu": "string", - "limitsMemory": "string", - "persistentVolumeClaims": "string", - "pods": "string", - "replicationControllers": "string", - "requestsCpu": "string", - "requestsMemory": "string", - "requestsStorage": "string", - "secrets": "string", - "services": "string", - "servicesLoadBalancers": "string", - "servicesNodePorts": "string" } } }, - "status": { - "conditions": [ - { - "lastTransitionTime": "string", - "lastUpdateTime": "string", - "message": "string", - "reason": "string", - "status": "string", - "type": "string" } ], - "monitoringStatus": { - "conditions": [ - { - "lastTransitionTime": "string", - "lastUpdateTime": "string", - "message": "string", - "reason": "string", - "status": "string", - "type": "string" } ], - "grafanaEndpoint": "string" }, - "podSecurityPolicyTemplateId": "string" } }
replaceManagementCattleIoV3NamespacedProject
replace the specified Project
Authorizations:
BearerToken
path Parameters
name required | string unique name of the Project |
namespace required | string unique object name and auth scope, such as for teams and projects |
query Parameters
pretty | string unique If ‘true’, then the output is pretty printed. |
dryRun | string unique When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed |
fieldManager | string unique fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. |
fieldValidation | string unique fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. |
Request Body schema:
application/jsonapplication/yamlapplication/json
apiVersion | string APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources |
kind | string Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds |
object (io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta) ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. | |
object Spec is the specification of the desired configuration for the project. | |
object Status is the most recently observed status of the project. |
Responses
200
OK
201
Created
401
Unauthorized
put/apis/management.cattle.io/v3/namespaces/{namespace}/projects/{name}
Request samples
- Payload
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "apiVersion": "string", - "kind": "string", - "metadata": { - "annotations": { - "property1": "string", - "property2": "string" }, - "creationTimestamp": "2019-08-24T14:15:22Z", - "deletionGracePeriodSeconds": 0, - "deletionTimestamp": "2019-08-24T14:15:22Z", - "finalizers": [ - "string" ], - "generateName": "string", - "generation": 0, - "labels": { - "property1": "string", - "property2": "string" }, - "managedFields": [ - { - "apiVersion": "string", - "fieldsType": "string", - "fieldsV1": { }, - "manager": "string", - "operation": "string", - "subresource": "string", - "time": "2019-08-24T14:15:22Z" } ], - "name": "string", - "namespace": "string", - "ownerReferences": [ - { - "apiVersion": "string", - "blockOwnerDeletion": true, - "controller": true, - "kind": "string", - "name": "string", - "uid": "string" } ], - "resourceVersion": "string", - "selfLink": "string", - "uid": "string" }, - "spec": { - "clusterName": "string", - "containerDefaultResourceLimit": { - "limitsCpu": "string", - "limitsMemory": "string", - "requestsCpu": "string", - "requestsMemory": "string" }, - "description": "string", - "displayName": "string", - "enableProjectMonitoring": true, - "namespaceDefaultResourceQuota": { - "limit": { - "configMaps": "string", - "limitsCpu": "string", - "limitsMemory": "string", - "persistentVolumeClaims": "string", - "pods": "string", - "replicationControllers": "string", - "requestsCpu": "string", - "requestsMemory": "string", - "requestsStorage": "string", - "secrets": "string", - "services": "string", - "servicesLoadBalancers": "string", - "servicesNodePorts": "string" } }, - "resourceQuota": { - "limit": { - "configMaps": "string", - "limitsCpu": "string", - "limitsMemory": "string", - "persistentVolumeClaims": "string", - "pods": "string", - "replicationControllers": "string", - "requestsCpu": "string", - "requestsMemory": "string", - "requestsStorage": "string", - "secrets": "string", - "services": "string", - "servicesLoadBalancers": "string", - "servicesNodePorts": "string" }, - "usedLimit": { - "configMaps": "string", - "limitsCpu": "string", - "limitsMemory": "string", - "persistentVolumeClaims": "string", - "pods": "string", - "replicationControllers": "string", - "requestsCpu": "string", - "requestsMemory": "string", - "requestsStorage": "string", - "secrets": "string", - "services": "string", - "servicesLoadBalancers": "string", - "servicesNodePorts": "string" } } }, - "status": { - "conditions": [ - { - "lastTransitionTime": "string", - "lastUpdateTime": "string", - "message": "string", - "reason": "string", - "status": "string", - "type": "string" } ], - "monitoringStatus": { - "conditions": [ - { - "lastTransitionTime": "string", - "lastUpdateTime": "string", - "message": "string", - "reason": "string", - "status": "string", - "type": "string" } ], - "grafanaEndpoint": "string" }, - "podSecurityPolicyTemplateId": "string" } }
Response samples
- 200
- 201
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "apiVersion": "string", - "kind": "string", - "metadata": { - "annotations": { - "property1": "string", - "property2": "string" }, - "creationTimestamp": "2019-08-24T14:15:22Z", - "deletionGracePeriodSeconds": 0, - "deletionTimestamp": "2019-08-24T14:15:22Z", - "finalizers": [ - "string" ], - "generateName": "string", - "generation": 0, - "labels": { - "property1": "string", - "property2": "string" }, - "managedFields": [ - { - "apiVersion": "string", - "fieldsType": "string", - "fieldsV1": { }, - "manager": "string", - "operation": "string", - "subresource": "string", - "time": "2019-08-24T14:15:22Z" } ], - "name": "string", - "namespace": "string", - "ownerReferences": [ - { - "apiVersion": "string", - "blockOwnerDeletion": true, - "controller": true, - "kind": "string", - "name": "string", - "uid": "string" } ], - "resourceVersion": "string", - "selfLink": "string", - "uid": "string" }, - "spec": { - "clusterName": "string", - "containerDefaultResourceLimit": { - "limitsCpu": "string", - "limitsMemory": "string", - "requestsCpu": "string", - "requestsMemory": "string" }, - "description": "string", - "displayName": "string", - "enableProjectMonitoring": true, - "namespaceDefaultResourceQuota": { - "limit": { - "configMaps": "string", - "limitsCpu": "string", - "limitsMemory": "string", - "persistentVolumeClaims": "string", - "pods": "string", - "replicationControllers": "string", - "requestsCpu": "string", - "requestsMemory": "string", - "requestsStorage": "string", - "secrets": "string", - "services": "string", - "servicesLoadBalancers": "string", - "servicesNodePorts": "string" } }, - "resourceQuota": { - "limit": { - "configMaps": "string", - "limitsCpu": "string", - "limitsMemory": "string", - "persistentVolumeClaims": "string", - "pods": "string", - "replicationControllers": "string", - "requestsCpu": "string", - "requestsMemory": "string", - "requestsStorage": "string", - "secrets": "string", - "services": "string", - "servicesLoadBalancers": "string", - "servicesNodePorts": "string" }, - "usedLimit": { - "configMaps": "string", - "limitsCpu": "string", - "limitsMemory": "string", - "persistentVolumeClaims": "string", - "pods": "string", - "replicationControllers": "string", - "requestsCpu": "string", - "requestsMemory": "string", - "requestsStorage": "string", - "secrets": "string", - "services": "string", - "servicesLoadBalancers": "string", - "servicesNodePorts": "string" } } }, - "status": { - "conditions": [ - { - "lastTransitionTime": "string", - "lastUpdateTime": "string", - "message": "string", - "reason": "string", - "status": "string", - "type": "string" } ], - "monitoringStatus": { - "conditions": [ - { - "lastTransitionTime": "string", - "lastUpdateTime": "string", - "message": "string", - "reason": "string", - "status": "string", - "type": "string" } ], - "grafanaEndpoint": "string" }, - "podSecurityPolicyTemplateId": "string" } }
deleteManagementCattleIoV3NamespacedProject
delete a Project
Authorizations:
BearerToken
path Parameters
name required | string unique name of the Project |
namespace required | string unique object name and auth scope, such as for teams and projects |
query Parameters
pretty | string unique If ‘true’, then the output is pretty printed. |
dryRun | string unique When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed |
gracePeriodSeconds | integer unique The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. |
orphanDependents | boolean unique Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the “orphan” finalizer will be added to/removed from the object’s finalizers list. Either this field or PropagationPolicy may be set, but not both. |
propagationPolicy | string unique Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: ‘Orphan’ - orphan the dependents; ‘Background’ - allow the garbage collector to delete the dependents in the background; ‘Foreground’ - a cascading policy that deletes all dependents in the foreground. |
Request Body schema:
application/jsonapplication/yamlapplication/json
apiVersion | string APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources |
dryRun | Array of strings When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed |
gracePeriodSeconds | integer <int64> The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. |
kind | string Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds |
orphanDependents | boolean Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the “orphan” finalizer will be added to/removed from the object’s finalizers list. Either this field or PropagationPolicy may be set, but not both. |
object (io.k8s.apimachinery.pkg.apis.meta.v1.Preconditions) Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out. | |
propagationPolicy | string Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: ‘Orphan’ - orphan the dependents; ‘Background’ - allow the garbage collector to delete the dependents in the background; ‘Foreground’ - a cascading policy that deletes all dependents in the foreground. |
Responses
200
OK
202
Accepted
401
Unauthorized
delete/apis/management.cattle.io/v3/namespaces/{namespace}/projects/{name}
Request samples
- Payload
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "apiVersion": "string", - "dryRun": [ - "string" ], - "gracePeriodSeconds": 0, - "kind": "string", - "orphanDependents": true, - "preconditions": { - "resourceVersion": "string", - "uid": "string" }, - "propagationPolicy": "string" }
Response samples
- 200
- 202
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "apiVersion": "string", - "code": 0, - "details": { - "causes": [ - { - "field": "string", - "message": "string", - "reason": "string" } ], - "group": "string", - "kind": "string", - "name": "string", - "retryAfterSeconds": 0, - "uid": "string" }, - "kind": "string", - "message": "string", - "metadata": { - "continue": "string", - "remainingItemCount": 0, - "resourceVersion": "string", - "selfLink": "string" }, - "reason": "string", - "status": "string" }
patchManagementCattleIoV3NamespacedProject
partially update the specified Project
Authorizations:
BearerToken
path Parameters
name required | string unique name of the Project |
namespace required | string unique object name and auth scope, such as for teams and projects |
query Parameters
pretty | string unique If ‘true’, then the output is pretty printed. |
dryRun | string unique When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed |
fieldManager | string unique fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). |
fieldValidation | string unique fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. |
force | boolean unique Force is going to “force” Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. |
Request Body schema:
application/json-patch+jsonapplication/merge-patch+jsonapplication/apply-patch+yamlapplication/json-patch+json
object (io.k8s.apimachinery.pkg.apis.meta.v1.Patch)
Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.
Responses
200
OK
401
Unauthorized
patch/apis/management.cattle.io/v3/namespaces/{namespace}/projects/{name}
Request samples
- Payload
Content type
application/json-patch+jsonapplication/merge-patch+jsonapplication/apply-patch+yamlapplication/json-patch+json
Copy
{ }
Response samples
- 200
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "apiVersion": "string", - "kind": "string", - "metadata": { - "annotations": { - "property1": "string", - "property2": "string" }, - "creationTimestamp": "2019-08-24T14:15:22Z", - "deletionGracePeriodSeconds": 0, - "deletionTimestamp": "2019-08-24T14:15:22Z", - "finalizers": [ - "string" ], - "generateName": "string", - "generation": 0, - "labels": { - "property1": "string", - "property2": "string" }, - "managedFields": [ - { - "apiVersion": "string", - "fieldsType": "string", - "fieldsV1": { }, - "manager": "string", - "operation": "string", - "subresource": "string", - "time": "2019-08-24T14:15:22Z" } ], - "name": "string", - "namespace": "string", - "ownerReferences": [ - { - "apiVersion": "string", - "blockOwnerDeletion": true, - "controller": true, - "kind": "string", - "name": "string", - "uid": "string" } ], - "resourceVersion": "string", - "selfLink": "string", - "uid": "string" }, - "spec": { - "clusterName": "string", - "containerDefaultResourceLimit": { - "limitsCpu": "string", - "limitsMemory": "string", - "requestsCpu": "string", - "requestsMemory": "string" }, - "description": "string", - "displayName": "string", - "enableProjectMonitoring": true, - "namespaceDefaultResourceQuota": { - "limit": { - "configMaps": "string", - "limitsCpu": "string", - "limitsMemory": "string", - "persistentVolumeClaims": "string", - "pods": "string", - "replicationControllers": "string", - "requestsCpu": "string", - "requestsMemory": "string", - "requestsStorage": "string", - "secrets": "string", - "services": "string", - "servicesLoadBalancers": "string", - "servicesNodePorts": "string" } }, - "resourceQuota": { - "limit": { - "configMaps": "string", - "limitsCpu": "string", - "limitsMemory": "string", - "persistentVolumeClaims": "string", - "pods": "string", - "replicationControllers": "string", - "requestsCpu": "string", - "requestsMemory": "string", - "requestsStorage": "string", - "secrets": "string", - "services": "string", - "servicesLoadBalancers": "string", - "servicesNodePorts": "string" }, - "usedLimit": { - "configMaps": "string", - "limitsCpu": "string", - "limitsMemory": "string", - "persistentVolumeClaims": "string", - "pods": "string", - "replicationControllers": "string", - "requestsCpu": "string", - "requestsMemory": "string", - "requestsStorage": "string", - "secrets": "string", - "services": "string", - "servicesLoadBalancers": "string", - "servicesNodePorts": "string" } } }, - "status": { - "conditions": [ - { - "lastTransitionTime": "string", - "lastUpdateTime": "string", - "message": "string", - "reason": "string", - "status": "string", - "type": "string" } ], - "monitoringStatus": { - "conditions": [ - { - "lastTransitionTime": "string", - "lastUpdateTime": "string", - "message": "string", - "reason": "string", - "status": "string", - "type": "string" } ], - "grafanaEndpoint": "string" }, - "podSecurityPolicyTemplateId": "string" } }
listManagementCattleIoV3ProjectRoleTemplateBindingForAllNamespaces
list objects of kind ProjectRoleTemplateBinding
Authorizations:
BearerToken
query Parameters
allowWatchBookmarks | boolean unique allowWatchBookmarks requests watch events with type “BOOKMARK”. Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server’s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. |
continue | string unique The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the “next key”. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. |
fieldSelector | string unique A selector to restrict the list of returned objects by their fields. Defaults to everything. |
labelSelector | string unique A selector to restrict the list of returned objects by their labels. Defaults to everything. |
limit | integer unique limit is a maximum number of responses to return for a list call. If more items exist, the server will set the The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. |
pretty | string unique If ‘true’, then the output is pretty printed. |
resourceVersion | string unique resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset |
resourceVersionMatch | string unique resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset |
sendInitialEvents | boolean unique
When
Defaults to true if |
timeoutSeconds | integer unique Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. |
watch | boolean unique Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. |
Responses
200
OK
401
Unauthorized
get/apis/management.cattle.io/v3/projectroletemplatebindings
https://ranchermanager.docs.rancher.com/apis/management.cattle.io/v3/projectroletemplatebindings
Response samples
- 200
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "apiVersion": "string", - "items": [ - { - "apiVersion": "string", - "groupName": "string", - "groupPrincipalName": "string", - "kind": "string", - "metadata": { - "annotations": { - "property1": "string", - "property2": "string" }, - "creationTimestamp": "2019-08-24T14:15:22Z", - "deletionGracePeriodSeconds": 0, - "deletionTimestamp": "2019-08-24T14:15:22Z", - "finalizers": [ - "string" ], - "generateName": "string", - "generation": 0, - "labels": { - "property1": "string", - "property2": "string" }, - "managedFields": [ - { - "apiVersion": "string", - "fieldsType": "string", - "fieldsV1": { }, - "manager": "string", - "operation": "string", - "subresource": "string", - "time": "2019-08-24T14:15:22Z" } ], - "name": "string", - "namespace": "string", - "ownerReferences": [ - { - "apiVersion": "string", - "blockOwnerDeletion": true, - "controller": true, - "kind": "string", - "name": "string", - "uid": "string" } ], - "resourceVersion": "string", - "selfLink": "string", - "uid": "string" }, - "projectName": "string", - "roleTemplateName": "string", - "serviceAccount": "string", - "userName": "string", - "userPrincipalName": "string" } ], - "kind": "string", - "metadata": { - "continue": "string", - "remainingItemCount": 0, - "resourceVersion": "string", - "selfLink": "string" } }
listManagementCattleIoV3ProjectForAllNamespaces
list objects of kind Project
Authorizations:
BearerToken
query Parameters
allowWatchBookmarks | boolean unique allowWatchBookmarks requests watch events with type “BOOKMARK”. Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server’s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. |
continue | string unique The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the “next key”. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. |
fieldSelector | string unique A selector to restrict the list of returned objects by their fields. Defaults to everything. |
labelSelector | string unique A selector to restrict the list of returned objects by their labels. Defaults to everything. |
limit | integer unique limit is a maximum number of responses to return for a list call. If more items exist, the server will set the The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. |
pretty | string unique If ‘true’, then the output is pretty printed. |
resourceVersion | string unique resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset |
resourceVersionMatch | string unique resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset |
sendInitialEvents | boolean unique
When
Defaults to true if |
timeoutSeconds | integer unique Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. |
watch | boolean unique Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. |
Responses
200
OK
401
Unauthorized
get/apis/management.cattle.io/v3/projects
https://ranchermanager.docs.rancher.com/apis/management.cattle.io/v3/projects
Response samples
- 200
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "apiVersion": "string", - "items": [ - { - "apiVersion": "string", - "kind": "string", - "metadata": { - "annotations": { - "property1": "string", - "property2": "string" }, - "creationTimestamp": "2019-08-24T14:15:22Z", - "deletionGracePeriodSeconds": 0, - "deletionTimestamp": "2019-08-24T14:15:22Z", - "finalizers": [ - "string" ], - "generateName": "string", - "generation": 0, - "labels": { - "property1": "string", - "property2": "string" }, - "managedFields": [ - { - "apiVersion": "string", - "fieldsType": "string", - "fieldsV1": { }, - "manager": "string", - "operation": "string", - "subresource": "string", - "time": "2019-08-24T14:15:22Z" } ], - "name": "string", - "namespace": "string", - "ownerReferences": [ - { - "apiVersion": "string", - "blockOwnerDeletion": true, - "controller": true, - "kind": "string", - "name": "string", - "uid": "string" } ], - "resourceVersion": "string", - "selfLink": "string", - "uid": "string" }, - "spec": { - "clusterName": "string", - "containerDefaultResourceLimit": { - "limitsCpu": "string", - "limitsMemory": "string", - "requestsCpu": "string", - "requestsMemory": "string" }, - "description": "string", - "displayName": "string", - "enableProjectMonitoring": true, - "namespaceDefaultResourceQuota": { - "limit": { - "configMaps": "string", - "limitsCpu": "string", - "limitsMemory": "string", - "persistentVolumeClaims": "string", - "pods": "string", - "replicationControllers": "string", - "requestsCpu": "string", - "requestsMemory": "string", - "requestsStorage": "string", - "secrets": "string", - "services": "string", - "servicesLoadBalancers": "string", - "servicesNodePorts": "string" } }, - "resourceQuota": { - "limit": { - "configMaps": "string", - "limitsCpu": "string", - "limitsMemory": "string", - "persistentVolumeClaims": "string", - "pods": "string", - "replicationControllers": "string", - "requestsCpu": "string", - "requestsMemory": "string", - "requestsStorage": "string", - "secrets": "string", - "services": "string", - "servicesLoadBalancers": "string", - "servicesNodePorts": "string" }, - "usedLimit": { - "configMaps": "string", - "limitsCpu": "string", - "limitsMemory": "string", - "persistentVolumeClaims": "string", - "pods": "string", - "replicationControllers": "string", - "requestsCpu": "string", - "requestsMemory": "string", - "requestsStorage": "string", - "secrets": "string", - "services": "string", - "servicesLoadBalancers": "string", - "servicesNodePorts": "string" } } }, - "status": { - "conditions": [ - { - "lastTransitionTime": "string", - "lastUpdateTime": "string", - "message": "string", - "reason": "string", - "status": "string", - "type": "string" } ], - "monitoringStatus": { - "conditions": [ - { - "lastTransitionTime": "string", - "lastUpdateTime": "string", - "message": "string", - "reason": "string", - "status": "string", - "type": "string" } ], - "grafanaEndpoint": "string" }, - "podSecurityPolicyTemplateId": "string" } } ], - "kind": "string", - "metadata": { - "continue": "string", - "remainingItemCount": 0, - "resourceVersion": "string", - "selfLink": "string" } }
listManagementCattleIoV3RoleTemplate
list objects of kind RoleTemplate
Authorizations:
BearerToken
query Parameters
pretty | string unique If ‘true’, then the output is pretty printed. |
allowWatchBookmarks | boolean unique allowWatchBookmarks requests watch events with type “BOOKMARK”. Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server’s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. |
continue | string unique The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the “next key”. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. |
fieldSelector | string unique A selector to restrict the list of returned objects by their fields. Defaults to everything. |
labelSelector | string unique A selector to restrict the list of returned objects by their labels. Defaults to everything. |
limit | integer unique limit is a maximum number of responses to return for a list call. If more items exist, the server will set the The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. |
resourceVersion | string unique resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset |
resourceVersionMatch | string unique resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset |
sendInitialEvents | boolean unique
When
Defaults to true if |
timeoutSeconds | integer unique Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. |
watch | boolean unique Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. |
Responses
200
OK
401
Unauthorized
get/apis/management.cattle.io/v3/roletemplates
https://ranchermanager.docs.rancher.com/apis/management.cattle.io/v3/roletemplates
Response samples
- 200
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "apiVersion": "string", - "items": [ - { - "administrative": true, - "apiVersion": "string", - "builtin": true, - "clusterCreatorDefault": true, - "context": "project", - "description": "string", - "displayName": "string", - "external": true, - "hidden": true, - "kind": "string", - "locked": true, - "metadata": { - "annotations": { - "property1": "string", - "property2": "string" }, - "creationTimestamp": "2019-08-24T14:15:22Z", - "deletionGracePeriodSeconds": 0, - "deletionTimestamp": "2019-08-24T14:15:22Z", - "finalizers": [ - "string" ], - "generateName": "string", - "generation": 0, - "labels": { - "property1": "string", - "property2": "string" }, - "managedFields": [ - { - "apiVersion": "string", - "fieldsType": "string", - "fieldsV1": { }, - "manager": "string", - "operation": "string", - "subresource": "string", - "time": "2019-08-24T14:15:22Z" } ], - "name": "string", - "namespace": "string", - "ownerReferences": [ - { - "apiVersion": "string", - "blockOwnerDeletion": true, - "controller": true, - "kind": "string", - "name": "string", - "uid": "string" } ], - "resourceVersion": "string", - "selfLink": "string", - "uid": "string" }, - "projectCreatorDefault": true, - "roleTemplateNames": [ - "string" ], - "rules": [ - { - "apiGroups": [ - "string" ], - "nonResourceURLs": [ - "string" ], - "resourceNames": [ - "string" ], - "resources": [ - "string" ], - "verbs": [ - "string" ] } ] } ], - "kind": "string", - "metadata": { - "continue": "string", - "remainingItemCount": 0, - "resourceVersion": "string", - "selfLink": "string" } }
createManagementCattleIoV3RoleTemplate
create a RoleTemplate
Authorizations:
BearerToken
query Parameters
pretty | string unique If ‘true’, then the output is pretty printed. |
dryRun | string unique When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed |
fieldManager | string unique fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. |
fieldValidation | string unique fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. |
Request Body schema:
application/jsonapplication/yamlapplication/json
administrative | boolean Administrative if false, and context is set to cluster this RoleTemplate will not grant access to “CatalogTemplates” and “CatalogTemplateVersions” for any project in the cluster. Default is false. |
apiVersion | string APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources |
builtin | boolean Builtin if true specifies that this RoleTemplate was created by Rancher and is immutable. Default to false. |
clusterCreatorDefault | boolean ClusterCreatorDefault if true, a binding with this RoleTemplate will be created for a users when they create a new cluster. ClusterCreatorDefault is only evaluated if the context of the RoleTemplate is set to cluster. Default to false. |
context | string Enum: “project” “cluster” “” Context describes if the roleTemplate applies to clusters or projects. Valid values are “project”, “cluster” or “”. |
description | string Description holds text that describes the resource. |
displayName | string DisplayName is the human-readable name displayed in the UI for this resource. |
external | boolean External if true specifies that rules for this RoleTemplate should be gathered from a ClusterRole with the matching name. If set to true the Rules on the template will not be evaluated. External’s value is only evaluated if the RoleTemplate’s context is set to “cluster” Default to false. |
hidden | boolean Hidden if true informs the Rancher UI not to display this RoleTemplate. Default to false. |
kind | string Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds |
locked | boolean Locked if true, new bindings will not be able to use this RoleTemplate. Default to false. |
object (io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta) ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. | |
projectCreatorDefault | boolean ProjectCreatorDefault if true, a binding with this RoleTemplate will be created for a user when they create a new project. ProjectCreatorDefault is only evaluated if the context of the RoleTemplate is set to project. Default to false. |
roleTemplateNames | Array of strings RoleTemplateNames list of RoleTemplate names that this RoleTemplate will inherit. This RoleTemplate will grant all rules defined in an inherited RoleTemplate. Inherited RoleTemplates must already exist. |
Array of objects Rules hold all the PolicyRules for this RoleTemplate. |
Responses
200
OK
201
Created
202
Accepted
401
Unauthorized
post/apis/management.cattle.io/v3/roletemplates
https://ranchermanager.docs.rancher.com/apis/management.cattle.io/v3/roletemplates
Request samples
- Payload
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "administrative": true, - "apiVersion": "string", - "builtin": true, - "clusterCreatorDefault": true, - "context": "project", - "description": "string", - "displayName": "string", - "external": true, - "hidden": true, - "kind": "string", - "locked": true, - "metadata": { - "annotations": { - "property1": "string", - "property2": "string" }, - "creationTimestamp": "2019-08-24T14:15:22Z", - "deletionGracePeriodSeconds": 0, - "deletionTimestamp": "2019-08-24T14:15:22Z", - "finalizers": [ - "string" ], - "generateName": "string", - "generation": 0, - "labels": { - "property1": "string", - "property2": "string" }, - "managedFields": [ - { - "apiVersion": "string", - "fieldsType": "string", - "fieldsV1": { }, - "manager": "string", - "operation": "string", - "subresource": "string", - "time": "2019-08-24T14:15:22Z" } ], - "name": "string", - "namespace": "string", - "ownerReferences": [ - { - "apiVersion": "string", - "blockOwnerDeletion": true, - "controller": true, - "kind": "string", - "name": "string", - "uid": "string" } ], - "resourceVersion": "string", - "selfLink": "string", - "uid": "string" }, - "projectCreatorDefault": true, - "roleTemplateNames": [ - "string" ], - "rules": [ - { - "apiGroups": [ - "string" ], - "nonResourceURLs": [ - "string" ], - "resourceNames": [ - "string" ], - "resources": [ - "string" ], - "verbs": [ - "string" ] } ] }
Response samples
- 200
- 201
- 202
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "administrative": true, - "apiVersion": "string", - "builtin": true, - "clusterCreatorDefault": true, - "context": "project", - "description": "string", - "displayName": "string", - "external": true, - "hidden": true, - "kind": "string", - "locked": true, - "metadata": { - "annotations": { - "property1": "string", - "property2": "string" }, - "creationTimestamp": "2019-08-24T14:15:22Z", - "deletionGracePeriodSeconds": 0, - "deletionTimestamp": "2019-08-24T14:15:22Z", - "finalizers": [ - "string" ], - "generateName": "string", - "generation": 0, - "labels": { - "property1": "string", - "property2": "string" }, - "managedFields": [ - { - "apiVersion": "string", - "fieldsType": "string", - "fieldsV1": { }, - "manager": "string", - "operation": "string", - "subresource": "string", - "time": "2019-08-24T14:15:22Z" } ], - "name": "string", - "namespace": "string", - "ownerReferences": [ - { - "apiVersion": "string", - "blockOwnerDeletion": true, - "controller": true, - "kind": "string", - "name": "string", - "uid": "string" } ], - "resourceVersion": "string", - "selfLink": "string", - "uid": "string" }, - "projectCreatorDefault": true, - "roleTemplateNames": [ - "string" ], - "rules": [ - { - "apiGroups": [ - "string" ], - "nonResourceURLs": [ - "string" ], - "resourceNames": [ - "string" ], - "resources": [ - "string" ], - "verbs": [ - "string" ] } ] }
deleteManagementCattleIoV3CollectionRoleTemplate
delete collection of RoleTemplate
Authorizations:
BearerToken
query Parameters
pretty | string unique If ‘true’, then the output is pretty printed. |
allowWatchBookmarks | boolean unique allowWatchBookmarks requests watch events with type “BOOKMARK”. Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server’s discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored. |
continue | string unique The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the “next key”. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. |
fieldSelector | string unique A selector to restrict the list of returned objects by their fields. Defaults to everything. |
labelSelector | string unique A selector to restrict the list of returned objects by their labels. Defaults to everything. |
limit | integer unique limit is a maximum number of responses to return for a list call. If more items exist, the server will set the The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. |
resourceVersion | string unique resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset |
resourceVersionMatch | string unique resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset |
sendInitialEvents | boolean unique
When
Defaults to true if |
timeoutSeconds | integer unique Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity. |
watch | boolean unique Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. |
Responses
200
OK
401
Unauthorized
delete/apis/management.cattle.io/v3/roletemplates
https://ranchermanager.docs.rancher.com/apis/management.cattle.io/v3/roletemplates
Response samples
- 200
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "apiVersion": "string", - "code": 0, - "details": { - "causes": [ - { - "field": "string", - "message": "string", - "reason": "string" } ], - "group": "string", - "kind": "string", - "name": "string", - "retryAfterSeconds": 0, - "uid": "string" }, - "kind": "string", - "message": "string", - "metadata": { - "continue": "string", - "remainingItemCount": 0, - "resourceVersion": "string", - "selfLink": "string" }, - "reason": "string", - "status": "string" }
readManagementCattleIoV3RoleTemplate
read the specified RoleTemplate
Authorizations:
BearerToken
path Parameters
name required | string unique name of the RoleTemplate |
query Parameters
pretty | string unique If ‘true’, then the output is pretty printed. |
resourceVersion | string unique resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset |
Responses
200
OK
401
Unauthorized
get/apis/management.cattle.io/v3/roletemplates/{name}
https://ranchermanager.docs.rancher.com/apis/management.cattle.io/v3/roletemplates/{name}
Response samples
- 200
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "administrative": true, - "apiVersion": "string", - "builtin": true, - "clusterCreatorDefault": true, - "context": "project", - "description": "string", - "displayName": "string", - "external": true, - "hidden": true, - "kind": "string", - "locked": true, - "metadata": { - "annotations": { - "property1": "string", - "property2": "string" }, - "creationTimestamp": "2019-08-24T14:15:22Z", - "deletionGracePeriodSeconds": 0, - "deletionTimestamp": "2019-08-24T14:15:22Z", - "finalizers": [ - "string" ], - "generateName": "string", - "generation": 0, - "labels": { - "property1": "string", - "property2": "string" }, - "managedFields": [ - { - "apiVersion": "string", - "fieldsType": "string", - "fieldsV1": { }, - "manager": "string", - "operation": "string", - "subresource": "string", - "time": "2019-08-24T14:15:22Z" } ], - "name": "string", - "namespace": "string", - "ownerReferences": [ - { - "apiVersion": "string", - "blockOwnerDeletion": true, - "controller": true, - "kind": "string", - "name": "string", - "uid": "string" } ], - "resourceVersion": "string", - "selfLink": "string", - "uid": "string" }, - "projectCreatorDefault": true, - "roleTemplateNames": [ - "string" ], - "rules": [ - { - "apiGroups": [ - "string" ], - "nonResourceURLs": [ - "string" ], - "resourceNames": [ - "string" ], - "resources": [ - "string" ], - "verbs": [ - "string" ] } ] }
replaceManagementCattleIoV3RoleTemplate
replace the specified RoleTemplate
Authorizations:
BearerToken
path Parameters
name required | string unique name of the RoleTemplate |
query Parameters
pretty | string unique If ‘true’, then the output is pretty printed. |
dryRun | string unique When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed |
fieldManager | string unique fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. |
fieldValidation | string unique fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. |
Request Body schema:
application/jsonapplication/yamlapplication/json
administrative | boolean Administrative if false, and context is set to cluster this RoleTemplate will not grant access to “CatalogTemplates” and “CatalogTemplateVersions” for any project in the cluster. Default is false. |
apiVersion | string APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources |
builtin | boolean Builtin if true specifies that this RoleTemplate was created by Rancher and is immutable. Default to false. |
clusterCreatorDefault | boolean ClusterCreatorDefault if true, a binding with this RoleTemplate will be created for a users when they create a new cluster. ClusterCreatorDefault is only evaluated if the context of the RoleTemplate is set to cluster. Default to false. |
context | string Enum: “project” “cluster” “” Context describes if the roleTemplate applies to clusters or projects. Valid values are “project”, “cluster” or “”. |
description | string Description holds text that describes the resource. |
displayName | string DisplayName is the human-readable name displayed in the UI for this resource. |
external | boolean External if true specifies that rules for this RoleTemplate should be gathered from a ClusterRole with the matching name. If set to true the Rules on the template will not be evaluated. External’s value is only evaluated if the RoleTemplate’s context is set to “cluster” Default to false. |
hidden | boolean Hidden if true informs the Rancher UI not to display this RoleTemplate. Default to false. |
kind | string Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds |
locked | boolean Locked if true, new bindings will not be able to use this RoleTemplate. Default to false. |
object (io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta) ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create. | |
projectCreatorDefault | boolean ProjectCreatorDefault if true, a binding with this RoleTemplate will be created for a user when they create a new project. ProjectCreatorDefault is only evaluated if the context of the RoleTemplate is set to project. Default to false. |
roleTemplateNames | Array of strings RoleTemplateNames list of RoleTemplate names that this RoleTemplate will inherit. This RoleTemplate will grant all rules defined in an inherited RoleTemplate. Inherited RoleTemplates must already exist. |
Array of objects Rules hold all the PolicyRules for this RoleTemplate. |
Responses
200
OK
201
Created
401
Unauthorized
put/apis/management.cattle.io/v3/roletemplates/{name}
https://ranchermanager.docs.rancher.com/apis/management.cattle.io/v3/roletemplates/{name}
Request samples
- Payload
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "administrative": true, - "apiVersion": "string", - "builtin": true, - "clusterCreatorDefault": true, - "context": "project", - "description": "string", - "displayName": "string", - "external": true, - "hidden": true, - "kind": "string", - "locked": true, - "metadata": { - "annotations": { - "property1": "string", - "property2": "string" }, - "creationTimestamp": "2019-08-24T14:15:22Z", - "deletionGracePeriodSeconds": 0, - "deletionTimestamp": "2019-08-24T14:15:22Z", - "finalizers": [ - "string" ], - "generateName": "string", - "generation": 0, - "labels": { - "property1": "string", - "property2": "string" }, - "managedFields": [ - { - "apiVersion": "string", - "fieldsType": "string", - "fieldsV1": { }, - "manager": "string", - "operation": "string", - "subresource": "string", - "time": "2019-08-24T14:15:22Z" } ], - "name": "string", - "namespace": "string", - "ownerReferences": [ - { - "apiVersion": "string", - "blockOwnerDeletion": true, - "controller": true, - "kind": "string", - "name": "string", - "uid": "string" } ], - "resourceVersion": "string", - "selfLink": "string", - "uid": "string" }, - "projectCreatorDefault": true, - "roleTemplateNames": [ - "string" ], - "rules": [ - { - "apiGroups": [ - "string" ], - "nonResourceURLs": [ - "string" ], - "resourceNames": [ - "string" ], - "resources": [ - "string" ], - "verbs": [ - "string" ] } ] }
Response samples
- 200
- 201
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "administrative": true, - "apiVersion": "string", - "builtin": true, - "clusterCreatorDefault": true, - "context": "project", - "description": "string", - "displayName": "string", - "external": true, - "hidden": true, - "kind": "string", - "locked": true, - "metadata": { - "annotations": { - "property1": "string", - "property2": "string" }, - "creationTimestamp": "2019-08-24T14:15:22Z", - "deletionGracePeriodSeconds": 0, - "deletionTimestamp": "2019-08-24T14:15:22Z", - "finalizers": [ - "string" ], - "generateName": "string", - "generation": 0, - "labels": { - "property1": "string", - "property2": "string" }, - "managedFields": [ - { - "apiVersion": "string", - "fieldsType": "string", - "fieldsV1": { }, - "manager": "string", - "operation": "string", - "subresource": "string", - "time": "2019-08-24T14:15:22Z" } ], - "name": "string", - "namespace": "string", - "ownerReferences": [ - { - "apiVersion": "string", - "blockOwnerDeletion": true, - "controller": true, - "kind": "string", - "name": "string", - "uid": "string" } ], - "resourceVersion": "string", - "selfLink": "string", - "uid": "string" }, - "projectCreatorDefault": true, - "roleTemplateNames": [ - "string" ], - "rules": [ - { - "apiGroups": [ - "string" ], - "nonResourceURLs": [ - "string" ], - "resourceNames": [ - "string" ], - "resources": [ - "string" ], - "verbs": [ - "string" ] } ] }
deleteManagementCattleIoV3RoleTemplate
delete a RoleTemplate
Authorizations:
BearerToken
path Parameters
name required | string unique name of the RoleTemplate |
query Parameters
pretty | string unique If ‘true’, then the output is pretty printed. |
dryRun | string unique When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed |
gracePeriodSeconds | integer unique The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. |
orphanDependents | boolean unique Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the “orphan” finalizer will be added to/removed from the object’s finalizers list. Either this field or PropagationPolicy may be set, but not both. |
propagationPolicy | string unique Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: ‘Orphan’ - orphan the dependents; ‘Background’ - allow the garbage collector to delete the dependents in the background; ‘Foreground’ - a cascading policy that deletes all dependents in the foreground. |
Request Body schema:
application/jsonapplication/yamlapplication/json
apiVersion | string APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources |
dryRun | Array of strings When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed |
gracePeriodSeconds | integer <int64> The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. |
kind | string Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds |
orphanDependents | boolean Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the “orphan” finalizer will be added to/removed from the object’s finalizers list. Either this field or PropagationPolicy may be set, but not both. |
object (io.k8s.apimachinery.pkg.apis.meta.v1.Preconditions) Preconditions must be fulfilled before an operation (update, delete, etc.) is carried out. | |
propagationPolicy | string Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: ‘Orphan’ - orphan the dependents; ‘Background’ - allow the garbage collector to delete the dependents in the background; ‘Foreground’ - a cascading policy that deletes all dependents in the foreground. |
Responses
200
OK
202
Accepted
401
Unauthorized
delete/apis/management.cattle.io/v3/roletemplates/{name}
https://ranchermanager.docs.rancher.com/apis/management.cattle.io/v3/roletemplates/{name}
Request samples
- Payload
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "apiVersion": "string", - "dryRun": [ - "string" ], - "gracePeriodSeconds": 0, - "kind": "string", - "orphanDependents": true, - "preconditions": { - "resourceVersion": "string", - "uid": "string" }, - "propagationPolicy": "string" }
Response samples
- 200
- 202
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "apiVersion": "string", - "code": 0, - "details": { - "causes": [ - { - "field": "string", - "message": "string", - "reason": "string" } ], - "group": "string", - "kind": "string", - "name": "string", - "retryAfterSeconds": 0, - "uid": "string" }, - "kind": "string", - "message": "string", - "metadata": { - "continue": "string", - "remainingItemCount": 0, - "resourceVersion": "string", - "selfLink": "string" }, - "reason": "string", - "status": "string" }
patchManagementCattleIoV3RoleTemplate
partially update the specified RoleTemplate
Authorizations:
BearerToken
path Parameters
name required | string unique name of the RoleTemplate |
query Parameters
pretty | string unique If ‘true’, then the output is pretty printed. |
dryRun | string unique When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed |
fieldManager | string unique fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch). |
fieldValidation | string unique fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered. |
force | boolean unique Force is going to “force” Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests. |
Request Body schema:
application/json-patch+jsonapplication/merge-patch+jsonapplication/apply-patch+yamlapplication/json-patch+json
object (io.k8s.apimachinery.pkg.apis.meta.v1.Patch)
Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.
Responses
200
OK
401
Unauthorized
patch/apis/management.cattle.io/v3/roletemplates/{name}
https://ranchermanager.docs.rancher.com/apis/management.cattle.io/v3/roletemplates/{name}
Request samples
- Payload
Content type
application/json-patch+jsonapplication/merge-patch+jsonapplication/apply-patch+yamlapplication/json-patch+json
Copy
{ }
Response samples
- 200
Content type
application/jsonapplication/yamlapplication/json
Copy
Expand all Collapse all
{ - "administrative": true, - "apiVersion": "string", - "builtin": true, - "clusterCreatorDefault": true, - "context": "project", - "description": "string", - "displayName": "string", - "external": true, - "hidden": true, - "kind": "string", - "locked": true, - "metadata": { - "annotations": { - "property1": "string", - "property2": "string" }, - "creationTimestamp": "2019-08-24T14:15:22Z", - "deletionGracePeriodSeconds": 0, - "deletionTimestamp": "2019-08-24T14:15:22Z", - "finalizers": [ - "string" ], - "generateName": "string", - "generation": 0, - "labels": { - "property1": "string", - "property2": "string" }, - "managedFields": [ - { - "apiVersion": "string", - "fieldsType": "string", - "fieldsV1": { }, - "manager": "string", - "operation": "string", - "subresource": "string", - "time": "2019-08-24T14:15:22Z" } ], - "name": "string", - "namespace": "string", - "ownerReferences": [ - { - "apiVersion": "string", - "blockOwnerDeletion": true, - "controller": true, - "kind": "string", - "name": "string", - "uid": "string" } ], - "resourceVersion": "string", - "selfLink": "string", - "uid": "string" }, - "projectCreatorDefault": true, - "roleTemplateNames": [ - "string" ], - "rules": [ - { - "apiGroups": [ - "string" ], - "nonResourceURLs": [ - "string" ], - "resourceNames": [ - "string" ], - "resources": [ - "string" ], - "verbs": [ - "string" ] } ] }