.. This work is licensed under a Creative Commons Attribution 4.0 International License. .. http://creativecommons.org/licenses/by/4.0 .. Copyright 2018 Huawei Technologies Co., Ltd. API consumed by SO ================== .. image:: ../../images/SO_1.png SDC Client API -------------- Get List of Existing Catalog Assets +++++++++++++++++++++++++++++++++++ +--------------------+--------------------------+ |Interface Definition|Description | +====================+==========================+ |URI |sdc/v1/catalog/{assetType}| +--------------------+--------------------------+ |Operation Type |GET | +--------------------+--------------------------+ Request Parameters: +-------------------+---------+-----------+-------+-------------------------------------------------------------+ |Attribute |Qualifier|Cardinality|Content|Description | +===================+=========+===========+=======+=============================================================+ |assetType |M |1 |String |The requested asset type.valid values are resources/services.| +-------------------+---------+-----------+-------+-------------------------------------------------------------+ |service-type |M |1 |String |Service Type | +-------------------+---------+-----------+-------+-------------------------------------------------------------+ |service-instance-id|M |1 |String |Service Instance ID | +-------------------+---------+-----------+-------+-------------------------------------------------------------+ Request Headers: +-------------------+---------+-----------------------------------------------------------------------------------------+ |Header Name |Qualifier|Description | +===================+=========+=========================================================================================+ |X-ECOMP-RequestID |N |request ID.If it is not sent it will be automatically generated by SDC on request receipt| +-------------------+---------+-----------------------------------------------------------------------------------------+ |X-ECOMP-InstanceID |Y |Instance ID | +-------------------+---------+-----------------------------------------------------------------------------------------+ |Accept |N |Determines the format of the body of the response. Valid values are : “application/json”| +-------------------+---------+-----------------------------------------------------------------------------------------+ |Authorization |Y |Base64 encoded username:password | +-------------------+---------+-----------------------------------------------------------------------------------------+ Response: +------------------+---------+-----------+-------+--------------------------------------------------------------------------------------+ |Attribute |Qualifier|Cardinality|Content|Description | +==================+=========+===========+=======+======================================================================================+ |uuid |M |1 |String |Global Asset Version Identifier: UUID generated by SDC per each version of the asset. | +------------------+---------+-----------+-------+--------------------------------------------------------------------------------------+ |invariantUUID |M |1 |String |UUID generated by SDC per each asset. | +------------------+---------+-----------+-------+--------------------------------------------------------------------------------------+ |name |M |1 |String |The name of the asset | +------------------+---------+-----------+-------+--------------------------------------------------------------------------------------+ |version |M |1 |String |The asset version in SDC catalog. | +------------------+---------+-----------+-------+--------------------------------------------------------------------------------------+ |toscaModelURL |M |1 |String |Relative asset’s URL. Should be used in REST GET API to download the asset’s CSAR. | +------------------+---------+-----------+-------+--------------------------------------------------------------------------------------+ |category |M |1 |String |Category of the asset. | +------------------+---------+-----------+-------+--------------------------------------------------------------------------------------+ |subcategory |M |1 |String |Sub-category of the asset | +------------------+---------+-----------+-------+--------------------------------------------------------------------------------------+ |resourceType |M |1 |String |The type of resource.resource types are VF, VL, CP, VFC, VFCMT, PNF. | +------------------+---------+-----------+-------+--------------------------------------------------------------------------------------+ |lifecycleState |M |1 |String |The lifecycle state of the asset | +------------------+---------+-----------+-------+--------------------------------------------------------------------------------------+ |lastUpdaterUserId |M |1 |String |UserID of the SDC designer who was the last to update the asset for this major version| +------------------+---------+-----------+-------+--------------------------------------------------------------------------------------+ Get Specific Asset Detailed Metadata ++++++++++++++++++++++++++++++++++++ +--------------------+-------------------------------------------+ |Interface Definition|Description | +====================+===========================================+ |URI |/sdc/v1/catalog/{assetType}/{uuid}/metadata| +--------------------+-------------------------------------------+ |Operation Type |GET | +--------------------+-------------------------------------------+ Request Parameters: +-------------------+---------+-----------+-------+-------------------------------------------------------------------------------------+ |Attribute |Qualifier|Cardinality|Content|Description | +===================+=========+===========+=======+=====================================================================================+ |assetType |M |1 |String |The requested asset type.valid values are resources/services. | +-------------------+---------+-----------+-------+-------------------------------------------------------------------------------------+ |uuid |M |1 |String |Global Asset Version Identifier: UUID generated by SDC per each version of the asset.| +-------------------+---------+-----------+-------+-------------------------------------------------------------------------------------+ Request Headers: +-------------------+---------+-----------------------------------------------------------------------------------------+ |Header Name |Qualifier|Description | +===================+=========+=========================================================================================+ |X-ECOMP-RequestID |N |request ID.If it is not sent it will be automatically generated by SDC on request receipt| +-------------------+---------+-----------------------------------------------------------------------------------------+ |X-ECOMP-InstanceID |Y |Instance ID | +-------------------+---------+-----------------------------------------------------------------------------------------+ |Accept |N |Determines the format of the body of the response. Valid values are : “application/json”| +-------------------+---------+-----------------------------------------------------------------------------------------+ |Authorization |Y |Base64 encoded username:password | +-------------------+---------+-----------------------------------------------------------------------------------------+ Response: +--------------------+---------+-------+--------------------------------------------------------------------------------------+ |Attribute |Qualifier|Content|Description | +====================+=========+=======+======================================================================================+ |uuid |M |String |Global Asset Version Identifier: UUID generated by SDC per each version of the asset. | +--------------------+---------+-------+--------------------------------------------------------------------------------------+ |invariantUUID |M |String |UUID generated by SDC per each asset. | +--------------------+---------+-------+--------------------------------------------------------------------------------------+ |name |M |String |The name of the asset | +--------------------+---------+-------+--------------------------------------------------------------------------------------+ |version |M |String |The asset version in SDC catalog.