Responses
-
Telemetry configuration updated successfully
-
User must have Platform level permissions. (code:
root.unauthorized.rbac
) -
The telemetry configuration did not exist so there was an attempt to create one. Another request resulted in the creation of a telemetry configuration before this request completed, resulting in the failure of this request to create a configuration. Please retry. (code:
telemetry.already_exists
) -
Failed to set the configuration due to an internal server error. (code:
telemetry.request_execution_failed
)
PUT /phone-home/config
curl \
-X PUT https://{{hostname}}/api/v1/phone-home/config \
-d '{"enabled":true}'
Request examples
{
"enabled": true
}
Response examples (200)
{
"enabled": true
}
Response examples (403)
# Headers
x-cloud-error-codes: root.unauthorized.rbac
# Payload
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}
Response examples (409)
# Headers
x-cloud-error-codes: telemetry.already_exists
# Payload
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}
Response examples (500)
# Headers
x-cloud-error-codes: telemetry.request_execution_failed
# Payload
{
"errors": [
{
"code": "string",
"message": "string",
"fields": [
"string"
]
}
]
}