Create Agent Private Cloud (APC)
Payload Example
apc_create_payload = {
"groc_account_id": "your_account_id",
"apc_name": "New APC 3", # Use a unique name
"apc_category": "private",
"apc_description": "A new APC for testing",
"status": "active",
"apc_tags": "test,apc",
"gateway_agent_uuid": register_payload["agent_uuid"], # Use the agent_uuid from the registration payload
"agentwall_id": "agentwall_123",
"signing_public_key": "your_signing_public_key",
"encr_public_key": "your_encr_public_key"
}
Example Code
# Create an APC
apc_create_payload = {
"groc_account_id": "your_account_id",
"apc_name": "New APC 3", # Use a unique name
"apc_category": "private",
"apc_description": "A new APC for testing",
"status": "active",
"apc_tags": "test,apc",
"gateway_agent_uuid": register_payload["agent_uuid"], # Use the agent_uuid from the registration payload
"agentwall_id": "agentwall_123",
"signing_public_key": "your_signing_public_key",
"encr_public_key": "your_encr_public_key"
}
apc_create_response = agent.apc_create(apc_create_payload)
print("APC Creation Response:", apc_create_response)
Example Response
Agent APC created: {'apc_id': '0a2c8913-88fc-4441-ac7e-ac726d5b8779', 'message': 'APC created successfully!'}
Last updated