Enter your keyword

post

Update Cloud Storage User password for Oracle API CS

There is a requirement where we need to update the storage cloud password in API CS. In the previous article, we showcased how to update the DBaaS Cloud storage password.

If the API CS is using the same DBaaS cloud storage the same needs to be updated in API CS also.

We’ll show how to use the REST API to update the Credentials. Below is the REST service details to update the password:

URL:


Note:

cloud-account-nameneed to be replaced by could account name
identityDomainId:Replace by identity domain of API CS
Service-name:Replace the name of service
Headers:

Name
Value
X-ID-TENANT-NAME
< identityDomainId>
Content-Type
application/json
Authorization
Basic <username>:<password>
Username & password must be of Cloud administrator
Body:

{
                “username” : “<cloud-storage-user>”,
                “password” : “<cloud- storage-password>”
}
Response:

{
    “status”: “submitted job”
}
Curl command

curl -X POST
  https://psm-<cloud-account-name>.console.oraclecloud.com/paas/api/v1.1/instancemgmt/{ identityDomainId}/services/APICS/instances/{service-name}/credentials/crednames/storagecred
  -H ‘authorization: Basic sdsdsddsdWEEWE122121cdsdsd233DFfdfdfdffdffdfd=’
  -H ‘content-type: application/json’
    -H ‘x-id-tenant-name: –<cloud-account-name>’
  -d ‘{
                “username” : “<cloud-storage-user>”,
                “password” : “<cloud- storage-password> “
}’
Or

curl -v -X POST -u ‘<cloud-admin-user>:<cloud-admin-password>’ -H ‘X-ID-TENANT-NAME:< identityDomainId >‘ -H ‘Content-Type:application/json’ -d ‘{ “username” : “<cloud-storage-user>”,“password” : “<cloud-storage-password>” }’ https://psm-<cloud-account-name>.console.oraclecloud.com/paas/api/v1.1/instancemgmt/{identityDomainId }/services/APICS/instances/{service-name}/credentials/crednames/storagecred

One Comment

Leave a Reply

Your email address will not be published.