• Elastic Cloud Server

ecs
  1. Help Center
  2. Elastic Cloud Server
  3. API Reference
  4. Appendix
  5. API Permissions
  6. Security Group Management

Security Group Management

API

API Function

Permissions

POST /v2/{tenant_id}/os-security-groups

Creates a security group (native OpenStack API).

  • ecs:securityGroups:use
  • vpc:securityGroups:get
  • vpc:securityGroups:create
  • vpc:securityGroups:update

DELETE /v2/{tenant_id}/os-security-groups/{security_group_id}

Deletes a security group (native OpenStack API).

  • ecs:securityGroups:use
  • vpc:securityGroups:get
  • vpc:securityGroups:delete
  • vpc:securityGroups:update

GET /v2/{tenant_id}/os-security-groups/{security_group_id}

Queries security group details (native OpenStack API).

  • ecs:securityGroups:use
  • vpc:securityGroups:get

GET /v2/{tenant_id}/os-security-groups

Queries security groups (native OpenStack API).

  • ecs:securityGroups:use
  • vpc:securityGroups:get

POST /v2/{tenant_id}/os-security-group-rules

Creates a security group rule (native OpenStack API).

  • ecs:securityGroups:use
  • vpc:securityGroups:get
  • vpc:securityGroups:update
  • vpc:securityGroupRules:get
  • vpc:securityGroupRules:create

DELETE /v2/{tenant_id}/os-security-group-rules/{security_group_rule_id}

Deletes a security group rule (native OpenStack API).

  • ecs:securityGroups:use
  • vpc:securityGroups:get
  • vpc:securityGroups:update
  • vpc:securityGroupRules:get
  • vpc:securityGroupRules:delete

PUT /v2/{tenant_id}/os-security-groups/{security_group_id}

Updates information about a security group (native OpenStack API).

  • ecs:securityGroups:use
  • vpc:securityGroups:get
  • vpc:securityGroups:update

GET /v2/{tenant_id}/servers/{server_id}/os-security-groups

Queries security groups to which an ECS belongs (native OpenStack API).

  • ecs:securityGroups:use
  • vpc:securityGroups:get

POST /v2/{tenant_id}/servers/{server_id}/action

Adds a security group (native OpenStack API).

  • ecs:securityGroups:use
  • ecs:servers:get
  • vpc:securityGroups:get
  • vpc:securityGroups:create
  • vpc:securityGroups:update
  • vpc:ports:get
  • vpc:ports:update

POST /v2/{tenant_id}/servers/{server_id}/action

Removes a security group (native OpenStack API).

  • ecs:securityGroups:use
  • ecs:servers:get
  • vpc:securityGroups:get
  • vpc:securityGroups:delete
  • vpc:securityGroups:update
  • vpc:ports:get
  • vpc:ports:update