Partially update a public key for a service account
PATCH /organizations/{organization_id}/serviceaccounts/{serviceaccount_id}/publickeys/{publickey_id}
Updates a public key for the specified service account with partial information.
Parameters
Name | Type | In | Required | Description |
---|---|---|---|---|
organization_id |
string |
path |
True |
ID of the organization.
|
serviceaccount_id |
string |
path |
True |
ID of the service account.
|
publickey_id |
string |
path |
True |
ID of the public key.
|
Request Body
Replaces the specified attributes in the request body with the values provided.
Name | Type | Required | Description |
---|---|---|---|
expirationTimestamp |
string |
False |
The date and time when the public key expires. This is only applicable when the public key is an RSA key. |
stateDesired |
string |
False |
Expected state of the public key. Defined values are:
|
type |
string |
True |
Media type of the resource. Defined values are:
|
version |
string |
True |
Version of the resource. Defined values are:
|
Example request
{
"stateDesired": "DISABLED",
"type": "application/vnd.netapp.bxp.publickey",
"version": "1.0"
}
Response
Status: 204, Indicates if the public key was updated.