Differentiated update project and cluster binding relationship information
Requests
HTTP request
PATCH /apis/auth.alauda.io/v1/projectbindings/{name}
partially update the specified ProjectBinding
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
| name | string | True | name of the ProjectBinding |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
| dryRun | string | False | 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 | False | 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. |
| pretty | string | False | If 'true', then the output is pretty printed. |
Request body
Content-Type
application/json-patch+json,
application/merge-patch+json,
application/apply-patch+yaml
Sample request
Patch is provided to give a concrete name and type to the Kubernetes PATCH request body.
{
"metadata": {
"labels": {
"cpaas.io/cluster": "global-1",
"cpaas.io/project": "cpaas"
}
}
}Responses
Content-Type
application/json,
application/yaml
Status code: 200
OK
Sample response
{
"apiVersion": "auth.alauda.io/v1",
"kind": "ProjectBinding",
"metadata": {
"creationTimestamp": "2021-06-24T12:15:45Z",
"generation": 1,
"labels": {
"cpaas.io/cluster": "global-1",
"cpaas.io/project": "cpaas"
},
"name": "cpaas-global",
"ownerReferences": [
{
"apiVersion": "auth.alauda.io/v1",
"blockOwnerDeletion": true,
"controller": true,
"kind": "Project",
"name": "cpaas",
"uid": "a83c11df-d3ea-487b-bbbf-0e2a164a5cef"
}
],
"resourceVersion": "3604062",
"selfLink": "/apis/auth.alauda.io/v1/projectbindings/cpaas-global",
"uid": "11f4e9c4-a804-493f-96e7-faef05791e99"
},
"spec": {},
"status": {}
}Parameters
| Name | Type | Description |
|---|---|---|
| apiVersion | string | See common parameters |
| kind | string | See common parameters |
| metadata | object | See common parameters |