SddcResource

SddcResource
SddcResource

Common representation of an SDDC resource. resourceType identifies the kind; the corresponding type-specific sub-object (network, datastore, …) carries kind-specific fields. Adding a new resource type is purely additive — existing consumers are unaffected because unknown fields are ignored during deserialization.

To add a new resource type, add its constant to SddcResourceConstants, add its schema as a new optional property here, and register it in SddcResourceModel.

JSON Example
{
    "resourceType": "NETWORK",
    "moid": "string",
    "name": "string",
    "network": {
        "isDefault": false,
        "vdsName": "string",
        "datacenterName": "string",
        "vcenterName": "string"
    }
}
string
resourceType
Required  

Identifies the resource type (e.g. NETWORK).

string
moid
Required  

vSphere Managed Object ID common to all resource types (e.g. dvportgroup-101).

string
name
Required  

Resource display name common to all resource types.

network
Optional

Network-specific fields for a distributed virtual port group (DVPG) resource.