Hi,
I'm trying to create a AWS enpoint on VRA 7.6 using the VRA API via Postman, but I'm getting the following error:
Tenantable endpoints are not implemented.
Below is the sample payload. Am I missing something?
{
"extensionData": {
"entries": [
{
"key": "Extensibility.Lifecycle.Properties.VMPSMasterWorkflow32.BuildingMachine",
"value": {
"type": "complex",
"componentTypeId": "com.vmware.csp.core.endpoint.configuration",
"componentId": null,
"classId": "Infrastructure.CustomProperty",
"typeFilter": null,
"values": {
"entries": [
{
"key": "value",
"value": {
"type": "string",
"value": "*"
}
},
{
"key": "secureString",
"value": {
"type": "boolean",
"value": false
}
},
{
"key": "prompt-user",
"value": {
"type": "boolean",
"value": false
}
}
]
}
}
},
{
"key": "password",
"value": {
"type": "secureString",
"value": "1233"
}
},
{
"key": "Extensibility.Lifecycle.Properties.CloudProvisioningWorkflow.BuildComplete",
"value": {
"type": "complex",
"componentTypeId": "com.vmware.csp.core.endpoint.configuration",
"componentId": null,
"classId": "Infrastructure.CustomProperty",
"typeFilter": null,
"values": {
"entries": [
{
"key": "value",
"value": {
"type": "string",
"value": "*"
}
},
{
"key": "secureString",
"value": {
"type": "boolean",
"value": false
}
},
{
"key": "prompt-user",
"value": {
"type": "boolean",
"value": false
}
}
]
}
}
},
{
"key": "Extensibility.Lifecycle.Properties.VMPSMasterWorkflow32.MachineProvisioned",
"value": {
"type": "complex",
"componentTypeId": "com.vmware.csp.core.endpoint.configuration",
"componentId": null,
"classId": "Infrastructure.CustomProperty",
"typeFilter": null,
"values": {
"entries": [
{
"key": "value",
"value": {
"type": "string",
"value": "*"
}
},
{
"key": "secureString",
"value": {
"type": "boolean",
"value": false
}
},
{
"key": "prompt-user",
"value": {
"type": "boolean",
"value": false
}
}
]
}
}
},
{
"key": "Extensibility.Lifecycle.Properties.VMPSMasterWorkflow32.Disposing",
"value": {
"type": "complex",
"componentTypeId": "com.vmware.csp.core.endpoint.configuration",
"componentId": null,
"classId": "Infrastructure.CustomProperty",
"typeFilter": null,
"values": {
"entries": [
{
"key": "value",
"value": {
"type": "string",
"value": "*"
}
},
{
"key": "secureString",
"value": {
"type": "boolean",
"value": false
}
},
{
"key": "prompt-user",
"value": {
"type": "boolean",
"value": false
}
}
]
}
}
},
{
"key": " Extensibility.Lifecycle.Properties.VMPSMasterWorkflow32.UnprovisionMachine",
"value": {
"type": "complex",
"componentTypeId": "com.vmware.csp.core.endpoint.configuration",
"componentId": null,
"classId": "Infrastructure.CustomProperty",
"typeFilter": null,
"values": {
"entries": [
{
"key": "value",
"value": {
"type": "string",
"value": "*"
}
},
{
"key": "secureString",
"value": {
"type": "boolean",
"value": false
}
},
{
"key": "prompt-user",
"value": {
"type": "boolean",
"value": false
}
}
]
}
}
},
{
"key": "Extensibility.Lifecycle.Properties.CloudProvisioningWorkflow.CloudProvisioning",
"value": {
"type": "complex",
"componentTypeId": "com.vmware.csp.core.endpoint.configuration",
"componentId": null,
"classId": "Infrastructure.CustomProperty",
"typeFilter": null,
"values": {
"entries": [
{
"key": "value",
"value": {
"type": "string",
"value": "*"
}
},
{
"key": "secureString",
"value": {
"type": "boolean",
"value": false
}
},
{
"key": "prompt-user",
"value": {
"type": "boolean",
"value": false
}
}
]
}
}
},
{
"key": "username",
"value": {
"type": "string",
"value": "XXXXXXXXXXXXXXXXXXXX"
}
}
]
},
"associations": [
{
"fromEndpointType": "AmazonEC2",
"toEndpointType": "Proxy",
"toEndpointId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"fromEndpointId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"version": "1",
"customProperties": null,
"associationTypeInfoId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
],
"typeId": "AmazonEC2",
"name": "aa-bb-nonprod",
"typeDisplayName": "Amazon EC2",
"uri": "",
"tenantId": "aabbnonprod",
"version": 1,
"description": "AA BB - NonProd"
}
Issue resolved. The problem was with the "tenantId" field bein populated.
By the way this works:
{
"extensionData": {
"entries": [
{
"key": "password",
"value": {
"type": "secureString",
"value": "************"
}
},
{
"key": "username",
"value": {
"type": "string",
"value": "XXXXXXXXXXXXXX"
}
},
{
"key": "Property1",
"value": {
"classId": "Infrastructure.CustomProperty",
"componentId": null,
"componentTypeId": "com.vmware.csp.core.endpoint.configuration",
"type": "complex",
"typeFilter": null,
"values": {
"entries": [
{
"key": "value",
"value": {
"type": "string",
"value": "*"
}
},
{
"key": "secureString",
"value": {
"type": "boolean",
"value": false
}
},
{
"key": "prompt-user",
"value": {
"type": "boolean",
"value": false
}
}
]
}
}
},
{
"key": "Property2",
"value": {
"classId": "Infrastructure.CustomProperty",
"componentId": null,
"componentTypeId": "com.vmware.csp.core.endpoint.configuration",
"type": "complex",
"typeFilter": null,
"values": {
"entries": [
{
"key": "value",
"value": {
"type": "string",
"value": "*"
}
},
{
"key": "secureString",
"value": {
"type": "boolean",
"value": false
}
},
{
"key": "prompt-user",
"value": {
"type": "boolean",
"value": false
}
}
]
}
}
},
{
"key": "Property3",
"value": {
"classId": "Infrastructure.CustomProperty",
"componentId": null,
"componentTypeId": "com.vmware.csp.core.endpoint.configuration",
"type": "complex",
"typeFilter": null,
"values": {
"entries": [
{
"key": "value",
"value": {
"type": "string",
"value": "*"
}
},
{
"key": "secureString",
"value": {
"type": "boolean",
"value": false
}
},
{
"key": "prompt-user",
"value": {
"type": "boolean",
"value": false
}
}
]
}
}
},
{
"key": "Property4 ",
"value": {
"classId": "Infrastructure.CustomProperty",
"componentId": null,
"componentTypeId": "com.vmware.csp.core.endpoint.configuration",
"type": "complex",
"typeFilter": null,
"values": {
"entries": [
{
"key": "value",
"value": {
"type": "string",
"value": "*"
}
},
{
"key": "secureString",
"value": {
"type": "boolean",
"value": false
}
},
{
"key": "prompt-user",
"value": {
"type": "boolean",
"value": false
}
}
]
}
}
},
{
"key": "Property5",
"value": {
"classId": "Infrastructure.CustomProperty",
"componentId": null,
"componentTypeId": "com.vmware.csp.core.endpoint.configuration",
"type": "complex",
"typeFilter": null,
"values": {
"entries": [
{
"key": "value",
"value": {
"type": "string",
"value": "ABC"
}
},
{
"key": "secureString",
"value": {
"type": "boolean",
"value": false
}
},
{
"key": "prompt-user",
"value": {
"type": "boolean",
"value": false
}
}
]
}
}
}
]
},
"associations": [
{
"id": "********-****-****-****-************",
"toEndpointId": "********-****-****-****-************",
"associationTypeInfoId": "********-****-****-****-************",
"customProperties": null
}
],
"typeId": "AmazonEC2",
"typeDisplayName": "Amazon EC2",
"tenantable": false,
"id": "",
"@type": "Endpoint",
"name": "testendpointAPI",
"description": "test endpoint created via VRA API",
"version": 0,
"uri": "",
"tenantId": null,
"trustThumbprint": null,
"createdDate": null,
"lastUpdated": null,
"capabilities": null
}