Net3 API Interface for Customer Portal

<back to all web services

ComputeTemplates

Requires Authentication
The following routes are available for this service:
POST/compute/templates
ComputeTemplates Parameters:
NameParameterData TypeRequiredDescription
datacenterLocationsbodyList<DatacenterLocations>No
DatacenterLocations Enum:
ACD
GMU
SPA
LAS
DEV
VCD
AWS
GCP
UAT
AZU
CNW
AUV
ATL
EXT
ComputeTemplatesResponse Parameters:
NameParameterData TypeRequiredDescription
ResultformList<TypeComputeTemplate>No
ResponseStatusformResponseStatusNo
TypeComputeTemplate Parameters:
NameParameterData TypeRequiredDescription
IdformstringNo
datacenterformDatacenterLocationsNo
orgNameformstringNo
vdcNameformstringNo
vdcNetworksformList<TypeNetwork>No
catalogNameformstringNo
vAppTemplateNameformstringNo
newvAppNameformstringNo
newvAppDescriptionformstringNo
vmsformList<TypeVM>No
ResponseBase Parameters:
NameParameterData TypeRequiredDescription
ContentformstringNo
errorMessageformstringNo
errorCodeformintNo
errorStatusformboolNo
DatacenterLocations Enum:
GMU
SPA
LAS
DEV
VCD
AWS
GCP
UAT
AZU
AUV
ATL
TypeNetwork Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
NameChangeformstringNo
PrimaryDNSformstringNo
SecondaryDNSformstringNo
DNSSuffixformstringNo
GatewayAddressformstringNo
NetworkMaskformstringNo
IPRangeformList<TypeIPRange>No
TypeIPRange Parameters:
NameParameterData TypeRequiredDescription
IpRangeBeginingformstringNo
IpRangeEndingformstringNo
TypeVM Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
NameLongformstringNo
StatusformstringNo
CPUformintNo
MemoryformulongNo
DiskSizeformList<ulong>No
HrefformstringNo
IdformstringNo
DiskCountformintNo
catalogNameformstringNo
containerformstringNo
containerNameformstringNo
guestOsformstringNo
hardwareVersionformintNo
hardwareVersionSpecifiedformboolNo
isBusyformboolNo
isBusySpecifiedformboolNo
isDeletedformboolNo
isDeletedSpecifiedformboolNo
isDeployedformboolNo
isDeployedSpecifiedformboolNo
isInMaintenanceModeformboolNo
isInMaintenanceModeSpecifiedformboolNo
isPublishedformboolNo
isPublishedSpecifiedformboolNo
isVAppTemplateformboolNo
isVAppTemplateSpecifiedformboolNo
memoryMBformintNo
memoryMBSpecifiedformboolNo
numberOfCpusformintNo
numberOfCpusSpecifiedformboolNo
storageProfileNameformstringNo
vdcformstringNo
hasDRformboolNo
isDRActiveformboolNo
CpuHotAddEnabledSpecifiedformboolNo
CpuHotAddEnabledformboolNo
MemoryHotAddEnabledSpecifiedformboolNo
MemoryHotAddEnabledformboolNo
vmToolsVersionformintNo
vmToolsVersionSpecifiedformboolNo
vcformstringNo
morefformstringNo
hostNameformstringNo
vmHostTypeformstringNo
networkInfoRawformstringNo
vmInstanceTypeformstringNo
MetricformSimpleMetricType[]No
DisksformList<TypeDisk>No
NicsformList<TypeNic>No
NetworkConnectionSectionformNetworkConnectionSectionNo
SimpleMetricType Parameters:
NameParameterData TypeRequiredDescription
nameformstringNo
unitformstringNo
valueformdecimalNo
TypeDisk Parameters:
NameParameterData TypeRequiredDescription
autoDeleteformboolNo
bootformboolNo
deviceNameformstringNo
indexformintNo
interface__formstringNo
kindformstringNo
licensesformstring[]No
modeformstringNo
sourceformstringNo
typeformstringNo
sizeformulongNo
TypeNic Parameters:
NameParameterData TypeRequiredDescription
VMIdformstringNo
VMNameformstringNo
NicIdformstringNo
NicNameformstringNo
IsConnectedformboolNo
NetworkNameformstringNo
NetworkIdformstringNo
IsPrimaryNicformboolNo
IPModeformstringNo
IPAddressformstringNo
MacAddressformstringNo
NetworkAdapterTypeformstringNo
NetworkConnectionSection Parameters:
NameParameterData TypeRequiredDescription
InfoformstringNo
PrimaryNetworkConnectionIndexformintNo
NetworkConnectionformNetworkConnectionNo
LinkformLinkTypeNo
requiredformboolNo
hrefformstringNo
typeformstringNo
NetworkConnection Parameters:
NameParameterData TypeRequiredDescription
NetworkConnectionIndexformintNo
IpAddressformstringNo
ExternalIpAddressformstringNo
IsConnectedformboolNo
MACAddressformstringNo
IpAddressAllocationModeformstringNo
needsCustomizationformboolNo
networkformstringNo
LinkType Parameters:
NameParameterData TypeRequiredDescription
hrefformstringNo
idformstringNo
typeformstringNo
nameformstringNo
relformstringNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /compute/templates HTTP/1.1 
Host: n3tapi.palmettovdc.com 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	datacenterLocations: 
	[
		ACD
	]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	result: 
	[
		{
			id: String,
			datacenter: GMU,
			orgName: String,
			vdcName: String,
			vdcNetworks: 
			[
				{
					name: String,
					nameChange: String,
					primaryDNS: String,
					secondaryDNS: String,
					dnsSuffix: String,
					gatewayAddress: String,
					networkMask: String,
					ipRange: 
					[
						{
							ipRangeBegining: String,
							ipRangeEnding: String
						}
					],
					content: String,
					errorMessage: String,
					errorCode: 0,
					errorStatus: False
				}
			],
			catalogName: String,
			vAppTemplateName: String,
			newvAppName: String,
			newvAppDescription: String,
			vms: 
			[
				{
					name: String,
					nameLong: String,
					status: String,
					cpu: 0,
					memory: 0,
					diskSize: 
					[
						0
					],
					href: String,
					id: String,
					diskCount: 1,
					catalogName: String,
					container: String,
					containerName: String,
					guestOs: String,
					hardwareVersion: 0,
					hardwareVersionSpecified: False,
					isBusy: False,
					isBusySpecified: False,
					isDeleted: False,
					isDeletedSpecified: False,
					isDeployed: False,
					isDeployedSpecified: False,
					isInMaintenanceMode: False,
					isInMaintenanceModeSpecified: False,
					isPublished: False,
					isPublishedSpecified: False,
					isVAppTemplate: False,
					isVAppTemplateSpecified: False,
					memoryMB: 0,
					memoryMBSpecified: False,
					numberOfCpus: 0,
					numberOfCpusSpecified: False,
					storageProfileName: String,
					vdc: String,
					hasDR: False,
					isDRActive: False,
					cpuHotAddEnabledSpecified: False,
					cpuHotAddEnabled: False,
					memoryHotAddEnabledSpecified: False,
					memoryHotAddEnabled: False,
					vmToolsVersion: 0,
					vmToolsVersionSpecified: False,
					vc: String,
					moref: String,
					hostName: String,
					vmHostType: String,
					networkInfoRaw: String,
					vmInstanceType: String,
					metric: 
					[
						{
							name: String,
							unit: String,
							value: 0
						}
					],
					disks: 
					[
						{
							autoDelete: False,
							boot: False,
							deviceName: String,
							index: 0,
							interface__: String,
							kind: String,
							licenses: 
							[
								String
							],
							mode: String,
							source: String,
							type: String,
							size: 0,
							content: String,
							errorMessage: String,
							errorCode: 0,
							errorStatus: False
						}
					],
					nics: 
					[
						{
							vmId: String,
							vmName: String,
							nicId: String,
							nicName: String,
							isConnected: False,
							networkName: String,
							networkId: String,
							isPrimaryNic: False,
							ipMode: String,
							ipAddress: String,
							macAddress: String,
							networkAdapterType: String,
							content: String,
							errorMessage: String,
							errorCode: 0,
							errorStatus: False
						}
					],
					networkConnectionSection: 
					{
						info: String,
						primaryNetworkConnectionIndex: 0,
						networkConnection: 
						{
							networkConnectionIndex: 0,
							ipAddress: String,
							externalIpAddress: String,
							isConnected: False,
							macAddress: String,
							ipAddressAllocationMode: String,
							needsCustomization: False,
							network: String
						},
						link: 
						{
							href: String,
							id: String,
							type: String,
							name: String,
							rel: String
						},
						required: False,
						href: String,
						type: String
					},
					content: String,
					errorMessage: String,
					errorCode: 0,
					errorStatus: False
				}
			],
			content: String,
			errorMessage: String,
			errorCode: 0,
			errorStatus: False
		}
	],
	responseStatus: 
	{
		errorCode: String,
		message: String,
		stackTrace: String,
		errors: 
		[
			{
				errorCode: String,
				fieldName: String,
				message: String,
				meta: 
				{
					String: String
				}
			}
		],
		meta: 
		{
			String: String
		}
	}
}