Patch a metrics-configuration item

patch/compute-ops-mgmt/v1/metrics-configurations/{id}

Partially update a metrics-configuration item

SecurityBearer
Request
path Parameters
id
required
string <uuid>
header Parameters
Content-Type
required
string

Content-Type header must designate 'application/merge-patch+json' in order for the request to be performed.

Value: "application/merge-patch+json"
Tenant-Acid
string <uuid>

Tenant-Acid header can be used by an MSP workspace to make API calls on behalf of their tenant by specifying the tenant's application customer ID.

In order to make such an API call, the Bearer token must belong to an MSP workspace and this header value must be the application customer ID of a tenant within the MSP workspace. Use the /compute-ops-mgmt/v1beta1/accounts API to determine the application customer IDs for your tenant accounts.

Request Body schema: application/merge-patch+json
required
metricsCollection
string

Metrics collection method to indicate if the metrics collection is scheduled or generated on demand.

Enum: "SYSTEM_SCHEDULED" "ON_DEMAND"
Responses
200

Successful Response

400

Bad request

401

Unauthorized

403

Forbidden

404

Not found

406

Not acceptable

415

Unsupported media type

500

Internal server error

Request samples
application/merge-patch+json
{
  • "metricsCollection": "SYSTEM_SCHEDULED"
}
Response samples
application/json
{
  • "id": "b870f080-6448-48c5-b23a-d04f2d489174",
  • "type": "compute-ops-mgmt/metrics-configuration",
  • "resourceUri": "/compute-ops-mgmt/v1/metrics-configurations/b870f080-6448-48c5-b23a-d04f2d489174",
  • "metricsCollection": "SYSTEM_SCHEDULED",
  • "generation": 1,
  • "createdAt": "2023-07-07T05:51:02.624513+00:00",
  • "updatedAt": "2023-07-07T05:51:02.624513+00:00"
}