Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- oci raw-request --http-method POST --target-uri https://identity.<region>.oraclecloud.com/20160918/users/ocid1.user.oc1..<user-id>/apiKeys/ --request-body '{"key" : "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAx+QtoB5sXmV4CUxNg53d\n........\n-----END PUBLIC KEY-----"}'
- {
- "data": {
- "fingerprint": "7a:bb:a0:7e:1e:c7:33:29:b1:11:f7:70:44:c6:57:55",
- "keyId": "ocid1.tenancy.oc1..<tenancy-id>/ocid1.user.oc1..<user-id>/7a:bb:a0:7e:1e:c7:33:29:b1:11:f7:70:44:c6:57:55",
- "keyValue": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAx+QtoB5sXmV4CUxNg53d\n........-----END PUBLIC KEY-----",
- "lifecycleState": "ACTIVE",
- "timeCreated": "2023-05-17T14:00:32.479Z",
- "userId": "ocid1.user.oc1..<user-id>"
- },
- "headers": {
- "Cache-Control": "no-cache, no-store, must-revalidate",
- "Content-Length": "938",
- "Content-Type": "application/json",
- "Date": "Wed, 17 May 2023 14:00:32 GMT",
- "ETag": "2c4e78c2079d4db9b51241b253953a61",
- "Location": "https://identity-control-plane-core.svc.ad3.uk-london-1/20160918/users/ocid1.user.oc1..<user-if>/keys/ocid1.tenancy.oc1..<tenancy-id>/ocid1.user.oc1..<user-id>/7a:bb:a0:7e:1e:c7:33:29:b1:11:f7:70:44:c6:57:55",
- "Pragma": "no-cache",
- "X-Content-Type-Options": "nosniff",
- "opc-request-id": "C35451DC62E441A5842E15B44ADD5C4A/FFCC593BD10CCD87521D58FD02DF17CB/69AF2C8CEFCF9EA3723495A5C1C56655"
- },
- "status": "200 OK"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement