Getting partner enablement state
To get partner enablement state
Request
context.tenant_id and pass it to your service to check whether it is currently enabled.The callback request will:
Specify the
cti.a.p.acgw.callback.v2.0~a.p.partner.mirroring.get_state.v1.0callback identifier.Specify the
cti.a.p.acgw.request.v1.1~a.p.partner.mirroring.get_state.v1.0request type.Omit the
payloadfield.
Example
{
"type": "cti.a.p.acgw.request.v1.1~a.p.partner.mirroring.get_state.v1.0",
"request_id": "14ba57f7-b28c-4e5f-b1ae-55eba40a8502",
"created_at": "2024-05-17T13:46:29.362Z",
"context": {
"callback_id": "cti.a.p.acgw.callback.v2.0~a.p.partner.mirroring.get_state.v1.0",
"endpoint_id": "cti.a.p.acgw.endpoint.v1.0~wasabi_technologies.wasabi_qa.endpoint.v1.0",
"tenant_id": "9ae2aada-2342-4fc0-8d92-007b597a7d9c",
"datacenter_url": "https://eu8.acronis.cloud"
},
"payload": {}
}
Response
The callback response code must be 200, and the response body must:
Specify the
cti.a.p.acgw.response.v1.1~a.p.partner.mirroring.get_state.ok.v1.0response type.Include the
payloadfield with thestatefield set to the corresponding enablement status. Optionally, if your CyberApp defines UI fields with Field type set to Additional settings, it may include thesettingsobject, where the key is the ID of the field and the value is the user-provided value.
If the CyberApp was not previously enabled, the payload field must include the state field set to DISABLED.
Example (without settings)
{
"type": "cti.a.p.acgw.response.v1.1~a.p.partner.mirroring.get_state.ok.v1.0",
"request_id": "14ba57f7-b28c-4e5f-b1ae-55eba40a8502",
"response_id": "cd03f831-8437-44eb-adea-094749e24f5f",
"payload": {
"state": "DISABLED"
}
}
Example (with settings)
{
"type": "cti.a.p.acgw.response.v1.1~a.p.partner.mirroring.get_state.ok.v1.0",
"request_id": "14ba57f7-b28c-4e5f-b1ae-55eba40a8502",
"response_id": "cd03f831-8437-44eb-adea-094749e24f5f",
"payload": {
"state": "DISABLED",
"settings": {
"field1_id": "value1",
"field2_id": "value2"
}
}
}
If the CyberApp was already enabled, the payload field must include the state field set to ENABLED.
Example
{
"type": "cti.a.p.acgw.response.v1.1~a.p.partner.mirroring.get_state.ok.v1.0",
"request_id": "14ba57f7-b28c-4e5f-b1ae-55eba40a8502",
"response_id": "cd03f831-8437-44eb-adea-094749e24f5f",
"payload": {
"state": "ENABLED"
}
}