Skip to main content
POST
/
v1
/
firewalls
/
{id}
/
associate
Associate firewall
curl --request POST \
  --url https://console.gmicloud.ai/api/v1/firewalls/{id}/associate \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "instances": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ],
  "instanceType": "baremetal"
}
'
{
  "result": "container 12345678-1234-2234-3234-xxxxxxxxxxxxxx has been restarted"
}

Documentation Index

Fetch the complete documentation index at: https://docs.gmicloud.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string<uuid>
required

Body

application/json
instances
string<uuid>[]
required
instanceType
enum<string>
default:baremetal
Available options:
baremetal,
container

Response

An action completed successfully

result
string
required