Esx. Settings. Repository. Software. Drafts List

Esx. Settings. Repository. Software. Drafts List

Returns information about the software drafts for the specified cluster that match the Esx.Settings.Repository.Software.Drafts.FilterSpec.

This operation was added in vSphere API 9.0.0.0.

Returns an authorization error if you do not have all of the privileges described as follows:

  • Operation execution requires VcIntegrity.lifecycleSoftwareSpecification.Read.
Request
URI
GET
https://{api_host}/esx/settings/repository/software/drafts
COPY
Query Parameters
string of array
software_spec_ids
Optional

Software specification identifier for which the draft is created. If the software specification identifier is set to -1, global software drafts are returned.

This property was added in vSphere API 9.0.0.0.

If missing or null or empty, drafts from all software specification identifiers are returned.

When clients pass a value of this schema as a parameter, the property must contain identifiers for the resource type: com.vmware.esx.settings.repository.software_spec. When operations return a value of this schema as a response, the property will contain identifiers for the resource type: com.vmware.esx.settings.repository.software_spec.

string of array
owners
Optional

Owners of the drafts.

This property was added in vSphere API 9.0.0.0.

If missing or null or empty, drafts from all owners will be returned.


Authentication
This operation uses the following authentication methods.
Responses
200

Map of software drafts in the repository keyed by their identifiers that match the Esx.Settings.Repository.Software.Drafts.FilterSpec.

The key in the response map will be an identifier for the resource type: com.vmware.esx.settings.draft.

{
    "0": "E",
    "1": "s",
    "2": "x",
    "3": ".",
    "4": "S",
    "5": "e",
    "6": "t",
    "7": "t",
    "8": "i",
    "9": "n",
    "10": "g",
    "11": "s",
    "12": ".",
    "13": "R",
    "14": "e",
    "15": "p",
    "16": "o",
    "17": "s",
    "18": "i",
    "19": "t",
    "20": "o",
    "21": "r",
    "22": "y",
    "23": ".",
    "24": "S",
    "25": "o",
    "26": "f",
    "27": "t",
    "28": "w",
    "29": "a",
    "30": "r",
    "31": "e",
    "32": ".",
    "33": "D",
    "34": "r",
    "35": "a",
    "36": "f",
    "37": "t",
    "38": "s",
    "39": ".",
    "40": "I",
    "41": "n",
    "42": "f",
    "43": "o",
    "44": " ",
    "45": "O",
    "46": "b",
    "47": "j",
    "48": "e",
    "49": "c",
    "50": "t"
}

401

If the caller is not authenticated.

Returns Vapi.Std.Errors.Unauthenticated of type(s) application/json
"Vapi.Std.Errors.Unauthenticated Object"

403

If the caller does not have the necessary privileges.

Returns Vapi.Std.Errors.Unauthorized of type(s) application/json
"Vapi.Std.Errors.Unauthorized Object"

500

If there is unknown internal error. The accompanying error message will give more details about the failure.

Returns Vapi.Std.Errors.Error of type(s) application/json
"Vapi.Std.Errors.Error Object"

503

If the service is not available.

Returns Vapi.Std.Errors.ServiceUnavailable of type(s) application/json
"Vapi.Std.Errors.ServiceUnavailable Object"

Code Samples
COPY
                    curl -H 'Authorization: <value>' https://{api_host}/esx/settings/repository/software/drafts