Change a cloud account
Changes the name, role ARN, directory id or regions, or gives a
portvMind application credential (credential_id and
credential_secret). The secret is stored encrypted and never
returned; reads show has_secret. A changed role is read at once,
but not within two minutes of the last read.
Requires the identity:cloudaccount:write scope.
Authorization
Parameters
Path parameters
idstring requiredThe cloud account's ID.
Request body required
namestringrole_arnstringtenant_idstringcredential_idstringcredential_secretstringregionsarray of string
Responses
200
The cloud account.
dataCloudConnectionShow CloudConnection properties
idstringsource_idstringenvironment_idstringproviderstringnamestringrole_arnstringtenant_idstringcredential_idstringhas_secretbooleanexternal_idstringOurs, random and unique. Empty withoutidentity:cloudaccount:write.regionsarray of stringEmpty means every region the account has enabled.account_idstringstatusstringlast_errorstringdeniedarray of stringServices the access did not let it read on the last read. Not a failure.last_polled_atstring (date-time) | nullnext_poll_atstring (date-time)created_bystringcreated_atstring (date-time)updated_atstring (date-time)
400
The request is not valid: a field or filter value is wrong
(VALIDATION_ERROR, with a sentence saying what), the body is not
the expected JSON or carries an unknown field (INVALID_BODY), the
cursor is not one this list gave (INVALID_CURSOR), a binding names
a service that does not exist (UNKNOWN_COMPONENT), or a PATCH
tries to change a slug (SLUG_IMMUTABLE).
errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
401
No API key was sent, or it is unknown, revoked or expired (UNAUTHORIZED).
errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
403
The key lacks a scope this endpoint needs (FORBIDDEN).
errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
404
Nothing with this ID (or slug) exists in the organization (NOT_FOUND).
errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
409
Another one already has this name (NAME_TAKEN).
errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
429
Too many requests (RATE_LIMITED). Wait for Retry-After seconds.
Retry-AfterintegerSeconds to wait before retrying.
errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
500
Something went wrong on EvoHub's side (INTERNAL_ERROR). Retry later.
errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
503
Cloud accounts for this provider cannot be connected on this EvoHub (CLOUD_NOT_CONFIGURED).
errorobject requiredcodestring requiredmessagestring requiredrequest_idstring
Example request
curl -X PATCH 'https://evohub.io/api/v1/catalog/connections/con_7d9f1b3a5c7e9a2c4e6b8d0f2a4c6e8b' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"role_arn": "arn:aws:iam::123456789012:role/EvoHubCatalogReadOnly"
}'
