UNPKG

@itentialopensource/adapter-onap_appc

Version:

This adapter integrates with system: sample.

1,395 lines (1,394 loc) 169 kB
{ "openapi": "3.0.0", "info": { "title": "onap_appc", "contact": {}, "version": "1.0" }, "servers": [ { "url": "http://example.com/restconf/operations", "variables": {} } ], "paths": { "/appc-provider-lcm:health-check": { "post": { "tags": [ "Misc" ], "summary": "HealthCheckAppc", "operationId": "HealthCheckAppc", "parameters": [ { "name": "X-TransactionId", "in": "header", "description": "", "required": true, "style": "simple", "schema": { "type": "integer", "format": "int32", "example": 9999 } }, { "name": "X-FromAppId", "in": "header", "description": "", "required": true, "style": "simple", "schema": { "type": "integer", "format": "int32", "example": 121 } }, { "name": "Real-Time", "in": "header", "description": "", "required": true, "style": "simple", "schema": { "type": "boolean", "example": true } } ], "requestBody": { "description": "", "content": { "application/json": { "schema": { "allOf": [ { "$ref": "#/components/schemas/HealthCheckAppcRequest" }, { "example": { "input": { "common-header": { "timestamp": "{{serverDate}}", "api-ver": "2.00", "originator-id": "{{orginatorId}}", "request-id": "Postman", "sub-request-id": "Postman", "flags": { "mode": "NORMAL", "force": "TRUE", "ttl": 36000 } }, "action": "HealthCheck", "action-identifiers": { "vnf-id": "{{vnf-id}}", "vf-module-id": "", "vnfc-name": "", "vserver-id": "" }, "payload": "{\"request-parameters\":{\"vnf-name\":\"{{vnf-name}}\",\"host-ip-address\":\"{{host-ip-address}}\"},\"configuration-parameters\":{\"vnf_name\":\"{{vnf-name}}\"}}" } } } ] }, "example": { "input": { "common-header": { "timestamp": "{{serverDate}}", "api-ver": "2.00", "originator-id": "{{orginatorId}}", "request-id": "Postman", "sub-request-id": "Postman", "flags": { "mode": "NORMAL", "force": "TRUE", "ttl": 36000 } }, "action": "HealthCheck", "action-identifiers": { "vnf-id": "{{vnf-id}}", "vf-module-id": "", "vnfc-name": "", "vserver-id": "" }, "payload": "{\"request-parameters\":{\"vnf-name\":\"{{vnf-name}}\",\"host-ip-address\":\"{{host-ip-address}}\"},\"configuration-parameters\":{\"vnf_name\":\"{{vnf-name}}\"}}" } } } }, "required": true }, "responses": { "200": { "description": "", "headers": {} } }, "deprecated": false } }, "/appc-provider-lcm:config-modify": { "post": { "tags": [ "Misc" ], "summary": "ConfigModify", "operationId": "ConfigModify", "parameters": [ { "name": "X-TransactionId", "in": "header", "description": "", "required": true, "style": "simple", "schema": { "type": "integer", "format": "int32", "example": 9999 } }, { "name": "X-FromAppId", "in": "header", "description": "", "required": true, "style": "simple", "schema": { "type": "integer", "format": "int32", "example": 121 } }, { "name": "Real-Time", "in": "header", "description": "", "required": true, "style": "simple", "schema": { "type": "boolean", "example": true } } ], "requestBody": { "description": "", "content": { "application/json": { "schema": { "allOf": [ { "$ref": "#/components/schemas/ConfigModifyRequest" }, { "example": { "input": { "common-header": { "timestamp": "{{serverDate}}", "api-ver": "2.00", "originator-id": "{{orginatorId}}", "request-id": "Postman", "sub-request-id": "Postman", "flags": { "mode": "NORMAL", "force": "TRUE", "ttl": 36000 } }, "action": "ConfigModify", "action-identifiers": { "vnf-id": "{{vnf-id}}", "vf-module-id": "", "vnfc-name": "", "vserver-id": "" }, "payload": "{\"configuration-parameters\":{\"vnf_name\":\"{{vnf-name}}\",\"targetname\":\"12\",\"timeoutvalue\":\"11\"}}" } } } ] }, "example": { "input": { "common-header": { "timestamp": "{{serverDate}}", "api-ver": "2.00", "originator-id": "{{orginatorId}}", "request-id": "Postman", "sub-request-id": "Postman", "flags": { "mode": "NORMAL", "force": "TRUE", "ttl": 36000 } }, "action": "ConfigModify", "action-identifiers": { "vnf-id": "{{vnf-id}}", "vf-module-id": "", "vnfc-name": "", "vserver-id": "" }, "payload": "{\"configuration-parameters\":{\"vnf_name\":\"{{vnf-name}}\",\"targetname\":\"12\",\"timeoutvalue\":\"11\"}}" } } } }, "required": true }, "responses": { "200": { "description": "", "headers": {} } }, "deprecated": false } }, "/appc-provider-lcm:configure": { "post": { "tags": [ "Misc" ], "summary": "Configure", "operationId": "Configure", "parameters": [ { "name": "X-TransactionId", "in": "header", "description": "", "required": true, "style": "simple", "schema": { "type": "integer", "format": "int32", "example": 9999 } }, { "name": "X-FromAppId", "in": "header", "description": "", "required": true, "style": "simple", "schema": { "type": "integer", "format": "int32", "example": 121 } }, { "name": "Real-Time", "in": "header", "description": "", "required": true, "style": "simple", "schema": { "type": "boolean", "example": true } } ], "requestBody": { "description": "", "content": { "application/json": { "schema": { "allOf": [ { "$ref": "#/components/schemas/ConfigureRequest" }, { "example": { "input": { "common-header": { "timestamp": "{{serverDate}}", "api-ver": "2.00", "originator-id": "{{orginatorId}}", "request-id": "Postman", "sub-request-id": "Postman", "flags": { "mode": "NORMAL", "force": "TRUE", "ttl": 36000 } }, "action": "Configure", "action-identifiers": { "vnf-id": "{{vnf-id}}", "vf-module-id": "", "vnfc-name": "", "vserver-id": "" }, "payload": "{\"request-parameters\":{\"vnf-name\":\"{{vnf-name}}\",\"host-ip-address\":\"{{host-ip-address}}\"},\"configuration-parameters\":{\"vnf_name\":\"{{vnf-name}}\"}}" } } } ] }, "example": { "input": { "common-header": { "timestamp": "{{serverDate}}", "api-ver": "2.00", "originator-id": "{{orginatorId}}", "request-id": "Postman", "sub-request-id": "Postman", "flags": { "mode": "NORMAL", "force": "TRUE", "ttl": 36000 } }, "action": "Configure", "action-identifiers": { "vnf-id": "{{vnf-id}}", "vf-module-id": "", "vnfc-name": "", "vserver-id": "" }, "payload": "{\"request-parameters\":{\"vnf-name\":\"{{vnf-name}}\",\"host-ip-address\":\"{{host-ip-address}}\"},\"configuration-parameters\":{\"vnf_name\":\"{{vnf-name}}\"}}" } } } }, "required": true }, "responses": { "200": { "description": "", "headers": {} } }, "deprecated": false } }, "/appc-provider-lcm:config-scale-out": { "post": { "tags": [ "Misc" ], "summary": "ConfigScaleOut", "operationId": "ConfigScaleOut", "parameters": [ { "name": "X-TransactionId", "in": "header", "description": "", "required": true, "style": "simple", "schema": { "type": "integer", "format": "int32", "example": 9999 } }, { "name": "X-FromAppId", "in": "header", "description": "", "required": true, "style": "simple", "schema": { "type": "integer", "format": "int32", "example": 121 } }, { "name": "Real-Time", "in": "header", "description": "", "required": true, "style": "simple", "schema": { "type": "boolean", "example": true } } ], "requestBody": { "description": "", "content": { "application/json": { "schema": { "allOf": [ { "$ref": "#/components/schemas/ConfigScaleOutRequest" }, { "example": { "input": { "common-header": { "timestamp": "{{serverDate}}", "api-ver": "2.00", "originator-id": "{{orginatorId}}", "request-id": "Postman", "sub-request-id": "Postman", "flags": { "mode": "NORMAL", "force": "TRUE", "ttl": 36000 } }, "action": "ConfigModify", "action-identifiers": { "vnf-id": "{{vnf-id}}", "vf-module-id": "", "vnfc-name": "", "vserver-id": "" }, "payload": "{\"configuration-parameters\":{\"vnf_name\":\"{{vnf-name}}\",\"targetname\":\"12\",\"timeoutvalue\":\"11\"}}" } } } ] }, "example": { "input": { "common-header": { "timestamp": "{{serverDate}}", "api-ver": "2.00", "originator-id": "{{orginatorId}}", "request-id": "Postman", "sub-request-id": "Postman", "flags": { "mode": "NORMAL", "force": "TRUE", "ttl": 36000 } }, "action": "ConfigModify", "action-identifiers": { "vnf-id": "{{vnf-id}}", "vf-module-id": "", "vnfc-name": "", "vserver-id": "" }, "payload": "{\"configuration-parameters\":{\"vnf_name\":\"{{vnf-name}}\",\"targetname\":\"12\",\"timeoutvalue\":\"11\"}}" } } } }, "required": true }, "responses": { "200": { "description": "", "headers": {} } }, "deprecated": false } }, "/appc-provider-lcm:action-status": { "post": { "tags": [ "Misc" ], "summary": "ActionStatus", "description": "The ActionStatus command returns that state of any action request that has been previously submitted to an APPC instance for a specified VNF. This enables the client to know the status of a previous request and helps them decide if they should reissue a request.", "operationId": "ActionStatus", "parameters": [ { "name": "X-TransactionId", "in": "header", "description": "", "required": true, "style": "simple", "schema": { "type": "integer", "format": "int32", "example": 9999 } }, { "name": "X-FromAppId", "in": "header", "description": "", "required": true, "style": "simple", "schema": { "type": "integer", "format": "int32", "example": 121 } }, { "name": "Real-Time", "in": "header", "description": "", "required": true, "style": "simple", "schema": { "type": "boolean", "example": true } } ], "requestBody": { "description": "", "content": { "application/json": { "schema": { "allOf": [ { "$ref": "#/components/schemas/ActionStatusRequest" }, { "example": { "input": { "common-header": { "timestamp": "{{serverDate}}", "api-ver": "2.00", "originator-id": "{{orginatorId}}", "request-id": "Postman", "sub-request-id": "Postman", "flags": { "mode": "NORMAL", "force": "TRUE", "ttl": 36000 } }, "action": "ActionStatus", "action-identifiers": { "vnf-id": "{{vnf-id}}" }, "payload": "{\"request-id\":\"{{request-id}}\",\"sub-request-id\":\"{{sub-request-id}}\",\"originator-id\":\"{{originator-id}}\"}" } } } ] }, "example": { "input": { "common-header": { "timestamp": "{{serverDate}}", "api-ver": "2.00", "originator-id": "{{orginatorId}}", "request-id": "Postman", "sub-request-id": "Postman", "flags": { "mode": "NORMAL", "force": "TRUE", "ttl": 36000 } }, "action": "ActionStatus", "action-identifiers": { "vnf-id": "{{vnf-id}}" }, "payload": "{\"request-id\":\"{{request-id}}\",\"sub-request-id\":\"{{sub-request-id}}\",\"originator-id\":\"{{originator-id}}\"}" } } } }, "required": true }, "responses": { "200": { "description": "", "headers": {} } }, "deprecated": false } }, "/appc-provider-lcm:attach-volume": { "post": { "tags": [ "Misc" ], "summary": "AttachVolume", "description": "The AttachVolume command attaches a cinder volume to a VM via an Openstack command. Cinder is a Block Storage service for OpenStack. It’s designed to present storage resources to end users that can be consumed by the OpenStack Compute Project (Nova). The short description of Cinder is that it virtualizes the management of block storage devices and provides end users with a self service API to request and consume those resources without requiring any knowledge of where their storage is actually deployed or on what type of device. NOTE: The command implementation is based on Openstack functionality. For further details, see http://developer.openstack.org/api-ref/compute/.", "operationId": "AttachVolume", "parameters": [ { "name": "X-TransactionId", "in": "header", "description": "", "required": true, "style": "simple", "schema": { "type": "integer", "format": "int32", "example": 9999 } }, { "name": "X-FromAppId", "in": "header", "description": "", "required": true, "style": "simple", "schema": { "type": "integer", "format": "int32", "example": 121 } }, { "name": "Real-Time", "in": "header", "description": "", "required": true, "style": "simple", "schema": { "type": "boolean", "example": true } } ], "requestBody": { "description": "", "content": { "application/json": { "schema": { "allOf": [ { "$ref": "#/components/schemas/AttachVolumeRequest" }, { "example": { "input": { "common-header": { "timestamp": "{{serverDate}}", "api-ver": "2.00", "originator-id": "{{orginatorId}}", "request-id": "Postman", "sub-request-id": "Postman", "flags": { "mode": "NORMAL", "force": "TRUE", "ttl": 36000 } }, "action": "AttachVolume", "action-identifiers": { "vnf-id": "{{vnf-id}}", "vserver-id": "{{vserver-id}}" }, "payload": "{\"volumeId\":\"{{volumeId}}\",\"device\":\"{{device}}\",\"vm-id\":\"{{vm-id}}\",\"identity-url\":\"{{identity-url}}\"}" } } } ] }, "example": { "input": { "common-header": { "timestamp": "{{serverDate}}", "api-ver": "2.00", "originator-id": "{{orginatorId}}", "request-id": "Postman", "sub-request-id": "Postman", "flags": { "mode": "NORMAL", "force": "TRUE", "ttl": 36000 } }, "action": "AttachVolume", "action-identifiers": { "vnf-id": "{{vnf-id}}", "vserver-id": "{{vserver-id}}" }, "payload": "{\"volumeId\":\"{{volumeId}}\",\"device\":\"{{device}}\",\"vm-id\":\"{{vm-id}}\",\"identity-url\":\"{{identity-url}}\"}" } } } }, "required": true }, "responses": { "200": { "description": "", "headers": {} } }, "deprecated": false } }, "/appc-provider-lcm:audit": { "post": { "tags": [ "Misc" ], "summary": "Audit", "description": "The Audit command compares the configuration of the VNF associated with the current request against the most recent configuration that is stored in APPC’s configuration database. A successful Audit means that the current VNF configuration matches the latest APPC stored configuration. A failed Audit indicates that the configurations do not match. This command can be applied to any VNF type. The only restriction is that the VNF has been onboarded in self-service mode (which requires that the VNF supports a request to return the running configuration). The Audit action does not require any payload parameters. NOTE: Audit does not return a payload containing details of the comparison, only the Success/Failure status.", "operationId": "Audit", "parameters": [ { "name": "X-TransactionId", "in": "header", "description": "", "required": true, "style": "simple", "schema": { "type": "integer", "format": "int32", "example": 9999 } }, { "name": "X-FromAppId", "in": "header", "description": "", "required": true, "style": "simple", "schema": { "type": "integer", "format": "int32", "example": 121 } }, { "name": "Real-Time", "in": "header", "description": "", "required": true, "style": "simple", "schema": { "type": "boolean", "example": true } } ], "requestBody": { "description": "", "content": { "application/json": { "schema": { "allOf": [ { "$ref": "#/components/schemas/AuditRequest" }, { "example": { "input": { "common-header": { "timestamp": "{{serverDate}}", "api-ver": "2.00", "originator-id": "{{orginatorId}}", "request-id": "Postman", "sub-request-id": "Postman", "flags": { "mode": "NORMAL", "force": "TRUE", "ttl": 36000 } }, "action": "Audit", "action-identifiers": { "vnf-id": "{{vnf-id}}" }, "payload": "{\"publish-config\":\"Y\"}" } } } ] }, "example": { "input": { "common-header": { "timestamp": "{{serverDate}}", "api-ver": "2.00", "originator-id": "{{orginatorId}}", "request-id": "Postman", "sub-request-id": "Postman", "flags": { "mode": "NORMAL", "force": "TRUE", "ttl": 36000 } }, "action": "Audit", "action-identifiers": { "vnf-id": "{{vnf-id}}" }, "payload": "{\"publish-config\":\"Y\"}" } } } }, "required": true }, "responses": { "200": { "description": "", "headers": {} } }, "deprecated": false } }, "/appc-provider-lcm:checklock": { "post": { "tags": [ "Misc" ], "summary": "CheckLock", "description": "The CheckLock command returns true if the specified VNF is locked; otherwise, false is returned. A CheckLock command is deemed successful if the processing completes without error, whether the VNF is locked or not. The command returns only a single response with a final status. Note that APPC locks the target VNF during any VNF command processing, so a VNF can have a locked status even if no Lock command has been explicitly called. The CheckLock command returns a specific response structure that extends the default LCM response. The CheckLock action does not require any payload parameters.", "operationId": "CheckLock", "parameters": [ { "name": "X-TransactionId", "in": "header", "description": "", "required": true, "style": "simple", "schema": { "type": "integer", "format": "int32", "example": 9999 } }, { "name": "X-FromAppId", "in": "header", "description": "", "required": true, "style": "simple", "schema": { "type": "integer", "format": "int32", "example": 121 } }, { "name": "Real-Time", "in": "header", "description": "", "required": true, "style": "simple", "schema": { "type": "boolean", "example": true } } ], "requestBody": { "description": "", "content": { "application/json": { "schema": { "allOf": [ { "$ref": "#/components/schemas/CheckLockRequest" }, { "example": { "input": { "common-header": { "timestamp": "{{serverDate}}", "api-ver": "2.00", "originator-id": "{{orginatorId}}", "request-id": "Postman", "sub-request-id": "Postman", "flags": { "mode": "NORMAL", "force": "TRUE", "ttl": 36000 } }, "action": "CheckLock", "action-identifiers": { "vnf-id": "{{vnf-id}}" }, "payload": "{}" } } } ] }, "example": { "input": { "common-header": { "timestamp": "{{serverDate}}", "api-ver": "2.00", "originator-id": "{{orginatorId}}", "request-id": "Postman", "sub-request-id": "Postman", "flags": { "mode": "NORMAL", "force": "TRUE", "ttl": 36000 } }, "action": "CheckLock", "action-identifiers": { "vnf-id": "{{vnf-id}}" }, "payload": "{}" } } } }, "required": true }, "responses": { "200": { "description": "", "headers": {} } }, "deprecated": false } }, "/appc-provider-lcm:config-backup": { "post": { "tags": [ "Misc" ], "summary": "ConfigBackup", "description": "Stores the current VNF configuration on a local file system (not in APPC). This is limited to Ansible and Chef. There can only be one stored configuration (if there is a previously saved configuration, it is replaced with the current VNF configuration). A successful ConfigBackup request returns a success response. A failed ConfigBackup action returns a failure response code and the specific failure message in the response block.", "operationId": "ConfigBackup", "parameters": [ { "name": "X-TransactionId", "in": "header", "description": "", "required": true, "style": "simple", "schema": { "type": "integer", "format": "int32", "example": 9999 } }, { "name": "X-FromAppId", "in": "header", "description": "", "required": true, "style": "simple", "schema": { "type": "integer", "format": "int32", "example": 121 } }, { "name": "Real-Time", "in": "header", "description": "", "required": true, "style": "simple", "schema": { "type": "boolean", "example": true } } ], "requestBody": { "description": "", "content": { "application/json": { "schema": { "allOf": [ { "$ref": "#/components/schemas/ConfigBackupRequest" }, { "example": { "input": { "common-header": { "timestamp": "{{serverDate}}", "api-ver": "2.00", "originator-id": "{{orginatorId}}", "request-id": "Postman", "sub-request-id": "Postman", "flags": { "mode": "NORMAL", "force": "TRUE", "ttl": 36000 } }, "action": "ConfigBackup", "action-identifiers": { "vnf-id": "{{vnf-id}}", "vf-module-id": "", "vnfc-name": "", "vserver-id": "" }, "payload": "{\"configuration-parameters\":{\"vnf_name\":\"{{vnf-name}}\",\"targetname\":\"12\",\"timeoutvalue\":\"11\"}}" } } } ] }, "example": { "input": { "common-header": { "timestamp": "{{serverDate}}", "api-ver": "2.00", "originator-id": "{{orginatorId}}", "request-id": "Postman", "sub-request-id": "Postman", "flags": { "mode": "NORMAL", "force": "TRUE", "ttl": 36000 } }, "action": "ConfigBackup", "action-identifiers": { "vnf-id": "{{vnf-id}}", "vf-module-id": "", "vnfc-name": "", "vserver-id": "" }, "payload": "{\"configuration-parameters\":{\"vnf_name\":\"{{vnf-name}}\",\"targetname\":\"12\",\"timeoutvalue\":\"11\"}}" } } } }, "required": true }, "responses": { "200": { "description": "", "headers": {} } }, "deprecated": false } }, "/appc-provider-lcm:config-restore": { "post": { "tags": [ "Misc" ], "summary": "ConfigRestore", "description": "Applies a previously saved configuration to the active VNF configuration. This is limited to Ansible and Chef. There can only be one stored configuration. A successful ConfigRestore request returns a success response. A failed ConfigRestore action returns a failure response code and the specific failure message in the response block.", "operationId": "ConfigRestore", "parameters": [ { "name": "X-TransactionId", "in": "header", "description": "", "required": true, "style": "simple", "schema": { "type": "integer", "format": "int32", "example": 9999 } }, { "name": "X-FromAppId", "in": "header", "description": "", "required": true, "style": "simple", "schema": { "type": "integer", "format": "int32", "example": 121 } }, { "name": "Real-Time", "in": "header", "description": "", "required": true, "style": "simple", "schema": { "type": "boolean", "example": true } } ], "requestBody": { "description": "", "content": { "application/json": { "schema": { "allOf": [ { "$ref": "#/components/schemas/ConfigRestoreRequest" }, { "example": { "input": { "common-header": { "timestamp": "{{serverDate}}", "api-ver": "2.00", "originator-id": "{{orginatorId}}", "request-id": "Postman", "sub-request-id": "Postman", "flags": { "mode": "NORMAL", "force": "TRUE", "ttl": 36000 } }, "action": "ConfigRestore", "action-identifiers": { "vnf-id": "{{vnf-id}}", "vf-module-id": "", "vnfc-name": "", "vserver-id": "" }, "payload": "{\"configuration-parameters\":{\"vnf_name\":\"{{vnf-name}}\",\"targetname\":\"12\",\"timeoutvalue\":\"11\"}}" } } } ] }, "example": { "input": { "common-header": { "timestamp": "{{serverDate}}", "api-ver": "2.00", "originator-id": "{{orginatorId}}", "request-id": "Postman", "sub-request-id": "Postman", "flags": { "mode": "NORMAL", "force": "TRUE", "ttl": 36000 } }, "action": "ConfigRestore", "action-identifiers": { "vnf-id": "{{vnf-id}}", "vf-module-id": "", "vnfc-name": "", "vserver-id": "" }, "payload": "{\"configuration-parameters\":{\"vnf_name\":\"{{vnf-name}}\",\"targetname\":\"12\",\"timeoutvalue\":\"11\"}}" } } } }, "required": true }, "responses": { "200": { "description": "", "headers": {} } }, "deprecated": false } }, "/appc-provider-lcm:detach-volume": { "post": { "tags": [ "Misc" ], "summary": "DetachVolume", "description": "The DetachVolume command detaches a cinder volume from a VM via an Openstack command. Cinder is a Block Storage service for OpenStack. It’s designed to present storage resources to end users that can be consumed by the OpenStack Compute Project (Nova). The short description of Cinder is that it virtualizes the management of block storage devices and provides end users with a self-service API to request and consume those resources without requiring any knowledge of where their storage is actually deployed or on what type of device. NOTE: The command implementation is based on Openstack functionality. For further details, see http://developer.openstack.org/api-ref/compute/.", "operationId": "DetachVolume", "parameters": [ { "name": "X-TransactionId", "in": "header", "description": "", "required": true, "style": "simple", "schema": { "type": "integer", "format": "int32", "example": 9999 } }, { "name": "X-FromAppId", "in": "header", "description": "", "required": true, "style": "simple", "schema": { "type": "integer", "format": "int32", "example": 121 } }, { "name": "Real-Time", "in": "header", "description": "", "required": true, "style": "simple", "schema": { "type": "boolean", "example": true } } ], "requestBody": { "description": "", "content": { "application/json": { "schema": { "allOf": [ { "$ref": "#/components/schemas/DetachVolumeRequest" }, { "example": { "input": { "common-header": { "timestamp": "{{serverDate}}", "api-ver": "2.00", "originator-id": "{{orginatorId}}", "request-id": "Postman", "sub-request-id": "Postman", "flags": { "mode": "NORMAL", "force": "TRUE", "ttl": 36000 } }, "action": "DetachVolume", "action-identifiers": { "vnf-id": "{{vnf-id}}", "vserver-id": "{{vserver-id}}" }, "payload": "{\"volumeId\":\"{{volumeId}}\",\"device\":\"{{device}}\",\"vm-id\":\"{{vm-id}}\",\"identity-url\":\"{{identity-url}}\"}" } } } ] }, "example": { "input": { "common-header": { "timestamp": "{{serverDate}}", "api-ver": "2.00", "originator-id": "{{orginatorId}}", "request-id": "Postman", "sub-request-id": "Postman", "flags": { "mode": "NORMAL", "force": "TRUE", "ttl": 36000 } }, "action": "DetachVolume", "action-identifiers": { "vnf-id": "{{vnf-id}}", "vserver-id": "{{vserver-id}}" }, "payload": "{\"volumeId\":\"{{volumeId}}\",\"device\":\"{{device}}\",\"vm-id\":\"{{vm-id}}\",\"identity-url\":\"{{identity-url}}\"}" } } } }, "required": true }, "responses": { "200": { "description": "", "headers": {} } }, "deprecated": false } }, "/appc-provider-lcm:evacuate": { "post": { "tags": [ "Misc" ], "summary": "Evacuate", "description": "Evacuates a specified VM from its current host to another. After a successful evacuate, a rebuild VM is performed if a snapshot is available (and the VM boots from a snapshot). The host on which the VM resides needs to be down. If the target host is not specified in the request, it will be selected by relying on internal rules to evacuate. The Evacuate action will fail if the specified target host is not UP/ENABLED. After Evacuate, the rebuild VM can be disabled by setting the optional rebuild-vm parameter to false. A successful Evacuate action returns a success response. A failed Evacuate action returns a failure. NOTE: The command implementation is based on Openstack functionality. For further details, see http://developer.openstack.org/api-ref/compute/.", "operationId": "Evacuate", "parameters": [ { "name": "X-TransactionId", "in": "header", "description": "", "required": true, "style": "simple", "schema": { "type": "integer", "format": "int32", "example": 9999 } }, { "name": "X-FromAppId", "in": "header", "description": "", "required": true, "style": "simple", "schema": { "type": "integer", "format": "int32", "example": 121 } }, { "name": "Real-Time", "in": "header", "description": "", "required": true, "style": "simple", "schema": { "type": "boolean", "example": true } } ], "requestBody": { "description": "", "content": { "application/json": { "schema": { "allOf": [ { "$ref": "#/components/schemas/EvacuateRequest" }, { "example": { "input": { "common-header": { "timestamp": "{{serverDate}}", "api-ver": "2.00", "originator-id": "{{orginatorId}}", "request-id": "Postman", "sub-request-id": "Postman", "flags": { "mode": "NORMAL", "force": "TRUE", "ttl": 36000 } }, "action": "Evacuate", "action-identifiers": { "vnf-id": "{{vnf-id}}", "vserver-id": "{{vserver-id}}" }, "payload": "{\"vm-id\":\"{{vm-id}}\",\"identity-url\":\"{{identity-url}}\",\"tenant-id\":\"{{tenant-id}}\",\"rebuild-vm\":\"{{rebuild-vm}}\",\"targethost-id\":\"{{targethost-id}}\"}" } } } ] }, "example": { "input": { "common-header": { "timestamp": "{{serverDate}}", "api-ver": "2.00", "originator-id": "{{orginatorId}}", "request-id": "Postman", "sub-request-id": "Postman", "flags": { "mode": "NORMAL", "force": "TRUE", "ttl": 36000 } }, "action": "Evacuate", "action-identifiers": { "vnf-id": "{{vnf-id}}", "vserver-id": "{{vserver-id}}" }, "payload": "{\"vm-id\":\"{{vm-id}}\",\"identity-url\":\"{{identity-url}}\",\"tenant-id\":\"{{tenant-id}}\",\"rebuild-vm\":\"{{rebuild-vm}}\",\"targethost-id\":\"{{targethost-id}}\"}" }