Update trust relationship
Updates a trust relationship.
Path parameters
-
Identifier for the trust relationship
Body Required
The trust relationship definition
-
name string
A name for the trust relationship
-
trust_by_default boolean
If this relationship is trusted by default by all deployments in the current environment.
-
account_ids array[string]
The ID of the accounts to trust by this relationship.
-
public_ca_cert string
The public CA certificate of the environment to trust
-
installation_id string
The installation ID of the environment to trust
PUT
/platform/configuration/trust-relationships/{trust_relationship_id}
curl \
-X PUT https://{{hostname}}/api/v1/platform/configuration/trust-relationships/{trust_relationship_id} \
-d '{"name":"string","trust_by_default":true,"account_ids":["string"],"public_ca_cert":"string","installation_id":"string"}'
Request examples
{
"name": "string",
"trust_by_default": true,
"account_ids": [
"string"
],
"public_ca_cert": "string",
"installation_id": "string"
}
Response examples (200)
# Headers
x-cloud-resource-version: string
x-cloud-resource-created: string
x-cloud-resource-last-modified: string
# Payload
{
"id": "string",
"name": "string",
"trust_by_default": true,
"account_ids": [
"string"
],
"local": true,
"installation_id": "string"
}
Response examples (400)
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}
Response examples (401)
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}
Response examples (404)
# Headers
x-cloud-error-codes: trust_relationships.not_found
# Payload
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}