diff options
Diffstat (limited to 'products/onap-beijing/features/sdc')
3 files changed, 858 insertions, 0 deletions
diff --git a/products/onap-beijing/features/sdc/src/main/resources/open-cli-sample/service-model/service-model-create-schema-beijing-moco.json b/products/onap-beijing/features/sdc/src/main/resources/open-cli-sample/service-model/service-model-create-schema-beijing-moco.json new file mode 100644 index 00000000..5521a446 --- /dev/null +++ b/products/onap-beijing/features/sdc/src/main/resources/open-cli-sample/service-model/service-model-create-schema-beijing-moco.json @@ -0,0 +1,742 @@ +[ { + "request" : { + "method" : "post", + "uri" : "/sdc2/rest/v1/catalog/services", + "headers" : { + "Authorization" : "Basic Y3MwMDA4OmRlbW8xMjM0NTYh", + "X-FromAppId" : "onap-cli", + "Accept" : "application/json", + "USER_ID" : "cs0008", + "X-TransactionId" : "req-7b5e7c47-d5fe-4551-9b3f-51125a6b1543", + "Content-Type" : "application/json" + }, + "json" : { + "componentType" : "SERVICE", + "properties" : [ ], + "requirements" : { }, + "toscaArtifacts" : { }, + "tags" : [ "CLI", "kanag-cli-VLB" ], + "artifacts" : { }, + "description" : "VLB created from CLI", + "serviceApiArtifacts" : { }, + "capabilities" : { }, + "name" : "kanag-cli-VLB", + "componentInstancesProperties" : { }, + "componentInstancesAttributes" : { }, + "contactId" : "cs0008", + "groups" : [ ], + "projectCode" : "kanag-123456", + "deploymentArtifacts" : { }, + "attributes" : [ ], + "componentInstances" : [ ], + "categories" : [ { + "normalizedName" : "network l1-3", + "name" : "Network L1-3", + "uniqueId" : "serviceNewCategory.network l1-3", + "icons" : [ "defaulticon" ] + } ], + "icon" : "defaulticon" + } + }, + "response" : { + "status" : 201, + "json" : { + "artifacts" : { + "servicequestionnaire" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.servicequestionnaire", + "artifactLabel" : "servicequestionnaire", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "INFORMATIONAL", + "mandatory" : true, + "serviceApi" : false, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Service Questionnaire", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "dimensioninginfo" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.dimensioninginfo", + "artifactLabel" : "dimensioninginfo", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "INFORMATIONAL", + "mandatory" : true, + "serviceApi" : false, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Dimensioning Info", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "controlloopfunctions" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.controlloopfunctions", + "artifactLabel" : "controlloopfunctions", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "INFORMATIONAL", + "mandatory" : true, + "serviceApi" : false, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Control Loop Functions", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "affinityrules" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.affinityrules", + "artifactLabel" : "affinityrules", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "INFORMATIONAL", + "mandatory" : true, + "serviceApi" : false, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Affinity Rules", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "operationalpolicies" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.operationalpolicies", + "artifactLabel" : "operationalpolicies", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "INFORMATIONAL", + "mandatory" : true, + "serviceApi" : false, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Operational Policies", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "certificationtestresults" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.certificationtestresults", + "artifactLabel" : "certificationtestresults", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "INFORMATIONAL", + "mandatory" : true, + "serviceApi" : false, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "TD Certification Test Results", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "deploymentvotingrecord" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.deploymentvotingrecord", + "artifactLabel" : "deploymentvotingrecord", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "INFORMATIONAL", + "mandatory" : true, + "serviceApi" : false, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Deployment Voting Record", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "serviceartifactplan" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.serviceartifactplan", + "artifactLabel" : "serviceartifactplan", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "INFORMATIONAL", + "mandatory" : true, + "serviceApi" : false, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Service Artifact Plan", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "servicespecificpolicies" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.servicespecificpolicies", + "artifactLabel" : "servicespecificpolicies", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "INFORMATIONAL", + "mandatory" : true, + "serviceApi" : false, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Service-specific Policies", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "servicesecuritytemplate" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.servicesecuritytemplate", + "artifactLabel" : "servicesecuritytemplate", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "INFORMATIONAL", + "mandatory" : true, + "serviceApi" : false, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Service Security Template", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "engineeringrules" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.engineeringrules", + "artifactLabel" : "engineeringrules", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "INFORMATIONAL", + "mandatory" : true, + "serviceApi" : false, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Engineering Rules (ERD)", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "distributioninstructions" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.distributioninstructions", + "artifactLabel" : "distributioninstructions", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "INFORMATIONAL", + "mandatory" : true, + "serviceApi" : false, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Distribution Instructions", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "summaryofimpactstoecompelements" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.summaryofimpactstoecompelements", + "artifactLabel" : "summaryofimpactstoecompelements", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "INFORMATIONAL", + "mandatory" : true, + "serviceApi" : false, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Summary of impacts to ECOMP elements,OSSs, BSSs", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + } + }, + "deploymentArtifacts" : { }, + "toscaArtifacts" : { + "assettoscacsar" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "description" : "TOSCA definition package of the asset", + "artifactName" : "service-KanagCliVlb-csar.csar", + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.assettoscacsar", + "artifactLabel" : "assettoscacsar", + "artifactVersion" : "0", + "artifactType" : "TOSCA_CSAR", + "artifactGroupType" : "TOSCA", + "mandatory" : true, + "serviceApi" : false, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Tosca Model", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "assettoscatemplate" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "description" : "TOSCA representation of the asset", + "artifactName" : "service-KanagCliVlb-template.yml", + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.assettoscatemplate", + "artifactLabel" : "assettoscatemplate", + "artifactVersion" : "0", + "artifactType" : "TOSCA_TEMPLATE", + "artifactGroupType" : "TOSCA", + "mandatory" : true, + "serviceApi" : false, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Tosca Template", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + } + }, + "categories" : [ { + "name" : "Network L1-3", + "normalizedName" : "network l1-3", + "uniqueId" : "serviceNewCategory.network l1-3", + "icons" : [ "defaulticon" ] + } ], + "componentInstancesRelations" : [ ], + "derivedFromGenericType" : "org.openecomp.resource.abstract.nodes.service", + "derivedFromGenericVersion" : "2.0", + "toscaType" : "topology_template", + "serviceApiArtifacts" : { + "configuration" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.configuration", + "artifactLabel" : "configuration", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "SERVICE_API", + "mandatory" : false, + "serviceApi" : true, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Configuration", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "testing" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.testing", + "artifactLabel" : "testing", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "SERVICE_API", + "mandatory" : false, + "serviceApi" : true, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Testing", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "logging" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.logging", + "artifactLabel" : "logging", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "SERVICE_API", + "mandatory" : false, + "serviceApi" : true, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Logging", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "monitoring" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.monitoring", + "artifactLabel" : "monitoring", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "SERVICE_API", + "mandatory" : false, + "serviceApi" : true, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Monitoring", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "reporting" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.reporting", + "artifactLabel" : "reporting", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "SERVICE_API", + "mandatory" : false, + "serviceApi" : true, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Reporting", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "instantiation" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.instantiation", + "artifactLabel" : "instantiation", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "SERVICE_API", + "mandatory" : false, + "serviceApi" : true, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Instantiation", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + } + }, + "distributionStatus" : "DISTRIBUTION_NOT_APPROVED", + "projectCode" : "kanag-123456", + "ecompGeneratedNaming" : true, + "namingPolicy" : "", + "serviceType" : "", + "serviceRole" : "", + "icon" : "defaulticon", + "creationDate" : 1509606274213, + "version" : "0.1", + "description" : "VLB created from CLI", + "tags" : [ "CLI", "kanag-cli-VLB" ], + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584", + "normalizedName" : "kanagclivlb", + "invariantUUID" : "c4425f23-fc9a-4cbf-a3b7-12e69054806b", + "lastUpdateDate" : 1509606274213, + "componentType" : "SERVICE", + "lifecycleState" : "NOT_CERTIFIED_CHECKOUT", + "uuid" : "660c524c-176b-43b1-a85b-1ef18011ca85", + "systemName" : "KanagCliVlb", + "lastUpdaterUserId" : "cs0008", + "highestVersion" : true, + "creatorFullName" : "Carlos Santana", + "allArtifacts" : { + "controlloopfunctions" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.controlloopfunctions", + "artifactLabel" : "controlloopfunctions", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "INFORMATIONAL", + "mandatory" : true, + "serviceApi" : false, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Control Loop Functions", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "operationalpolicies" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.operationalpolicies", + "artifactLabel" : "operationalpolicies", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "INFORMATIONAL", + "mandatory" : true, + "serviceApi" : false, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Operational Policies", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "certificationtestresults" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.certificationtestresults", + "artifactLabel" : "certificationtestresults", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "INFORMATIONAL", + "mandatory" : true, + "serviceApi" : false, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "TD Certification Test Results", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "deploymentvotingrecord" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.deploymentvotingrecord", + "artifactLabel" : "deploymentvotingrecord", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "INFORMATIONAL", + "mandatory" : true, + "serviceApi" : false, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Deployment Voting Record", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "servicequestionnaire" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.servicequestionnaire", + "artifactLabel" : "servicequestionnaire", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "INFORMATIONAL", + "mandatory" : true, + "serviceApi" : false, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Service Questionnaire", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "dimensioninginfo" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.dimensioninginfo", + "artifactLabel" : "dimensioninginfo", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "INFORMATIONAL", + "mandatory" : true, + "serviceApi" : false, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Dimensioning Info", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "affinityrules" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.affinityrules", + "artifactLabel" : "affinityrules", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "INFORMATIONAL", + "mandatory" : true, + "serviceApi" : false, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Affinity Rules", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "serviceartifactplan" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.serviceartifactplan", + "artifactLabel" : "serviceartifactplan", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "INFORMATIONAL", + "mandatory" : true, + "serviceApi" : false, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Service Artifact Plan", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "servicespecificpolicies" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.servicespecificpolicies", + "artifactLabel" : "servicespecificpolicies", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "INFORMATIONAL", + "mandatory" : true, + "serviceApi" : false, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Service-specific Policies", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "servicesecuritytemplate" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.servicesecuritytemplate", + "artifactLabel" : "servicesecuritytemplate", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "INFORMATIONAL", + "mandatory" : true, + "serviceApi" : false, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Service Security Template", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "engineeringrules" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.engineeringrules", + "artifactLabel" : "engineeringrules", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "INFORMATIONAL", + "mandatory" : true, + "serviceApi" : false, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Engineering Rules (ERD)", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "distributioninstructions" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.distributioninstructions", + "artifactLabel" : "distributioninstructions", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "INFORMATIONAL", + "mandatory" : true, + "serviceApi" : false, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Distribution Instructions", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + }, + "summaryofimpactstoecompelements" : { + "creationDate" : 1509606274190, + "timeout" : 0, + "uniqueId" : "7b427dbf-685b-4ba9-8838-a9b3b3c8e584.summaryofimpactstoecompelements", + "artifactLabel" : "summaryofimpactstoecompelements", + "artifactVersion" : "0", + "artifactType" : "OTHER", + "artifactGroupType" : "INFORMATIONAL", + "mandatory" : true, + "serviceApi" : false, + "lastUpdateDate" : 1509606274190, + "artifactDisplayName" : "Summary of impacts to ECOMP elements,OSSs, BSSs", + "duplicated" : false, + "userIdCreator" : "cs0008", + "userIdLastUpdater" : "cs0008", + "creatorFullName" : "Carlos Santana", + "updaterFullName" : "Carlos Santana", + "generated" : false + } + }, + "creatorUserId" : "cs0008", + "contactId" : "cs0008", + "conformanceLevel" : "4.0", + "lastUpdaterFullName" : "Carlos Santana", + "name" : "kanag-cli-VLB" + } + } +} ]
\ No newline at end of file diff --git a/products/onap-beijing/features/sdc/src/main/resources/open-cli-sample/service-model/service-model-create-schema-beijing-sample.yaml b/products/onap-beijing/features/sdc/src/main/resources/open-cli-sample/service-model/service-model-create-schema-beijing-sample.yaml new file mode 100644 index 00000000..7ce4d20f --- /dev/null +++ b/products/onap-beijing/features/sdc/src/main/resources/open-cli-sample/service-model/service-model-create-schema-beijing-sample.yaml @@ -0,0 +1,28 @@ +# Copyright 2018 Huawei Technologies Co., Ltd. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +open_cli_sample_version: 1.0 +name: service-model-create +version: onap-beijing +samples: + sample1: + name: service-model-create + input: --name kanag-cli-VLB --description VLB created from CLI --project-code kanag-123456 + moco: service-model-create-schema-1.1-moco.json + output: | + +----------+--------------------------------------+ + |property |value | + +----------+--------------------------------------+ + |ID |7b427dbf-685b-4ba9-8838-a9b3b3c8e584 | + +----------+--------------------------------------+ diff --git a/products/onap-beijing/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-create-schema-beijing.yaml b/products/onap-beijing/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-create-schema-beijing.yaml new file mode 100644 index 00000000..0705b04e --- /dev/null +++ b/products/onap-beijing/features/sdc/src/main/resources/open-cli-schema/service-model/service-model-create-schema-beijing.yaml @@ -0,0 +1,88 @@ +# Copyright 2018 Huawei Technologies Co., Ltd. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +open_cli_schema_version: 1.0 +name: service-model-create +description: Create Service model in SDC + +info: + product: onap-beijing + service: sdc + author: ONAP CLI Team onap-discuss@lists.onap.org + + +parameters: + - name: name + description: Onap Service Name + type: string + short_option: x + long_option: name + is_optional: false + - name: description + description: Description for Service + type: string + short_option: y + long_option: description + is_optional: true + - name: project-code + description: Project code + type: string + long_option: project-code + short_option: z + is_optional: true + - name: category + description: Service category + type: string + short_option: b + long_option: category + is_optional: true + default_value: network l1-3 + - name: category-display-name + description: Service category display name + type: string + short_option: c + long_option: category-display-name + is_optional: true + default_value: Network L1-3 + - name: icon-id + description: Service Icon id + type: string + short_option: e + long_option: icon-id + default_value: defaulticon + is_optional: true + +results: + direction: portrait + attributes: + - name: ID + description: Service ID + scope: short + type: string +http: + service: + name: sdc + version: v1.0 + auth: basic + mode: direct + request: + uri: /sdc2/rest/v1/catalog/services + method: POST + body: '{"componentType": "SERVICE", "properties": [], "requirements": {}, "toscaArtifacts": {}, "tags": ["CLI", "${name}"], "artifacts": {}, "description": "${description}", "serviceApiArtifacts": {}, "capabilities": {}, "name": "${name}", "componentInstancesProperties": {}, "componentInstancesAttributes": {}, "contactId": "${onap-username}", "groups": [], "projectCode": "${project-code}", "deploymentArtifacts": {}, "attributes": [], "componentInstances": [], "categories": [{"normalizedName": "${category}", "name": "${category-display-name}", "uniqueId": "serviceNewCategory.${category}", "icons": ["${icon-id}"]}], "icon": "${icon-id}"}' + success_codes: + - 200 + - 201 + result_map: + ID: $b{$.uniqueId} + |