Update Metrics Policy

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"
}
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

Authentication
This operation uses the following authentication methods.
Responses
200

successful operation

Returns ResponseContainerMetricsPolicyReadModel of type(s) application/json
{
    "status": {
        "result": "string",
        "message": "string",
        "code": 0
    },
    "response": {
        "policyRules": [
            {
                "accounts": [
                    {
                        "name": "string",
                        "id": "string",
                        "description": "string"
                    }
                ],
                "userGroups": [
                    {
                        "name": "string",
                        "id": "string",
                        "description": "string"
                    }
                ],
                "roles": [
                    {
                        "name": "string",
                        "id": "string",
                        "description": "string"
                    }
                ],
                "name": "string",
                "id": "string",
                "description": "string",
                "tagsAnded": false,
                "tags": [
                    {
                        "key": "string",
                        "value": "string"
                    }
                ],
                "prefixes": [
                    "string"
                ],
                "accessType": "string"
            }
        ],
        "updatedEpochMillis": 0,
        "customer": "string",
        "updaterId": "string"
    }
}
status
Required

status

response
Optional

response