Skip to content

Update Credentials

URL:
https://<root>/usagestatistics/update/credentials
Methods:
POST
Required Capability:
Access allowed only with the default administrator role
Version Introduced:
10.9

Description

The update/credentials operation updates the credentials for the metrics API. Initially, system-generated credentials are created and used to access the metrics API. It is recommended that administrators update these credentials once the organization is configured.

Request parameters

ParameterDetails

resource

Specifies the updated credentials should be applied to the metrics API (prometheus).

Values: prometheus

password

The new password for the metrics API. The new password must be a minimum of eight characters and contain at least one letter (A-Z, a-z), one number (0-9), and one special character.

Example
Use dark colors for code blocksCopy
1
password=metrics.pass1

Example usage

The following is a sample POST request for the update/credentials operation:

Use dark colors for code blocksCopy
1
2
3
4
5
6
POST /<context>/usagestatistics/update/credentials HTTP/1.1
Host: organization.example.com
Content-Type: application/x-www-form-urlencoded
Content-Length: []

resource=prometheus&password=metrics.pass1&token=tAn8XQKKU5HhvrvxFmM5_3Yb3qdXwPM4NZID92K0IfxRBf95GKvrHdzd2Euzbi-6OzRHWpYIqIrs0oNHqYkk9cvz4Hx_hlQ1A7ClYGkMlL4YdA-fQMX7YL-0-p4j70KJeVI6tL94sAjZQbrS-b1VN3E5GG6oyhbGGzqvjEQYYGy47m495iZw8kXiSFwWP1FBbyLaJoK2JSMLOpMeg7CqbuyIRLmveFZ0AbJ95_CUb9V_WyYTC4PDkSLv1SKn21TE

JSON Response example

Use dark colors for code blocksCopy
1
{"status": "success"}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.