Pbm Profile Profile Manager Pbm Query Profile

Pbm Profile Profile Manager Pbm Query Profile

Returns requirement profile ids or resource profile ids, or both.

Required privileges: StorageProfile.View

Request
URI
POST
https://{vcenter-host}/sdk/vim25/{release}/pbm/PbmProfileProfileManager/{moId}/PbmQueryProfile
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 8.0.3.0 APIs.


Request Body
PbmQueryProfileRequestType of type(s) application/json
Required

Show optional properties

{
    "resourceType": {
        "resourceType": "string"
    }
}
{
    "resourceType": {
        "_typeName": "string",
        "resourceType": "string"
    },
    "profileCategory": "string"
}
resourceType
Required

The PbmProfileResourceType data object defines the vSphere resource type that is supported for profile management.

This structure may be used only with operations rendered under /pbm.

string
profileCategory
Optional

Profile category. The string value must correspond to one of the PbmProfileCategoryEnumEnum values. If you do not specify a profile category, the method returns profiles in all categories.

Authentication
This operation uses the following authentication methods.
Responses
200

Array of storage profile identifiers.

Returns Array of PbmProfileId of type(s) application/json
[
    {
        "_typeName": "string",
        "uniqueId": "string"
    }
]

500

InvalidArgument: if the Server does not recognize the specified resourceType or profileCategory.

Returns InvalidArgument of type(s) application/json
This response body class contains all of the following: RuntimeFault
{
    "_typeName": "string",
    "faultCause": "MethodFault Object",
    "faultMessage": [
        {
            "_typeName": "string",
            "key": "string",
            "arg": [
                {
                    "_typeName": "string",
                    "key": "string",
                    "value": {
                        "_typeName": "string"
                    }
                }
            ],
            "message": "string"
        }
    ],
    "invalidProperty": "string"
}
string
invalidProperty
Optional

Optional name of the invalid property.