Profile Manager Create Profile

Profile Manager Create Profile

Create a profile from the specified CreateSpec.

Required privileges: Profile.Create

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

string
release
Required

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


Request Body
CreateProfileRequestType of type(s) application/json
Required
"CreateProfileRequestType Object"
createSpec
Required

Specification for the profile being created. Usually a derived class CreateSpec can be used to create the Profile.

Authentication
This operation uses the following authentication methods.
Responses
200

Profile created from the specified createSpec.

Returns MoRefProfile of type(s) application/json
This response body class contains all of the following: InlineMoRefProfile0
"MoRefProfile Object"

500

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.

Returns DuplicateName of type(s) application/json
"DuplicateName Object"
string
name
Required

The name that is already bound in the name space.

object
Required

Managed object that already holds the name.


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