Updating Monitoring System Configurations
Function
This API is used to update monitoring system configurations.
URI
PUT /v1/{project_id}/cae/monitor-system/{monitor_system_id}
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID. See Obtaining a Project ID. |
monitor_system_id |
Yes |
String |
Monitoring system configuration ID. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
User token.
Maximum characters: 16,384 |
X-Enterprise-Project-ID |
No |
String |
Enterprise project ID.
NOTE:
For more information about enterprise projects and how to obtain enterprise project IDs, see Enterprise Management User Guide. |
X-Environment-ID |
Yes |
String |
Environment ID.
|
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
api_version |
No |
String |
API version. Fixed value: v1. Enumerated value:
|
kind |
No |
String |
API type. Fixed value: MonitorSystem. Enumerated value:
|
spec |
No |
MonitorSystemRequestBodySpec object |
Created or updated monitoring system configurations. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
type |
Yes |
String |
Collection mode. Enumerated value:
|
instrumentation |
Yes |
String |
Agent injection mode. Enumerated values:
|
access_key |
No |
String |
APM 2.0 access key. |
access_value |
No |
String |
APM 2.0 access key value. |
access_token |
No |
String |
APM 2.0 token. |
apm_application |
Yes |
String |
APM 2.0 application. |
version |
Yes |
String |
Enhanced Agent version. |
image_pull_policy |
Yes |
String |
Agent image update policy. Enumerated values:
|
Response Parameters
None
Example Request
Update monitoring system configurations.
PUT https://{endpoint}/v1/{project_id}/cae/monitor-system/{monitor_system_id} { "api_version" : "v1", "kind" : "MonitorSystem", "spec" : { "type" : "apm2", "access_key" : "******", "access_value" : "******", "master_address" : "https://10*.**.**.96:443", "apm_application" : "default", "image_pull_policy" : "Always", "version" : "1.32.0.14", "instrumentation" : "automatic" } }
Example Response
None
Status Code
Status Code |
Description |
---|---|
204 |
The request is successful. |
Error Code
For details, see Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot