Skip to main content

PATCH /metrics_service/subscriptions/{id}

Use this method to modify properties for a specific metrics forwarder.

Authentication

Authentication with username and password is required.

Request URL

PATCH https://{management_server_IP}/metrics_service/subscriptions/{id}

where {id} is the ID of the metrics forwarder (subscription). To obtain the forwarder IDs, use GET /metrics_service/subscriptions.

Query parameters

None

Request body

ParameterRequired / OptionalTypeDescription
descriptionOptionalStringDescription for the metrics forwarder
enableOptionalBooleanIndicates whether the metrics forwarder is enabled. This can be one of the following values.
  • true. (default) The metrics forwarder is enabled.
  • false. The metrics forwarder is disabled.
The following example enables and changes the description for a metrics forwarder.
{
"description": "Metrics subscription",
"enable": "true"
}

Response codes

CodeDescriptionComments
200OKThe request completed successfully.
404Not foundA specified resource cannot be found. A descriptive error message is returned in the response body.
500Internal Server ErrorAn internal error occurred. A descriptive error message is returned in the response body.

Response body

None