You can generate a preview before performing the actual configuration change.
The preview tells you:
The preview is not supported for tags and properties.
The request consumes an application/json payload.
| POST | SaaS | https://{your-environment-id}.live.dynatrace.com/api/v2/oneagents/remoteConfigurationManagement/preview |
| Environment ActiveGateCluster ActiveGate | https://{your-activegate-domain}:9999/e/{your-environment-id}/api/v2/oneagents/remoteConfigurationManagement/preview |
To execute this request, you need an access token with oneAgents.write scope.
To learn how to obtain and use it, see Tokens and authentication.
| Parameter | Type | Description | In | Required |
|---|---|---|---|---|
| body | Remote | JSON body of the request, containing remote configuration management job definition. | body | required |
RemoteConfigurationManagementOperationOneAgentRequest objectRemote configuration management operation creation request.
| Element | Type | Description | Required |
|---|---|---|---|
| entities | string[] | A list of entities IDs for which remote configuration management is to be executed. | required |
| operations | Remote | A list of remote configuration management operations to be executed. | required |
RemoteConfigurationManagementOperation objectDefinition of a single remote configuration management operation.
| Element | Type | Description | Required |
|---|---|---|---|
| attribute | string | The attribute which is affected by the operation.
| required |
| operation | string | The operation performed on given attribute.
| required |
| value | string | The value which should be assigned to given attribute. | optional |
This is a model of the request body, showing the possible elements. It has to be adjusted for usage in an actual request.
{"entities": ["HOST-D454A967666E7970","HOST-811760CFF2A5E872"],"operations": [{"attribute": "networkZone","operation": "set","value": "exampleNetworkZoneName"}]}
| Code | Type | Description |
|---|---|---|
| 200 | Remote | Success |
| 400 | Remote | Failed. The input is invalid. |
| 422 | - | Endpoint was executed for not supported operation type |
| 4XX | Error | Client side error. |
| 5XX | Error | Server side error. |
RemoteConfigurationManagementPreviewList objectA list of remote configuration management jobs previews.
| Element | Type | Description |
|---|---|---|
| previews | Remote | A list of remote configuration management jobs previews. |
RemoteConfigurationManagementJobPreview objectA preview of remote configuration management job.
| Element | Type | Description |
|---|---|---|
| alreadyConfiguredEntitiesCount | integer | The number of entities that are currently configured as defined by remote configuration management operation. |
| attribute | string | The attribute which is affected by the operation.
|
| operation | string | The operation performed on given attribute.
|
| targetEntitiesCount | integer | The number of entities that will be configured as defined by remote configuration management after it is completed. |
| value | string | The value which should be assigned to given attribute. |
{"previews": [{"alreadyConfiguredEntitiesCount": 1,"attribute": "networkZone","operation": "set","targetEntitiesCount": 2,"value": "exampleNetworkZoneName"}]}