Attach a List of Security Groups to a Server or NIC
To attach a list of NSGs to a server, you need to use the following Cloud API PUT
request providing the datacenterId
,serverId
and the IDs of the security groups in the body:
PUT /datacenters/{datacenterId}/servers/{serverId}/securitygroups
Similarly for a NIC, provide the datacenterId
, nicId
and the IDs of the security groups in the body:
PUT /datacenters/{datacenterId}/servers/{serverId}/nic/{nicId}/securitygroups
Request
Response
200 Accepted
Last updated
Was this helpful?