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": {
        "configSpec": {
            "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": {
                "blocked": {
                    "value": false
                },
                "vmDirectPathGen2Allowed": {
                    "value": false
                },
                "inShapingPolicy": {
                    "enabled": {
                        "value": false
                    },
                    "averageBandwidth": {
                        "value": 0
                    },
                    "peakBandwidth": {
                        "value": 0
                    },
                    "burstSize": {
                        "value": 0
                    }
                },
                "outShapingPolicy": {
                    "enabled": {
                        "value": false
                    },
                    "averageBandwidth": {
                        "value": 0
                    },
                    "peakBandwidth": {
                        "value": 0
                    },
                    "burstSize": {
                        "value": 0
                    }
                },
                "vendorSpecificConfig": {
                    "keyValue": [
                        {
                            "_typeName": "string",
                            "key": "string",
                            "opaqueData": "string"
                        }
                    ]
                },
                "networkResourcePoolKey": {
                    "value": "string"
                },
                "filterPolicy": {
                    "filterConfig": [
                        {
                            "_typeName": "string",
                            "inherited": false,
                            "key": "string",
                            "agentName": "string",
                            "slotNumber": "string",
                            "parameters": {
                                "parameters": [
                                    "string"
                                ]
                            },
                            "onFailure": "string"
                        }
                    ]
                }
            },
            "host": [
                {
                    "_typeName": "string",
                    "dynamicProperty": [
                        {
                            "_typeName": "string",
                            "name": "string",
                            "val": {
                                "_typeName": "string"
                            }
                        }
                    ],
                    "operation": "string",
                    "host": {
                        "type": "string",
                        "value": "string"
                    },
                    "backing": {
                        "_typeName": "string"
                    },
                    "maxProxySwitchPorts": 0,
                    "vendorSpecificConfig": [
                        {
                            "_typeName": "string",
                            "key": "string",
                            "opaqueData": "string"
                        }
                    ]
                }
            ],
            "extensionKey": "string",
            "description": "string",
            "policy": {
                "autoPreInstallAllowed": false,
                "autoUpgradeAllowed": false,
                "partialUpgradeAllowed": false
            },
            "vendorSpecificConfig": [
                {
                    "_typeName": "string",
                    "key": "string",
                    "opaqueData": "string"
                }
            ],
            "contact": {
                "name": "string",
                "contact": "string"
            },
            "switchIpAddress": "string",
            "defaultProxySwitchMaxNumPorts": 0,
            "infrastructureTrafficResourceConfig": [
                {
                    "_typeName": "string",
                    "key": "string",
                    "description": "string",
                    "allocationInfo": {
                        "limit": 0,
                        "shares": {
                            "shares": 0,
                            "level": "string"
                        },
                        "reservation": 0
                    }
                }
            ],
            "netResourcePoolTrafficResourceConfig": [
                {
                    "_typeName": "string",
                    "key": "string",
                    "description": "string",
                    "allocationInfo": {
                        "limit": 0,
                        "shares": {
                            "shares": 0,
                            "level": "string"
                        },
                        "reservation": 0
                    }
                }
            ],
            "networkResourceControlVersion": "string"
        },
        "productInfo": {
            "name": "string",
            "vendor": "string",
            "version": "string",
            "build": "string",
            "forwardingClass": "string",
            "bundleId": "string",
            "bundleUrl": "string"
        },
        "capability": {
            "dvsOperationSupported": false,
            "dvPortGroupOperationSupported": false,
            "dvPortOperationSupported": false,
            "compatibleHostComponentProductInfo": [
                {
                    "_typeName": "string",
                    "productLineId": "string",
                    "version": "string"
                }
            ],
            "featuresSupported": {
                "networkResourceManagementSupported": false,
                "vmDirectPathGen2Supported": false,
                "nicTeamingPolicy": [
                    "string"
                ],
                "networkResourcePoolHighShareValue": 0,
                "networkResourceManagementCapability": {
                    "networkResourceManagementSupported": false,
                    "networkResourcePoolHighShareValue": 0,
                    "qosSupported": false,
                    "userDefinedNetworkResourcePoolsSupported": false,
                    "networkResourceControlVersion3Supported": false,
                    "userDefinedInfraTrafficPoolSupported": false
                },
                "healthCheckCapability": {
                    "_typeName": "string"
                },
                "rollbackCapability": {
                    "rollbackSupported": false
                },
                "backupRestoreCapability": {
                    "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"
        }
    ]
}