vcenter nsx deployment software package: upload
Upload NSX binaries to vCenter server. This API would provide the URI which has to be used to upload the content. Warning: This operation is part of a new feature in development. It may be changed at any time and may not have all supported functionality implemented.
Request:
HTTP request
POST https://{server}/api/vcenter/nsx/deployment/software-package
?action=upload
?action=upload
{
"file_name" : "string"
}
"file_name" : "string"
}
Body Parameters:
Name | Type | Description |
---|---|---|
bold = required | ||
- | upload_spec | contains the filename. |
-.file_name | string | The file that needs to be uploaded. Warning: This attribute is part of a new feature in development. It may be changed at any time and may not have all supported functionality implemented. |
Response:
HTTP Status Code: 200
Response Body Structure:
{
"access_token" : "string",
"upload_URI" : "http://myurl.com"
}
"access_token" : "string",
"upload_URI" : "http://myurl.com"
}
Headers:
NoneType:
Name | Type | Description |
---|---|---|
bold = required | ||
- | upload_result | UploadResult contains the file name and the URI which has to be used to upload the content. |
-.access_token | string | An access token to an user who is granted to upload the NSX bundle. This can only be used to upload file which was passed in the upload spec. Warning: This attribute is part of a new feature in development. It may be changed at any time and may not have all supported functionality implemented. |
-.upload_URI | URI | The URL where the NSX bundle has to be uploaded. Warning: This attribute is part of a new feature in development. It may be changed at any time and may not have all supported functionality implemented. |
Errors:
HTTP Status Code | Type | Description |
---|---|---|
401 | unauthenticated | if the user can not be authenticated. |
400 | not_allowed_in_current_state | if the operation is not allowed in the current state. For Example upload or download is already in progress. |
500 | error | if there is some unknown internal error. The accompanying error message will give more details about the error. |