Pular para o conteúdo principal
PATCH
Update a management key
Guia relacionado: guia de Chaves de gerenciamento. Consulte o guia de Chaves de gerenciamento para um passo a passo com exemplos.

Autorizações

Authorization
string
header
obrigatório

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Parâmetros de caminho

management_key_id
string
obrigatório

Management key id to update.

Corpo

application/json
name
string

New name. Omit to keep current.

status
enum<string>

New lifecycle status. Omit to keep current. A revoked key cannot change status; the call fails with FAILED_PRECONDITION.

Opções disponíveis:
MANAGEMENT_KEY_STATUS_ACTIVE,
MANAGEMENT_KEY_STATUS_DISABLED,
MANAGEMENT_KEY_STATUS_REVOKED
permission_mode
enum<string>

New permission preset. Omit to keep current.

Opções disponíveis:
MANAGEMENT_PERMISSION_MODE_ALL,
MANAGEMENT_PERMISSION_MODE_RESTRICTED,
MANAGEMENT_PERMISSION_MODE_READ_ONLY
access
object

Replacement access map. Required when changing to MANAGEMENT_PERMISSION_MODE_RESTRICTED; ignored otherwise. Provide an empty map to clear.

expires_at
string<date-time>

New expiration. Omit to keep current. Set clear_expires_at = true to remove an existing expiration.

clear_expires_at
boolean

Force-clear the expiration. Mutually exclusive with expires_at.

Resposta

OK

management_key
object
obrigatório

Updated management-key.