import osfrom gcore import Gcoreclient = Gcore( api_key=os.environ.get("GCORE_API_KEY"), # This is the default and can be omitted)client.cloud.security_groups.copy( group_id="group_id", project_id=0, region_id=0, name="some_name",)
Firewalls
Create a deep copy of security group
POST
/
cloud
/
v1
/
securitygroups
/
{project_id}
/
{region_id}
/
{group_id}
/
copy
Python
Copy
Ask AI
import osfrom gcore import Gcoreclient = Gcore( api_key=os.environ.get("GCORE_API_KEY"), # This is the default and can be omitted)client.cloud.security_groups.copy( group_id="group_id", project_id=0, region_id=0, name="some_name",)