cloudkms.projects.locations.key Rings.crypto Keys.update Primary Version

POST {{baseUrl}}/v1/{{name}}:updatePrimaryVersion?$.xgafv=<string>&access_token=<string>&alt=<string>&callback=<string>&fields=<string>&key=<string>&oauth_token=<string>&prettyPrint=<boolean>&quotaUser=<string>&upload_protocol=<string>&uploadType=<string>

Update the version of a CryptoKey that will be used in Encrypt. Returns an error if called on an asymmetric key.

Request Params

KeyDatatypeRequiredDescription
$.xgafvstringV1 error format.
access_tokenstringOAuth access token.
altstringData format for response.
callbackstringJSONP
fieldsstringSelector specifying which fields to include in a partial response.
keystringAPI key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
oauth_tokenstringOAuth 2.0 token for the current user.
prettyPrintstringReturns response with indentations and line breaks.
quotaUserstringAvailable to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
upload_protocolstringUpload protocol for media (e.g. "raw", "multipart").
uploadTypestringLegacy upload protocol for media (e.g. "media", "multipart").

Request Body

{"cryptoKeyVersionId"=>"<string>"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{&quot;createTime&quot;:&quot;deserunt est&quot;,&quot;labels&quot;:{},&quot;name&quot;:&quot;ullamco voluptate proident enim&quot;,&quot;nextRotationTime&quot;:&quot;qui et cupidatat sed&quot;,&quot;primary&quot;:{&quot;algorithm&quot;:&quot;RSA_DECRYPT_OAEP_4096_SHA256&quot;,&quot;attestation&quot;:{&quot;certChains&quot;:{&quot;caviumCerts&quot;:[&quot;ut proident exercitatio&quot;,&quot;aliqua ad quis&quot;],&quot;googleCardCerts&quot;:[&quot;Lorem et ut cillum amet&quot;,&quot;non sed cupidatat ali&quot;],&quot;googlePartitionCerts&quot;:[&quot;ut&quot;,&quot;aliquip veniam quis cillum minim&quot;]},&quot;content&quot;:&quot;ex velit minim&quot;,&quot;format&quot;:&quot;ATTESTATION_FORMAT_UNSPECIFIED&quot;},&quot;createTime&quot;:&quot;fugiat ali&quot;,&quot;destroyEventTime&quot;:&quot;deserunt laboris ipsum consequat&quot;,&quot;destroyTime&quot;:&quot;magna id&quot;,&quot;externalProtectionLevelOptions&quot;:{&quot;externalKeyUri&quot;:&quot;\u003cstring\u003e&quot;},&quot;generateTime&quot;:&quot;ut amet voluptate laboris&quot;,&quot;importFailureReason&quot;:&quot;dolore eu aliquip ex nostrud&quot;,&quot;importJob&quot;:&quot;Lorem&quot;,&quot;importTime&quot;:&quot;ea ad dolor&quot;,&quot;name&quot;:&quot;elit laborum cupidatat&quot;,&quot;protectionLevel&quot;:&quot;EXTERNAL&quot;,&quot;state&quot;:&quot;\u003cstring\u003e&quot;},&quot;purpose&quot;:&quot;ENCRYPT_DECRYPT&quot;,&quot;rotationPeriod&quot;:&quot;volu&quot;,&quot;versionTemplate&quot;:{&quot;algorithm&quot;:&quot;RSA_SIGN_PKCS1_3072_SHA256&quot;,&quot;protectionLevel&quot;:&quot;EXTERNAL&quot;}}