Compute

Attach a security group to a VM

Apply a security group's firewall rules to a VM. Ensure tcp/22 is allowed if you need SSH (the built-in "allow-ssh" group covers it).

post/agent/compute/vms/{id}/firewall/{groupId}

Request

  • Base URL: https://edge.network
  • URL: https://edge.network/agent/compute/vms/{id}/firewall/{groupId}
  • Auth: HTTP bearer

Path parameters

idstring required

VM id.

groupIdstring required

Security group id.

Headers

X-Dry-Run'true' | 'false'

Set to "true" to preview the operation (validation, cost, plan) without making changes.

Idempotency-Keystring

Unique key for safe retries. Repeating a request with the same key returns the original response instead of re-executing.

Response

Success.

tell_userstring required

Human-readable summary of what happened, for the agent to relay to its operator.

Changes

No recorded changes to this operation across all 1 revision of this API.