{
  "type": "object",
  "description": "This type represents a VNF lifecycle management operation occurrence.\n",
  "required": [
    "id",
    "operationState",
    "stateEnteredTime",
    "startTime",
    "vnfInstanceId",
    "operation",
    "isAutomaticInvocation",
    "operationParams",
    "isCancelPending"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "An identifier with the intention of being globally unique.\n"
    },
    "operationState": {
      "type": "string",
      "enum": [
        "STARTING",
        "PROCESSING",
        "COMPLETED",
        "FAILED_TEMP",
        "FAILED",
        "ROLLING_BACK",
        "ROLLED_BACK"
      ],
      "description": "Value | Description ------|------------ STARTING | The LCM operation is starting. PROCESSING | The LCM operation is currently in execution. COMPLETED | he LCM operation has been completed successfully. FAILED_TEMP | The LCM operation has failed and execution has stopped, but the execution of the operation is not considered to be closed. FAILED | The LCM operation has failed and it cannot be retried or rolled back, as it is determined that such action won't succeed. ROLLING_BACK | The LCM operation is currently being rolled back. ROLLED_BACK | The LCM operation has been successfully rolled back, i.e. The state of the VNF prior to the original operation invocation has been restored as closely as possible.\n"
    },
    "stateEnteredTime": {
      "type": "string",
      "description": "Date-time when the current state was entered.\n",
      "format": "date-time"
    },
    "startTime": {
      "type": "string",
      "description": "Date-time of the start of the operation.\n",
      "format": "date-time"
    },
    "vnfInstanceId": {
      "type": "string",
      "description": "An identifier with the intention of being globally unique.\n"
    },
    "grantId": {
      "type": "string",
      "description": "An identifier with the intention of being globally unique.\n"
    },
    "operation": {
      "type": "string",
      "enum": [
        "INSTANTIATE",
        "SCALE",
        "SCALE_TO_LEVEL",
        "CHANGE_FLAVOUR",
        "TERMINATE",
        "HEAL",
        "OPERATE",
        "CHANGE_EXT_CONN",
        "MODIFY_INFO"
      ],
      "description": "Value | Description ------|------------ INSTANTIATE | Represents the \"Instantiate VNF\" LCM operation.    SCALE | Represents the \"Scale VNF\" LCM operation. SCALE_TO_LEVEL | Represents the \"Scale VNF to Level\" LCM operation. CHANGE_FLAVOUR | Represents the \"Change VNF Flavour\" LCM operation. TERMINATE | Represents the \"Terminate VNF\" LCM operation. HEAL | Represents the \"Heal VNF\" LCM operation. OPERATE | Represents the \"Operate VNF\" LCM operation. CHANGE_EXT_CONN | Represents the \"Change external VNF connectivity\" LCM operation. MODIFY_INFO | Represents the \"Modify VNF Information\" LCM operation.     \n"
    },
    "isAutomaticInvocation": {
      "type": "boolean",
      "description": "Set to true if this VNF LCM operation occurrence has been triggered by an automated procedure inside the VNFM (i.e. ScaleVnf / ScaleVnfToLevel triggered by auto-scale, or HealVnf triggered by auto-heal). Set to false otherwise.\n"
    },
    "operationParams": {
      "type": "object",
      "description": "This type represents a list of key-value pairs. The order of the pairs in the list is not significant. In JSON, a set of key- value pairs is represented as an object. It shall comply with the provisions  defined in clause 4 of IETF RFC 7159. \n"
    },
    "isCancelPending": {
      "type": "boolean",
      "description": "If the VNF LCM operation occurrence is in \"STARTING\", \"PROCESSING\" or \"ROLLING_BACK\" state and the operation is being cancelled, this attribute shall be set to true. Otherwise, it shall be set to false.\n"
    },
    "cancelMode": {
      "type": "string",
      "enum": [
        "GRACEFUL",
        "FORCEFUL"
      ],
      "description": "Cancellation mode. GRACEFUL: If the VNF LCM operation occurrence is in \"PROCESSING\" or \"ROLLING_BACK\" state, the VNFM shall not start any new resource management operation and shall wait for the ongoing resource management operations in the underlying system, typically the VIM, to finish execution or to time out. After that, the VNFM shall put the operation occurrence into the FAILED_TEMP state. If the VNF LCM operation occurrence is in \"STARTING\" state, the VNFM shall not start any resource management operation and shall wait for the granting request to finish execution or time out. After that, the VNFM shall put the operation occurrence into the ROLLED_BACK state.  FORCEFUL: If the VNF LCM operation occurrence is in \"PROCESSING\" or \"ROLLING_BACK\" state, the VNFM shall not start any new resource management operation, shall cancel the ongoing resource management operations in the underlying system, typically the VIM, and shall wait for the cancellation to finish or to time out. After that, the VNFM shall put the operation occurrence into the FAILED_TEMP state.  If the VNF LCM operation occurrence is in \"STARTING\" state, the VNFM shall not start any resource management operation and put the operation occurrence into the ROLLED_BACK state.\n"
    },
    "error": {
      "type": "object",
      "description": "The definition of the general \"ProblemDetails\" data structure from IETF RFC 7807 [19] is reproduced inthis structure. Compared to the general framework defined in IETF RFC 7807 [19], the \"status\" and \"detail\" attributes are mandated to be included by the present document, to ensure that the response contains additional textual information about an error. IETF RFC 7807 [19] foresees extensibility of the \"ProblemDetails\" type. It is possible that particular APIs in the present document, or particular implementations, define extensions to define additional attributes that provide more information about the error. The description column only provides some explanation of the meaning to Facilitate understanding of the design. For a full description, see IETF RFC 7807 [19].\n",
      "properties": {
        "type": {
          "type": "string",
          "description": "A URI reference according to IETF RFC 3986 [5] that identifies the problem type. It is encouraged that the URI provides human-readable documentation for the problem (e.g. using HTML) when dereferenced. When this member is not present, its value is assumed to be \"about:blank\".\n",
          "format": "URI"
        },
        "title": {
          "type": "string",
          "description": "A short, human-readable summary of the problem type. It should not change from occurrence to occurrence of the problem, except for purposes of localization. If type is given and other than \"about:blank\", this attribute shall also be provided. A short, human-readable summary of the problem type.  It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization (e.g., using proactive content negotiation; see [RFC7231], Section 3.4).\n"
        },
        "status": {
          "type": "integer",
          "description": "The HTTP status code for this occurrence of the problem. The HTTP status code ([RFC7231], Section 6) generated by the origin server for this occurrence of the problem.\n"
        },
        "detail": {
          "type": "string",
          "description": "A human-readable explanation specific to this occurrence of the problem.\n"
        },
        "instance": {
          "type": "string",
          "description": "A URI reference that identifies the specific occurrence of the problem. It may yield further information if dereferenced.\n",
          "format": "URI"
        }
      },
      "required": [
        "status",
        "detail"
      ]
    },
    "resourceChanges": {
      "type": "object",
      "description": "This attribute contains information about the cumulative changes to virtualised resources that were performed so far by the LCM operation since its start, if applicable.\n",
      "properties": {
        "affectedVnfcs": {
          "type": "array",
          "description": "Information about VNFC instances that were affected during the lifecycle operation. This allows the NFVO to obtain the information contained in the latest \"result\" notification if it has not received it due to an error or a wrongly configured subscription filter.\n",
          "items": {
            "type": "object",
            "description": "This type provides information about added, deleted, modified and temporary VNFCs.  \n",
            "required": [
              "id",
              "vduId",
              "changeType",
              "computeResource"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "An identifier that is unique for the respective type within a VNF instance, but may not be globally unique.\n"
              },
              "vduId": {
                "type": "string",
                "description": "An identifier that is unique within a VNF descriptor.\n"
              },
              "changeType": {
                "type": "string",
                "enum": [
                  "ADDED",
                  "REMOVED",
                  "MODIFIED",
                  "TEMPORARY"
                ],
                "description": "Signals the type of change. Permitted values: * ADDED * REMOVED * MODIFIED * TEMPORARY For a temporary resource, an AffectedVnfc structure exists as long as the temporary resource exists.\n"
              },
              "computeResource": {
                "type": "object",
                "description": "This type represents the information that allows addressing a virtualised resource that is used by a VNF instance. Information about the resource is available from the VIM.\n",
                "required": [
                  "vimConnectionId",
                  "resourceId"
                ],
                "properties": {
                  "vimConnectionId": {
                    "type": "string",
                    "description": "An identifier with the intention of being globally unique.\n"
                  },
                  "resourceProviderId": {
                    "type": "string",
                    "description": "An identifier with the intention of being globally unique.\n"
                  },
                  "resourceId": {
                    "type": "string",
                    "description": "An identifier maintained by the VIM or other resource provider. It is expected to be unique within the VIM instance.\n"
                  },
                  "vimLevelResourceType": {
                    "type": "string",
                    "description": "Type of the resource in the scope of the VIM or the resource provider.\n"
                  }
                }
              },
              "metadata": {
                "type": "object",
                "description": "This type represents a list of key-value pairs. The order of the pairs in the list is not significant. In JSON, a set of key- value pairs is represented as an object. It shall comply with the provisions  defined in clause 4 of IETF RFC 7159. \n"
              },
              "affectedVnfcCpIds": {
                "type": "array",
                "description": "Identifiers of CP(s) of the VNFC instance that were affected by the change.  Shall be present for those affected CPs of the VNFC instance that are associated to an external CP of the VNF instance. May be present for further affected CPs of the VNFC instance.\n",
                "items": {
                  "type": "string",
                  "description": "An identifier that is unique for the respective type within a VNF instance, but may not be globally unique.\n"
                }
              },
              "addedStorageResourceIds": {
                "type": "array",
                "description": "References to VirtualStorage resources that have been added. Each value refers to a VirtualStorageResourceInfo item in the VnfInstance that was added to the VNFC. It shall be provided if at least one storage resource was added to the VNFC.\n",
                "items": {
                  "type": "string",
                  "description": "An identifier that is unique for the respective type within a VNF instance, but may not be globally unique.\n"
                }
              },
              "removedStorageResourceIds": {
                "type": "array",
                "description": "References to VirtualStorage resources that have been removed. The value contains the identifier of a VirtualStorageResourceInfo item that has been removed from the VNFC, and might no longer exist in the VnfInstance. It shall be provided if at least one storage resource was removed from the VNFC.\n",
                "items": {
                  "type": "string",
                  "description": "An identifier that is unique for the respective type within a VNF instance, but may not be globally unique.\n"
                }
              }
            }
          }
        },
        "affectedVirtualLinks": {
          "type": "array",
          "description": "Information about VL instances that were affected during the lifecycle operation. This allows the NFVO to obtain the information contained in the latest \"result\" notification if it has not received it due to an error or a wrongly configured subscription filter.\n",
          "items": {
            "type": "object",
            "description": "This type provides information about added, deleted, modified and temporary VLs.\n",
            "required": [
              "id",
              "virtualLinkDescId",
              "changeType",
              "networkResource"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "An identifier that is unique for the respective type within a VNF instance, but may not be globally unique.\n"
              },
              "virtualLinkDescId": {
                "type": "string",
                "description": "An identifier that is unique within a VNF descriptor.\n"
              },
              "changeType": {
                "type": "string",
                "enum": [
                  "ADDED",
                  "REMOVED",
                  "MODIFIED",
                  "TEMPORARY",
                  "LINK_PORT_ADDED",
                  "LINK_PORT_REMOVED"
                ],
                "description": "Signals the type of change. Permitted values: * ADDED * REMOVED * MODIFIED * TEMPORARY * LINK_PORT_ADDED * LINK_PORT_REMOVED For a temporary resource, an AffectedVirtualLink structure exists as long as the temporary resource exists.\n"
              },
              "networkResource": {
                "type": "object",
                "description": "This type represents the information that allows addressing a virtualised resource that is used by a VNF instance. Information about the resource is available from the VIM.\n",
                "required": [
                  "vimConnectionId",
                  "resourceId"
                ],
                "properties": {
                  "vimConnectionId": {
                    "type": "string",
                    "description": "An identifier with the intention of being globally unique.\n"
                  },
                  "resourceProviderId": {
                    "type": "string",
                    "description": "An identifier with the intention of being globally unique.\n"
                  },
                  "resourceId": {
                    "type": "string",
                    "description": "An identifier maintained by the VIM or other resource provider. It is expected to be unique within the VIM instance.\n"
                  },
                  "vimLevelResourceType": {
                    "type": "string",
                    "description": "Type of the resource in the scope of the VIM or the resource provider.\n"
                  }
                }
              },
              "metadata": {
                "type": "object",
                "description": "This type represents a list of key-value pairs. The order of the pairs in the list is not significant. In JSON, a set of key- value pairs is represented as an object. It shall comply with the provisions  defined in clause 4 of IETF RFC 7159. \n"
              }
            }
          }
        },
        "affectedVirtualStorages": {
          "type": "array",
          "description": "Information about virtualised storage instances that were affected during the lifecycle operation. This allows the NFVO to obtain the information contained in the latest \"result\" notification if it has not received it due to an error or a wrongly configured subscription filter.\n",
          "items": {
            "type": "object",
            "description": "This type provides information about added, deleted, modified and temporary virtual storage resources.\n",
            "required": [
              "id",
              "virtualStorageDescId",
              "changeType",
              "storageResource"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "An identifier that is unique for the respective type within a VNF instance, but may not be globally unique.\n"
              },
              "virtualStorageDescId": {
                "type": "string",
                "description": "An identifier that is unique within a VNF descriptor.\n"
              },
              "changeType": {
                "type": "string",
                "enum": [
                  "ADDED",
                  "REMOVED",
                  "MODIFIED",
                  "TEMPORARY"
                ],
                "description": "Signals the type of change. Permitted values: * ADDED * REMOVED * MODIFIED * TEMPORARY For a temporary resource, an AffectedVirtualStorage structure exists as long as the temporary resource exists.\n"
              },
              "storageResource": {
                "type": "object",
                "description": "This type represents the information that allows addressing a virtualised resource that is used by a VNF instance. Information about the resource is available from the VIM.\n",
                "required": [
                  "vimConnectionId",
                  "resourceId"
                ],
                "properties": {
                  "vimConnectionId": {
                    "type": "string",
                    "description": "An identifier with the intention of being globally unique.\n"
                  },
                  "resourceProviderId": {
                    "type": "string",
                    "description": "An identifier with the intention of being globally unique.\n"
                  },
                  "resourceId": {
                    "type": "string",
                    "description": "An identifier maintained by the VIM or other resource provider. It is expected to be unique within the VIM instance.\n"
                  },
                  "vimLevelResourceType": {
                    "type": "string",
                    "description": "Type of the resource in the scope of the VIM or the resource provider.\n"
                  }
                }
              },
              "metadata": {
                "type": "object",
                "description": "This type represents a list of key-value pairs. The order of the pairs in the list is not significant. In JSON, a set of key- value pairs is represented as an object. It shall comply with the provisions  defined in clause 4 of IETF RFC 7159. \n"
              }
            }
          }
        }
      }
    },
    "changedInfo": {
      "type": "object",
      "description": "This type represents attribute modifications that were performed on an \"Individual VNF instance\" resource. The attributes that can be included consist of those requested to be modified explicitly in the \"VnfInfoModificationRequest\" data structure, and additional attributes of the \"VnfInstance\" data structure that were modified implicitly e.g. when modifying the referenced VNF package.\n",
      "properties": {
        "vnfInstanceName": {
          "type": "string",
          "description": "If present, this attribute signals modifications of the \"vnfInstanceName\" attribute in \"VnfInstance\".\n"
        },
        "vnfInstanceDescription": {
          "type": "string",
          "description": "If present, this attribute signals modifications of the \"vnfInstanceDescription\" attribute in \"VnfInstance\".\n"
        },
        "vnfConfigurableProperties": {
          "type": "object",
          "description": "This type represents a list of key-value pairs. The order of the pairs in the list is not significant. In JSON, a set of key- value pairs is represented as an object. It shall comply with the provisions  defined in clause 4 of IETF RFC 7159. \n"
        },
        "metadata": {
          "type": "object",
          "description": "This type represents a list of key-value pairs. The order of the pairs in the list is not significant. In JSON, a set of key- value pairs is represented as an object. It shall comply with the provisions  defined in clause 4 of IETF RFC 7159. \n"
        },
        "extensions": {
          "type": "object",
          "description": "This type represents a list of key-value pairs. The order of the pairs in the list is not significant. In JSON, a set of key- value pairs is represented as an object. It shall comply with the provisions  defined in clause 4 of IETF RFC 7159. \n"
        },
        "vimConnectionInfo": {
          "type": "array",
          "description": "If present, this attribute signals modifications of certain entries in the \"vimConnectionInfo\" attribute array in \"VnfInstance\".\n",
          "items": {
            "type": "object",
            "description": "This type represents parameters to connect to a VIM for managing the resources of a VNF instance. This structure is used to convey VIM-related parameters over the Or-Vnfm interface. Additional parameters for a VIM may be configured into the VNFM by means outside the scope of the present document, and bound to the identifier of that VIM.\n",
            "required": [
              "id",
              "vimType"
            ],
            "properties": {
              "id": {
                "type": "string",
                "description": "An identifier with the intention of being globally unique.\n"
              },
              "vimId": {
                "type": "string",
                "description": "An identifier with the intention of being globally unique.\n"
              },
              "vimType": {
                "type": "string",
                "description": "Discriminator for the different types of the VIM information. The value of this attribute determines the structure of the \"interfaceInfo\" and \"accessInfo\" attributes, based on the type of the VIM. The set of permitted values is expected to change over time as new types or versions of VIMs become available. The ETSI NFV registry of VIM-related information provides access to information about VimConnectionInfo definitions for various VIM types. The structure of the registry is defined in Annex C of SOL003.\n"
              },
              "interfaceInfo": {
                "type": "object",
                "description": "This type represents a list of key-value pairs. The order of the pairs in the list is not significant. In JSON, a set of key- value pairs is represented as an object. It shall comply with the provisions  defined in clause 4 of IETF RFC 7159. \n"
              },
              "accessInfo": {
                "type": "object",
                "description": "This type represents a list of key-value pairs. The order of the pairs in the list is not significant. In JSON, a set of key- value pairs is represented as an object. It shall comply with the provisions  defined in clause 4 of IETF RFC 7159. \n"
              },
              "extra": {
                "type": "object",
                "description": "This type represents a list of key-value pairs. The order of the pairs in the list is not significant. In JSON, a set of key- value pairs is represented as an object. It shall comply with the provisions  defined in clause 4 of IETF RFC 7159. \n"
              }
            }
          }
        },
        "vnfPkgId": {
          "type": "string",
          "description": "An identifier with the intention of being globally unique.\n"
        },
        "vnfdId": {
          "type": "string",
          "description": "An identifier with the intention of being globally unique.\n"
        },
        "vnfProvider": {
          "type": "string",
          "description": "If present, this attribute signals modifications of the \"vnfProvider\" attribute in \"VnfInstance\". If present, this attribute (which depends on the value of the \"vnfPkgId\" attribute) was modified implicitly following a request to modify the \"vnfPkgId\" attribute, by copying the value of this attribute from the VNFD in the VNF Package identified by the \"vnfPkgIdâ€� attribute.\n"
        },
        "vnfProductName": {
          "type": "string",
          "description": "If present, this attribute signals modifications of the \"vnfProductName\" attribute in \"VnfInstance\". If present, this attribute (which depends on the value of the \"vnfPkgId\" attribute) was modified implicitly following a request to modify the \"vnfPkgId\" attribute, by copying the value of this attribute from the VNFD in the VNF Package identified by the \"vnfPkgIdâ€� attribute.\n"
        },
        "vnfSoftwareVersion": {
          "type": "string",
          "description": "A Version.\n"
        },
        "vnfdVersion": {
          "type": "string",
          "description": "A Version.\n"
        }
      }
    },
    "changedExtConnectivity": {
      "type": "array",
      "description": "Information about changed external connectivity, if applicable. This allows the NFVO to obtain the information contained in the latest \"result\" notification if it has not received it due to an error or a wrongly configured subscription filter.\n",
      "items": {
        "type": "object",
        "required": [
          "id",
          "resourceHandle"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "An identifier with the intention of being globally unique.\n"
          },
          "resourceHandle": {
            "type": "object",
            "description": "This type represents the information that allows addressing a virtualised resource that is used by a VNF instance. Information about the resource is available from the VIM.\n",
            "required": [
              "vimConnectionId",
              "resourceId"
            ],
            "properties": {
              "vimConnectionId": {
                "type": "string",
                "description": "An identifier with the intention of being globally unique.\n"
              },
              "resourceProviderId": {
                "type": "string",
                "description": "An identifier with the intention of being globally unique.\n"
              },
              "resourceId": {
                "type": "string",
                "description": "An identifier maintained by the VIM or other resource provider. It is expected to be unique within the VIM instance.\n"
              },
              "vimLevelResourceType": {
                "type": "string",
                "description": "Type of the resource in the scope of the VIM or the resource provider.\n"
              }
            }
          },
          "extLinkPorts": {
            "type": "array",
            "description": "Link ports of this VL.\n",
            "items": {
              "type": "object",
              "description": "This type represents information about a link port of an external VL, i.e. a port providing connectivity for the VNF to an NS VL. \n",
              "required": [
                "id",
                "resourceHandle"
              ],
              "properties": {
                "id": {
                  "type": "string",
                  "description": "An identifier with the intention of being globally unique.\n"
                },
                "resourceHandle": {
                  "type": "object",
                  "description": "This type represents the information that allows addressing a virtualised resource that is used by a VNF instance. Information about the resource is available from the VIM.\n",
                  "required": [
                    "vimConnectionId",
                    "resourceId"
                  ],
                  "properties": {
                    "vimConnectionId": {
                      "type": "string",
                      "description": "An identifier with the intention of being globally unique.\n"
                    },
                    "resourceProviderId": {
                      "type": "string",
                      "description": "An identifier with the intention of being globally unique.\n"
                    },
                    "resourceId": {
                      "type": "string",
                      "description": "An identifier maintained by the VIM or other resource provider. It is expected to be unique within the VIM instance.\n"
                    },
                    "vimLevelResourceType": {
                      "type": "string",
                      "description": "Type of the resource in the scope of the VIM or the resource provider.\n"
                    }
                  }
                },
                "cpInstanceId": {
                  "type": "string",
                  "description": "An identifier that is unique for the respective type within a VNF instance, but may not be globally unique.\n"
                }
              }
            }
          }
        }
      }
    },
    "_links": {
      "type": "object",
      "description": "Links to resources related to this resource.\n",
      "required": [
        "self",
        "vnfInstance"
      ],
      "properties": {
        "self": {
          "type": "object",
          "description": "This type represents a link to a resource.\n",
          "required": [
            "href"
          ],
          "properties": {
            "href": {
              "type": "string",
              "description": "URI of the referenced resource.\n",
              "format": "url"
            }
          }
        },
        "vnfInstance": {
          "type": "object",
          "description": "This type represents a link to a resource.\n",
          "required": [
            "href"
          ],
          "properties": {
            "href": {
              "type": "string",
              "description": "URI of the referenced resource.\n",
              "format": "url"
            }
          }
        },
        "grant": {
          "type": "object",
          "description": "This type represents a link to a resource.\n",
          "required": [
            "href"
          ],
          "properties": {
            "href": {
              "type": "string",
              "description": "URI of the referenced resource.\n",
              "format": "url"
            }
          }
        },
        "cancel": {
          "type": "object",
          "description": "This type represents a link to a resource.\n",
          "required": [
            "href"
          ],
          "properties": {
            "href": {
              "type": "string",
              "description": "URI of the referenced resource.\n",
              "format": "url"
            }
          }
        },
        "retry": {
          "type": "object",
          "description": "This type represents a link to a resource.\n",
          "required": [
            "href"
          ],
          "properties": {
            "href": {
              "type": "string",
              "description": "URI of the referenced resource.\n",
              "format": "url"
            }
          }
        },
        "rollback": {
          "type": "object",
          "description": "This type represents a link to a resource.\n",
          "required": [
            "href"
          ],
          "properties": {
            "href": {
              "type": "string",
              "description": "URI of the referenced resource.\n",
              "format": "url"
            }
          }
        },
        "fail": {
          "type": "object",
          "description": "This type represents a link to a resource.\n",
          "required": [
            "href"
          ],
          "properties": {
            "href": {
              "type": "string",
              "description": "URI of the referenced resource.\n",
              "format": "url"
            }
          }
        }
      }
    }
  }
}