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.
Changes
No recorded changes to this operation across all 1 revision of this API.