Please note the values currently used in the test data may not be representative of actually values in ONAP A&AI.
Request Headers:
X-FromAppId : AAA-Temp-Tool
X-TransactionId : AAI-Temp-Tool
Real-Time : true
Content-Type : application/json
Accept : application/json
Create Cloud Region
PUT https://aai-ip:8443/aai/v13/cloud-infrastructure/cloud-regions/cloud-region/pod25/RegionOne
...
"tenant-id": " cf142fb96ce24770946c0f7117c0aeb3 ",
"tenant-name": "APPC"
}
Create Flavor
{
"flavor-id": "764efb04-5a46-4806-a766-2bdd24559f39",
"flavor-name": "m1.medium",
"flavor-vcpus": 2,
"flavor-ram": 4096,
"flavor-disk": 40,
"flavor-ephemeral": 0,
"flavor-selflink": http://10.12.25.2:8774/v2.1/cf142fb96ce24770946c0f7117c0aeb3/flavors/764efb04-5a46-4806-a766-2bdd24559f39
}
Create Image
{
"image-id": "6e219e86-cd94-4989-9119-def29aa10b12",
"image-name": "unknown",
"image-architecture": "unknown",
"image-os-distro": "unknown",
"image-os-version": "unknown",
"application": "unknown",
"application-vendor": "unknown",
"application-version": "unknown",
"image-selflink": http://10.12.25.2:8774/cf142fb96ce24770946c0f7117c0aeb3/images/6e219e86-cd94-4989-9119-def29aa10b12
}
Create vServer 1
...
"is-closed-loop-disabled": false
}
Create vServer 2 (with image and flavor)
PUT https://aai-ip10.12.5.114:8443/aai/v13/cloud-infrastructure/cloud-regions/cloud-region/pod25/RegionOne/tenantsimages/tenant/cf142fb96ce24770946c0f7117c0aeb3/vservers/vserver/06e8ea84-60b1-4e93-99da-73e589da9b69image/6e219e86-cd94-4989-9119-def29aa10b12
{
"vserver-id": "06e8ea847d2b1698-60b19b23-4e934a62-99da9aab-73e589da9b6927629f15a2cc",
"vserver-name": "zdfw1lb01dns01zdfw1lb01lb01",
"vserver-name2": "zdfw1lb01dns01zdfw1lb01lb01",
"prov-status": "RunningACTIVE",
"vserver-selflink": "http://10.12.25.2:8774/v2.1/cf142fb96ce24770946c0f7117c0aeb3/servers/06e8ea847d2b1698-60b19b23-4e934a62-99da9aab-73e589da9b6927629f15a2cc",
"in-maint": false,
"is-closed-loop-disabled": false,
"resource-version": "1525988514674",
"relationship-list": {
"relationship": [{
"related-to": "flavor",
"relationship-label": "org.onap.relationships.inventory.Uses",
"related-link": "/aai/v13/cloud-infrastructure/cloud-regions/cloud-region/pod25/RegionOne/flavors/flavor/764efb04-5a46-4806-a766-2bdd24559f39",
"relationship-data": [{
"relationship-key": "cloud-region.cloud-owner",
"relationship-value": "pod25"
}, {
"relationship-key": "cloud-region.cloud-region-id",
"relationship-value": "RegionOne"
}, {
"relationship-key": "flavor.flavor-id",
"relationship-value": "764efb04-5a46-4806-a766-2bdd24559f39"
}],
"related-to-property": [{
"property-key": "flavor.flavor-name",
"property-value": "m1.medium"
}]
}, {
"related-to": "image",
"relationship-label": "org.onap.relationships.inventory.Uses",
"related-link": "/aai/v13/cloud-infrastructure/cloud-regions/cloud-region/pod25/RegionOne/images/image/6e219e86-cd94-4989-9119-def29aa10b12",
"relationship-data": [{
"relationship-key": "cloud-region.cloud-owner",
"relationship-value": "pod25"
}, {
"relationship-key": "cloud-region.cloud-region-id",
"relationship-value": "RegionOne"
}, {
"relationship-key": "image.image-id",
"relationship-value": "6e219e86-cd94-4989-9119-def29aa10b12"
}],
"related-to-property": [{
"property-key": "image.image-name",
"property-value": "unknown"
}]
}]
}
}
Create Base Model
PUT https://aai-ip:8443/aai/v13/service-design-and-creation/models/model/APPC-vLB
...