Update Metrics Policy
Update the metrics policy
Request
URI
PUT
https://{api_host}/api/v2/metricspolicy
COPY
Request Body
Example Body:
{ "policyRules": [{ "name": "Policy rule1 name", "description": "Policy rule1 description", "prefixes": ["revenue.*"], "tags": [{"key":"sensitive", "value":"false"}, {"key":"source", "value":"app1"}], "tagsAnded": "true", "accessType": "ALLOW", "accounts": ["accountId1", "accountId2"], "userGroups": ["userGroupId1"], "roles": ["roleId"] }, { "name": "Policy rule2 name", "description": "Policy rule2 description", "prefixes": ["revenue.*"], "accessType": "BLOCK", "accounts": ["accountId3"], "userGroups": ["userGroupId1"] }] }
MetricsPolicyWriteModel
of type(s)
application/json
Optional
{
"policyRules": [
{
"accounts": [
"string"
],
"roles": [
"string"
],
"userGroups": [
"string"
],
"name": "string",
"id": "string",
"description": "string",
"tagsAnded": false,
"tags": [
{
"key": "string",
"value": "string"
}
],
"prefixes": [
"string"
],
"accessType": "string"
}
],
"updatedEpochMillis": 0,
"customer": "string",
"updaterId": "string"
}
array of
object
policyRules
Optional
The policy rules of the metrics policy
integer As int64
As int64
updatedEpochMillis
Optional
The date time of the metrics policy update
string
customer
Optional
The customer identifier of the metrics policy
string
updaterId
Optional
The id of the metrics policy updater
Responses
200
successful operation
Returns
ResponseContainerMetricsPolicyReadModel
of type(s)
application/json
"ResponseContainerMetricsPolicyReadModel Object"
object
status
Required
status
object
response
Optional
Metrics policy entity for read requests.
Code Samples
COPY
curl -X PUT -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{}' https://{api_host}/api/v2/metricspolicy