Resource Center/Network Service/Network Service Operations/Security Group Operations
POSTSecurity Group OperationsSince 0.6SynchronousAuth Required
AttachSecurityGroupToL3Network
AttachSecurityGroupToL3Network
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Path Parameters
Request Inputs
Path Parameters
securityGroupUuidStringRequiredThe security group UUID.
l3NetworkUuidStringRequiredThe L3 network UUID.
Body Fields
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
POST/zstack/v1/security-groups/{securityGroupUuid}/l3-networks/{l3NetworkUuid}
/zstack/v1/security-groups/{securityGroupUuid}/l3-networks/{l3NetworkUuid}
Request Example
curl -X POST 'http://{host}/zstack/v1/security-groups/{securityGroupUuid}/l3-networks/{l3NetworkUuid}' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "uuid": "5870eab620d2487d8d0320eabe185718", "name": "web", "description": "for test", "state": "Enabled", "createDate": "Jun 7, 2017 9:20:28 PM", "lastOpDate": "Jun 7, 2017 9:20:28 PM", "internalId": 0 } }Change History
This API has no change history records yet.
