Add Credentials
POST/api/v31.02/credentials
x-prisma-cloud-target-env: {"permission":"manageCreds","saas":true,"self-hosted":true}
x-public: true
Updates a credential in the credentials store.
Note: Use only Prisma Cloud Compute user interface Manage > Cloud accounts > Add account to add cloud credentials for Amazon AWS
, Microsoft Azure
, and Google Cloud Platform
.
To invoke this endpoint in the Prisma Cloud Compute user interface:
- Navigate to Manage > Authentication > Credentials Store.
- From the table, find the row of the credential you want to update and click the dotted icon under the Actions column.
- Click the Manage button and update the credential's parameters.
- Click the Save button to save the updated credential.
cURL Request
Refer to the following example cURL command:
$ curl 'https://<CONSOLE>/api/v<VERSION>/credentials' \
-k \
-X POST \
-u <USER> \
-H 'Content-Type: application/json' \
-d \
'{
"serviceAccount":{
},
"apiToken":{
"encrypted":"ENCRYPTED_TOKEN"
},
"type":"TYPE",
"_id":"{id}"
}'
Note: There's no response upon successful execution.
Request
Responses
- 200
- default
OK