Host Profile Manager Create Profile
Create a profile from the specified CreateSpec.
Required privileges: Profile.Create
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 HostProfileManager/{moId}.
The vSphere release schema. The current specification covers vSphere 9.1.0.0 APIs.
Show optional properties
{
"createSpec": {}
}
{
"createSpec": {
"_typeName": "string",
"name": "string",
"annotation": "string",
"enabled": false
}
}
Specification for the profile being created. Usually a derived class CreateSpec can be used to create the Profile.
Profile created from the specified createSpec.
{
"_typeName": "string",
"type": "string",
"value": "string"
}
DuplicateName: If a profile with the specified name already exists.
InvalidProfileReferenceHost: if the specified reference host is incompatible or no reference host has been specified.
{
"_typeName": "string",
"faultCause": {
"_typeName": "string",
"faultCause": "MethodFault Object",
"faultMessage": [
{
"_typeName": "string",
"key": "string",
"arg": [
{
"_typeName": "string",
"key": "string",
"value": {
"_typeName": "string"
}
}
],
"message": "string"
}
]
},
"faultMessage": [
{
"_typeName": "string",
"key": "string",
"arg": [
{
"_typeName": "string",
"key": "string",
"value": {
"_typeName": "string"
}
}
],
"message": "string"
}
],
"name": "string",
"object": {
"_typeName": "string",
"type": "string",
"value": "string"
}
}
The name that is already bound in the name space.
Managed object that already holds the name.
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"createSpec":"{}"}' https://{api_host}/sdk/vim25/{release}/HostProfileManager/{moId}/CreateProfile