Python
from gcore import Gcore client = Gcore( api_key="My API Key", ) client.cloud.instances.assign_security_group( instance_id="instance_id", project_id=0, region_id=0, )
Assign the security group to the server. To assign multiple security groups to all ports, use the NULL value for the port_id field
port_id
Show child attributes
Was this page helpful?