Publishing a decision service
You can select which decision service to publish by using the automation service registration API (ASRA). You can also use ASRA to unpublish it.
Publishing a decision service
Use the following endpoint URI to publish a decision service as an automation service.
The automationServiceId and automationServiceVersionedId
metadata are added to the decision service.
-PUT https://<zen_hostname>:<zen_port>/ads/asra/api/v1/deploymentSpaces/{deploymentSpaceId}/decisions/{decisionId}
- <zen_hostname> is the hostname where ASRA is deployed.
- <zen_port> is the port where ASRA is deployed.
| Parameter | Mandatory or optional | Description |
|---|---|---|
| deploymentSpaceId | Mandatory | URL encoded identifier that uniquely identifies the place where a decision was deployed. |
| decisionId | Mandatory | URL encoded identifier that uniquely identifies a decision to execute. |
| automationServiceId (request body) | Mandatory | Automation service ID of the decision service. It is added as metadata to the decision service. |
| automationServiceVersionedId (request body) | Mandatory | Automation service versioned ID of the decision service. It is added as metadata to the decision service. |
For more information, see the PUT
/deploymentSpaces/{deploymentSpaceId}/decisions/{decisionId} method in the Automation
service registration REST API reference in Reference.
Unpublishing a decision service
Use the following endpoint URI to unpublish a decision service.
The automationServiceId and automationServiceVersionedId
metadata are removed from the decision service.
-DELETE https://<server>:<port>/ads/asra/api/v1/deploymentSpaces/{deploymentSpaceId}/decisions/{decisionId}
| Parameter | Mandatory or optional | Description |
|---|---|---|
| deploymentSpaceId | Mandatory | URL encoded identifier that uniquely identifies the place where a decision was deployed. |
| decisionId | Mandatory | URL encoded identifier that uniquely identifies a decision to execute. |
For more information, see the DELETE
/deploymentSpaces/{deploymentSpaceId}/decisions/{decisionId} method in the Automation
service registration REST API reference in Reference.