Pbm Profile Profile Manager Pbm Query Default Requirement Profile

Pbm Profile Profile Manager Pbm Query Default Requirement Profile

Returns the default requirement profile ID for the given datastore.

For legacy hub the API returns null.

Required privileges: StorageProfile.View

Request
URI
POST
https://{api_host}/sdk/vim25/{release}/pbm/PbmProfileProfileManager/{moId}/PbmQueryDefaultRequirementProfile
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 PbmProfileProfileManager/{moId}.

string
release
Required

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


Request Body
Required
"PbmQueryDefaultRequirementProfileRequestType Object"
hub
Required

Placement hub (i.e. datastore).

Authentication
This operation uses the following authentication methods.
Responses
200

Profile Id of the Default Requirement Profile. For legacy hub the API returns null.

This response body class contains all of the following: PbmProfileId
{
    "0": "P",
    "1": "b",
    "2": "m",
    "3": "P",
    "4": "r",
    "5": "o",
    "6": "f",
    "7": "i",
    "8": "l",
    "9": "e",
    "10": "I",
    "11": "d",
    "12": " ",
    "13": "O",
    "14": "b",
    "15": "j",
    "16": "e",
    "17": "c",
    "18": "t"
}

500

InvalidArgument: If hub is invalid (does not denote a datastore).

PbmNonExistentHubs: If hub is non existent.

PbmFault: Internal service error.

Returns MethodFault of type(s) application/json
This response body class contains all of the following: InlineMethodFault0
"MethodFault Object"
faultCause
Optional

Fault which is the cause of this fault.

array of object
faultMessage
Optional

Message which has details about the error Message can also contain a key to message catalog which can be used to generate better localized messages.


Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/sdk/vim25/{release}/pbm/PbmProfileProfileManager/{moId}/PbmQueryDefaultRequirementProfile