oci-cli
oci-cli copied to clipboard
oci kms management key-version cancel-deletion has no response body
Hi there - I can't get the response for key-version cancel-deletion :
kms management key-version cancel-deletion --key-id ocid1.key.oc1.xxxxxx--key-version-id ocid1.keyversion.oc1.xxxxxxxxx--profile xxxxxx -auth security_token --endpoint https://xxxxxxx-management.kms.xxxxx.oracleiaas.com --debug
Response:
......
reply: 'HTTP/1.1 200 OK\r\n'
header: Date: Wed, 15 May 2024 00:12:39 GMT
header: opc-request-id: C485790B7DC04CCBBD3C7CB1F57CFAB1/A374DBFD13E7E49FC27DD0775B467264/9FAED1B3D0E3A02B114D1215824093E1
header: Cache-Control: no-cache, no-store, no-transform, must-revalidate
header: ETag: 9cfa4bacffad9a5af254522838b0f9bf5031dad0
header: Content-Type: application/json
header: X-Content-Type-Options: nosniff
header: Strict-Transport-Security: max-age=31536000; includeSubDomains;
header: Content-Length: 800
DEBUG:oci.base_client.4519669792: 2024-05-15 00:12:39.120381: time elapsed for request C485790B7DC04CCBBD3C7CB1F57CFAB1: 1.2947725400008494
DEBUG:oci.base_client.4519669792: 2024-05-15 00:12:39.120546: time elapsed in response: 0:00:01.275654
DEBUG:oci.base_client.4519669792: 2024-05-15 00:12:39.120629: Response status: 200
DEBUG:oci.base_client.4519669792: 2024-05-15 00:12:39.122209: python SDK time elapsed for deserializing: 0.001434738005627878
DEBUG:oci.base_client.4519669792: 2024-05-15 00:12:39.122355: Response returned
DEBUG:oci.base_client.4519669792:time elapsed for request: 1.2970995259966003
Am I missing something?
You got Response status: 200 which is okay
You got Response status: 200 which is okay
But this is not aligning with other cli command. And if not enable debug mode, it is empty. For example:
oci kms management key get --key-id ocid1.key.oc1.xxxxxxx --profile oc1 --auth security_token --endpoint https://xxxxxx-management.kms.xxxxx.oraclecloud.com
{
"data": {
"auto-key-rotation-details": null,
"compartment-id": "ocid1.compartment.oc1..xxxxxx",
"current-key-version": "ocid1.keyversion.oc1.xxxxx",
"defined-tags": {},
"display-name": "xxxxx",
"external-key-reference-details": null,
"freeform-tags": {},
"id": "ocid1.key.oc1.xxxxxxxx,
"is-auto-rotation-enabled": false,
"is-primary": true,
"key-shape": {
"algorithm": "RSA",
"curve-id": null,
"length": 256
},
"lifecycle-state": "ENABLED",
"protection-mode": "HSM",
"replica-details": null,
"restored-from-key-id": null,
"time-created": "2023-03-15T00:46:33.493000+00:00",
"time-of-deletion": null,
"vault-id": "ocid1.vault.oc1.xxxxxxxxx"
},
"etag": "xxxxxxxx"
}
no all oci cli the same. is there any issue ?
@chenyefeng5 @adizohar As per the API reference the service should send a KeyReference as a response: https://docs.oracle.com/en-us/iaas/api/#/en/key/release/KeyVersion/CancelKeyVersionDeletion However, it looks like it is not sending it back. Perhaps the KMS service needs to take a look.