Resource Center/Network Service/Network Service Operations/Port Forwarding Operations
PUTPort Forwarding OperationsSince 0.6SynchronousAuth Required
ChangePortForwardingRuleState
ChangePortForwardingRuleState
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
changeportforwardingrulestateObjectRequiredchangeportforwardingrulestate request body object.
stateEventStringRequiredThe state of the port forwarding rule.
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
PUT/zstack/v1/port-forwarding/{uuid}/actions
/zstack/v1/port-forwarding/{uuid}/actions
Request Example
curl -X PUT 'http://{host}/zstack/v1/port-forwarding/{uuid}/actions' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"changeportforwardingrulestate":{"stateEvent":"<stateEvent>"},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "uuid": "59d724e1f8e8417693fbc14d124ce801", "name": "TestAttachRule", "description": "test atatch rule", "vipIp": "192.168.0.187", "guestIp": "10.0.0.244", "vipUuid": "f9c5cbc8662d43408dc704003d4f70ad", "vipPortStart": 33.0, "vipPortEnd": 33.0, "privatePortStart": 33.0, "privatePortEnd": 33.0, "vmNicUuid": "1b41288698ac45149f352ab6c8de2531", "protocolType": "TCP", "state": "Enabled", "allowedCidr": "0.0.0.0/0", "createDate": "Jun 7, 2017 9:20:26 PM", "lastOpDate": "Jun 7, 2017 9:20:26 PM" } }Change History
This API has no change history records yet.
