Storage Pod Create DVS Task

Storage Pod Create DVS Task

Create a DistributedVirtualSwitch in the folder according to the specified DVSCreateSpec.

The specified Folder must be a Network entity folder.

Required privileges: DVSwitch.Create

Request
URI
POST
https://{vcenter-host}/sdk/vim25/{release}/StoragePod/{moId}/CreateDVS_Task
COPY
Path Parameters
string
moId
Required

The unique identifier for the managed object to which the method attaches; the serialized managed object reference for a request has the form moType/moId, in this case StoragePod/{moId}.

string
release
Required

The vSphere release schema. The current specification covers vSphere 8.0.2.0 APIs.


Request Body
CreateDVSRequestType of type(s) application/json
Required
{
    "spec": {
        "_typeName": "string",
        "configSpec": {
            "_typeName": "string",
            "dynamicProperty": [
                {
                    "_typeName": "string",
                    "name": "string",
                    "val": {
                        "_typeName": "string"
                    }
                }
            ],
            "configVersion": "string",
            "name": "string",
            "numStandalonePorts": 0,
            "maxPorts": 0,
            "uplinkPortPolicy": {
                "_typeName": "string"
            },
            "uplinkPortgroup": [
                {
                    "_typeName": "string",
                    "type": "string",
                    "value": "string"
                }
            ],
            "defaultPortConfig": {
                "_typeName": "string",
                "blocked": {
                    "_typeName": "string",
                    "inherited": false,
                    "value": false
                },
                "vmDirectPathGen2Allowed": {
                    "_typeName": "string",
                    "inherited": false,
                    "value": false
                },
                "inShapingPolicy": {
                    "_typeName": "string",
                    "inherited": false,
                    "enabled": {
                        "_typeName": "string",
                        "inherited": false,
                        "value": false
                    },
                    "averageBandwidth": {
                        "_typeName": "string",
                        "inherited": false,
                        "value": 0
                    },
                    "peakBandwidth": {
                        "_typeName": "string",
                        "inherited": false,
                        "value": 0
                    },
                    "burstSize": {
                        "_typeName": "string",
                        "inherited": false,
                        "value": 0
                    }
                },
                "outShapingPolicy": {
                    "_typeName": "string",
                    "inherited": false,
                    "enabled": {
                        "_typeName": "string",
                        "inherited": false,
                        "value": false
                    },
                    "averageBandwidth": {
                        "_typeName": "string",
                        "inherited": false,
                        "value": 0
                    },
                    "peakBandwidth": {
                        "_typeName": "string",
                        "inherited": false,
                        "value": 0
                    },
                    "burstSize": {
                        "_typeName": "string",
                        "inherited": false,
                        "value": 0
                    }
                },
                "vendorSpecificConfig": {
                    "_typeName": "string",
                    "inherited": false,
                    "keyValue": [
                        {
                            "_typeName": "string",
                            "key": "string",
                            "opaqueData": "string"
                        }
                    ]
                },
                "networkResourcePoolKey": {
                    "_typeName": "string",
                    "inherited": false,
                    "value": "string"
                },
                "filterPolicy": {
                    "_typeName": "string",
                    "inherited": false,
                    "filterConfig": [
                        {
                            "_typeName": "string",
                            "inherited": false,
                            "key": "string",
                            "agentName": "string",
                            "slotNumber": "string",
                            "parameters": {
                                "_typeName": "string",
                                "parameters": [
                                    "string"
                                ]
                            },
                            "onFailure": "string"
                        }
                    ]
                }
            },
            "host": [
                {
                    "_typeName": "string",
                    "dynamicProperty": [
                        {
                            "_typeName": "string",
                            "name": "string",
                            "val": {
                                "_typeName": "string"
                            }
                        }
                    ],
                    "operation": "string",
                    "host": {
                        "_typeName": "string",
                        "type": "string",
                        "value": "string"
                    },
                    "backing": {
                        "_typeName": "string"
                    },
                    "maxProxySwitchPorts": 0,
                    "vendorSpecificConfig": [
                        {
                            "_typeName": "string",
                            "key": "string",
                            "opaqueData": "string"
                        }
                    ]
                }
            ],
            "extensionKey": "string",
            "description": "string",
            "policy": {
                "_typeName": "string",
                "autoPreInstallAllowed": false,
                "autoUpgradeAllowed": false,
                "partialUpgradeAllowed": false
            },
            "vendorSpecificConfig": [
                {
                    "_typeName": "string",
                    "key": "string",
                    "opaqueData": "string"
                }
            ],
            "contact": {
                "_typeName": "string",
                "name": "string",
                "contact": "string"
            },
            "switchIpAddress": "string",
            "defaultProxySwitchMaxNumPorts": 0,
            "infrastructureTrafficResourceConfig": [
                {
                    "_typeName": "string",
                    "key": "string",
                    "description": "string",
                    "allocationInfo": {
                        "_typeName": "string",
                        "limit": 0,
                        "shares": {
                            "_typeName": "string",
                            "shares": 0,
                            "level": "string"
                        },
                        "reservation": 0
                    }
                }
            ],
            "netResourcePoolTrafficResourceConfig": [
                {
                    "_typeName": "string",
                    "key": "string",
                    "description": "string",
                    "allocationInfo": {
                        "_typeName": "string",
                        "limit": 0,
                        "shares": {
                            "_typeName": "string",
                            "shares": 0,
                            "level": "string"
                        },
                        "reservation": 0
                    }
                }
            ],
            "networkResourceControlVersion": "string"
        },
        "productInfo": {
            "_typeName": "string",
            "name": "string",
            "vendor": "string",
            "version": "string",
            "build": "string",
            "forwardingClass": "string",
            "bundleId": "string",
            "bundleUrl": "string"
        },
        "capability": {
            "_typeName": "string",
            "dvsOperationSupported": false,
            "dvPortGroupOperationSupported": false,
            "dvPortOperationSupported": false,
            "compatibleHostComponentProductInfo": [
                {
                    "_typeName": "string",
                    "productLineId": "string",
                    "version": "string"
                }
            ],
            "featuresSupported": {
                "_typeName": "string",
                "networkResourceManagementSupported": false,
                "vmDirectPathGen2Supported": false,
                "nicTeamingPolicy": [
                    "string"
                ],
                "networkResourcePoolHighShareValue": 0,
                "networkResourceManagementCapability": {
                    "_typeName": "string",
                    "networkResourceManagementSupported": false,
                    "networkResourcePoolHighShareValue": 0,
                    "qosSupported": false,
                    "userDefinedNetworkResourcePoolsSupported": false,
                    "networkResourceControlVersion3Supported": false,
                    "userDefinedInfraTrafficPoolSupported": false
                },
                "healthCheckCapability": {
                    "_typeName": "string"
                },
                "rollbackCapability": {
                    "_typeName": "string",
                    "rollbackSupported": false
                },
                "backupRestoreCapability": {
                    "_typeName": "string",
                    "backupRestoreSupported": false
                },
                "networkFilterSupported": false,
                "macLearningSupported": false
            }
        }
    }
}
spec
Required

Specification to create a DistributedVirtualSwitch.

Authentication
This operation uses the following authentication methods.
Responses
200

This method returns a Task object with which to monitor the operation. After successful completion, the Task.info.result property contains the newly registered DistributedVirtualSwitch.

Returns MoRefTask of type(s) application/json
This response body class contains all of the following: MoRefExtensibleManagedObject
{
    "_typeName": "string",
    "type": "string",
    "value": "string"
}

500

NotSupported: if called directly on a host.

DvsNotAuthorized: if login-session's extension key does not match (extensionKey).

Returns VimFault of type(s) application/json
This response body class contains all of the following: MethodFault
{
    "_typeName": "string",
    "faultCause": "MethodFault Object",
    "faultMessage": [
        {
            "_typeName": "string",
            "key": "string",
            "arg": [
                {
                    "_typeName": "string",
                    "key": "string",
                    "value": {
                        "_typeName": "string"
                    }
                }
            ],
            "message": "string"
        }
    ]
}