Assign Agent Private Cloud (APC) to an Agent
Payload Example
if "apc_id" in apc_create_response:
apc_assign_payload = {
"groc_account_id": "your_account_id",
"agent_uuid": register_payload["agent_uuid"], # Use the agent_uuid from the registration payload
"apc_id": apc_create_response["apc_id"], # Use the APC ID from the creation response
"agent_type": "gateway"
}Example Code
# Assign an agent to the APC
if "apc_id" in apc_create_response:
apc_assign_payload = {
"groc_account_id": "your_account_id",
"agent_uuid": register_payload["agent_uuid"], # Use the agent_uuid from the registration payload
"apc_id": apc_create_response["apc_id"], # Use the APC ID from the creation response
"agent_type": "gateway"
}
apc_assign_response = agent.apc_agent_assign(apc_assign_payload)
print("APC Agent Assignment Response:", apc_assign_response)
else:
print("APC Creation failed. Cannot assign agent to APC.")
Example Response
Last updated