Http Nfc Lease Http Nfc Lease Pull From Urls Task

Http Nfc Lease Http Nfc Lease Pull From Urls Task

Upgrades current lease from push to pull mode.

Request
URI
POST
https://{vcenter-host}/sdk/vim25/{release}/HttpNfcLease/{moId}/HttpNfcLeasePullFromUrls_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 HttpNfcLease/{moId}.

string
release
Required

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


Request Body
HttpNfcLeasePullFromUrlsRequestType of type(s) application/json
Required
{
    "files": [
        {
            "_typeName": "string",
            "targetDeviceId": "string",
            "url": "string",
            "memberName": "string",
            "create": false,
            "sslThumbprint": "string",
            "httpHeaders": [
                {
                    "_typeName": "string",
                    "key": "string",
                    "value": "string"
                }
            ],
            "size": 0
        }
    ]
}
files
Optional

[in] List of remote source file descriptors There should be the same number of HttpNfcLeaseSourceFile as HttpNfcLeaseDeviceUrl provided by this lease. Privilege VApp.PullFromUrls is required.

Authentication
This operation uses the following authentication methods.
Responses
200

OK

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

500

InvalidState: if the lease has already been aborted.

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"
        }
    ]
}