Resource Center/Network Service/Network Service Operations/IPsec Operations
PUTIPsec OperationsSince 2.3SynchronousAuth Required
ChangeIPSecConnectionState
ChangeIPSecConnectionState
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
changeipsecconnectionstateObjectRequiredchangeipsecconnectionstate request body object.
stateEventStringRequired状态事件。
systemTagsListOptional. The system tags.
userTagsListOptional. The user tags.
Responses
Endpoint
PUT/zstack/v1/ipsec/{uuid}/actions
/zstack/v1/ipsec/{uuid}/actions
Request Example
curl -X PUT 'http://{host}/zstack/v1/ipsec/{uuid}/actions' -H 'Authorization: OAuth {sessionUuid}' -H 'Content-Type: application/json;charset=UTF-8' -d '{"changeipsecconnectionstate":{"stateEvent":"<stateEvent>"},"systemTags":["<systemTags>"],"userTags":["<userTags>"]}'
Response Example
200{ "inventory": { "uuid": "13b5a2cd8c5c30a9a47ba95802cf4e1a", "name": "IPSec-1", "state": "Enabled", "ikeLifeTime": 0.0, "lifeTime": 0.0 } }Change History
This API has no change history records yet.
