Network Management/Network Resources/Distributed Port Group Related Interfaces
PUTDistributed Port Group Related InterfacesSince 4.2.0SynchronousAuth Required
UpdatePortGroup
UpdatePortGroup
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Path Parameters
Request Inputs
Path Parameters
uuidStringRequiredThe resource UUID.
Body Fields
updateportgroupObjectRequiredupdateportgroup request body object.
nameStringThe resource name.
descriptionStringOptional. The detailed description of the resource.
dnsDomainStringOptional. The DNS domain.
categoryStringOptional. The network type. It must be used with the system tag. When system is true, it can be set to Public or Private.
systemBooleanOptional. Whether it is used for a system Virtual Machine.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
PUT/zstack/v1/l3-networks/port-group/{uuid}/actions
/zstack/v1/l3-networks/port-group/{uuid}/actions
Request Example
curl -X PUT 'http://{host}/zstack/v1/l3-networks/port-group/{uuid}/actions' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"updateportgroup":{"name":"<name>","description":"<description>","dnsDomain":"<dnsDomain>","category":"<category>","system":true},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "vSwitchUuid": "d0d6d19b51ef3ec18b9607a51ac8fa47", "vlanMode": "ACCESS", "vlanId": 100, "uuid": "20f61c97cf2e32e58bed3812144de79d", "name": "port-group-1", "description": "Test", "type": "portGroup", "zoneUuid": "231b37f483e93801bad53885c1fe3cdb", "l2NetworkUuid": "60cbdcfee56831cdb8324aa7d9797032", "state": "Enabled", "system": false, "category": "Private", "enableIPAM": false } }Change History
This API has no change history records yet.
