| Local Methods | ||
Managed Object Types | Data Object Types | All Properties | All Methods |
Virtual machine storage profiles specify the storage requirements for virtual machine files. You use the vSphere Web Client to define virtual machine storage profiles. The requirements (PbmCapabilityProfile.constraints) impose constraints on the placement of virtual machine files.
The Storage Policy Server also supports datastore profiles. Datastore profiles define storage capabilities. Storage capabilities are resources defined by storage providers. Storage requirements are based on storage capabilities. When you associate a storage profile with a virtual machine or virtual disk, the Server sends the profile to the storage provider. When you perform compliance checking (PbmComplianceManager), the storage provider compares the requirements with the capabilities.
The PbmProfileProfileManager supports the following operations on virtual machine storage profiles.
The following figure shows the set of data objects that comprise a storage profile specification (PbmCapabilityProfileCreateSpec). You pass a storage profile specification to the Storage Policy Server when you call the following methods:
Properties
Name | Type | Description |
---|---|---|
None |
Methods
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the PbmProfileProfileManager used to make the method call. |
profile | PbmProfileId |
The profile that needs to be made default profile.
|
datastores | PbmPlacementHub[] |
The datastores for which the profile needs to be made as default profile.
|
Return Value
Type | Description |
---|---|
None |
Faults
Type | Description |
---|---|
InvalidArgument | Thrown if one of the hub is not a datastore or profile cannot be used as default requirement profile for any of the hub. |
NoPermission | Thrown if user does not have Datastore.UpdateVirtualMachineFiles privilege on the given datastores. |
PbmFault | Internal service error |
PbmLegacyHubsNotSupported | Thrown if any of the hub in datastores argument is legacy (VMFS or NFS) datastores. |
PbmNonExistentHubs | Thrown if any of the hub in datastores argument is non existent. |
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Events
Type | |
---|---|
None |
A profile is a collection of subprofiles (PbmCapabilitySubProfile). A subprofile references storage capabilities and defines requirements based on those capabilities.
To define a storage requirement, you specify constraint property instance values (PbmCapabilityPropertyInstance) that use Storage Policy API builtin types (PbmBuiltinType) to create expressions for compliance checking.
The profile specification contains lists of constraint property instances (PbmCapabilityProfileCreateSpec.constraints.subProfiles[].capability[].constraint[].propertyInstance[]). The constraints are based on storage capabilities described in metadata (PbmCapabilityPropertyMetadata) and in the datastore profiles.
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the PbmProfileProfileManager used to make the method call. |
createSpec | PbmCapabilityProfileCreateSpec |
Capability-based profile specification.
|
Return Value
Type | Description |
---|---|
PbmProfileId | Identifier for the new profile. |
Faults
Type | Description |
---|---|
InvalidArgument | Thrown if PbmCapabilityProfileCreateSpec is invalid. |
PbmDuplicateName | Thrown if a profile with the same name already exists. |
PbmFaultProfileStorageFault | Thrown if there is an error in persisting the profile. |
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Events
Type | |
---|---|
None |
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the PbmProfileProfileManager used to make the method call. |
profileId | PbmProfileId[] |
Array of profile identifiers.
|
Return Value
Type | Description |
---|---|
PbmProfileOperationOutcome[] | Array of result objects, one for each profile specified in the call to the PbmDelete method. The result object contains the profile ID and, if an error occurred, it also describes the fault. The method can return one of the following faults if the profile cannot be deleted:
|
Faults
Type | Description |
---|---|
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Events
Type | |
---|---|
None |
Each capability metadata object has a unique identifier (PbmCapabilityMetadata.id). The identifier object (PbmCapabilityMetadataUniqueId) contains the unique ID and it identifies the namespace to which the capability metadata object belongs.
Each registered namespace is required to be globally unique. You can associate a capability metadata object with a unique vendor and resource type by using the namespace and the PbmCapabilityVendorResourceTypeInfo data returned by the PbmFetchVendorInfo method.
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the PbmProfileProfileManager used to make the method call. |
resourceType* | PbmProfileResourceType |
Type of profile resource. The Server supports the "STORAGE" resource
type only. If not specified, this method will return capability metadata for the storage
resources. Any other resourceType is considered invalid.
|
vendorUuid* | xsd:string |
Unique identifier for the vendor/owner of capability
metadata. The specified vendor ID must match
PbmCapabilitySchemaVendorInfo.vendorUuid.
If omitted, the Server searchs all capability metadata registered with the system. If a
vendorUuid unknown to the Server is specified, empty results will be returned.
|
Return Value
Type | Description |
---|---|
PbmCapabilityMetadataPerCategory[] | Array of capability metadata objects, classified by category (PbmCapabilityMetadataPerCategory.subCategory). |
Faults
Type | Description |
---|---|
InvalidArgument | Thrown if an invalid resourceType is specified. |
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Events
Type | |
---|---|
None |
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the PbmProfileProfileManager used to make the method call. |
vendorUuid* | xsd:string |
Unique identifier for the vendor/owner of capability metadata.
If omitted, the server searchs all capability metadata registered
with the system. The specified vendor ID must match
PbmCapabilitySchemaVendorInfo.vendorUuid.
|
lineOfService* | xsd:string[] |
Optional line of service that must match PbmLineOfServiceInfoLineOfServiceEnum.
If specified, the capability schema objects
are returned for the given lineOfServices. If null, then all
capability schema objects that may or may not have data service capabilities
are returned.
|
Return Value
Type | Description |
---|---|
PbmCapabilitySchema[] | Array of PbmCapabilitySchema |
Faults
Type | Description |
---|---|
InvalidArgument | Thrown if input lineOfServices has unknown/invalid line of service. |
PbmFault | Thrown if there is an internal server error. |
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Events
Type | |
---|---|
None |
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the PbmProfileProfileManager used to make the method call. |
Return Value
Type | Description |
---|---|
PbmProfileResourceType[] | Array of resource types. |
Faults
Type | Description |
---|---|
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Events
Type | |
---|---|
None |
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the PbmProfileProfileManager used to make the method call. |
resourceType* | PbmProfileResourceType |
Specifies the resource type. The Server supports the STORAGE resource
type only. If not specified, server defaults to STORAGE resource type. Any other
resourceType is considered invalid.
|
Return Value
Type | Description |
---|---|
PbmCapabilityVendorResourceTypeInfo[] | Vendor and namespace information. |
Faults
Type | Description |
---|---|
InvalidArgument | Thrown if an invalid resourceType is specified. |
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Events
Type | |
---|---|
None |
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the PbmProfileProfileManager used to make the method call. |
datastores | PbmPlacementHub[] |
Datastores for which the default profile is found out. Note that
the datastore pods/clusters are not supported.
|
Return Value
Type | Description |
---|---|
PbmProfile[] | Profile[] Returns all the requirements profiles that can be made as default profile for the given datastores. If no profile can be made as default for all datastores, then an empty array is returned. Note that the profiles returned may or may not be compatible with the datastores. |
Faults
Type | Description |
---|---|
InvalidArgument | Thrown if the datastores argument contains a non-datastore, example storage pod. |
PbmFault | Internal service error. |
PbmLegacyHubsNotSupported | Thrown if any of the hubs in datastores argument are legacy (VMFS or NFS) datastores. |
PbmNonExistentHubs | Thrown if any of the hubs in datastores argument are non existent. |
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Events
Type | |
---|---|
None |
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the PbmProfileProfileManager used to make the method call. |
profiles* | PbmProfileId[] |
Storage policy array.
|
Return Value
Type | Description |
---|---|
PbmQueryProfileResult[] | Array of QueryProfileResult |
Faults
Type | Description |
---|---|
PbmFault | Thrown if there is an internal service error. |
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Events
Type | |
---|---|
None |
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the PbmProfileProfileManager used to make the method call. |
profile | PbmProfileId |
Profile identifier.
|
entityType* | xsd:string |
If specified, the method returns only those entities
which match the type. The entityType string value must match
one of the PbmObjectType values.
If not specified, the method returns all entities associated with the profile.
|
Return Value
Type | Description |
---|---|
PbmServerObjectRef[] | Array of entities associated with the profile. |
Faults
Type | Description |
---|---|
PbmFault | Thrown if there is an internal server error. |
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Events
Type | |
---|---|
None |
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the PbmProfileProfileManager used to make the method call. |
entity | PbmServerObjectRef |
Reference to a virtual machine, virtual disk, or datastore.
|
Return Value
Type | Description |
---|---|
PbmProfileId[] | Array of profiles associated with the entity. |
Faults
Type | Description |
---|---|
PbmFault | Thrown if there is an internal server error. |
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Events
Type | |
---|---|
None |
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the PbmProfileProfileManager used to make the method call. |
entities | PbmServerObjectRef[] |
Array of server object references.
|
Return Value
Type | Description |
---|---|
PbmQueryProfileResult[] | Array of query result objects. Each PbmQueryProfileResult object identifies a virtual machine, virtual disk, or datastore and it contains a list of the profiles associated with that entity. It also describes the fault, if there is an error associated with one of the profiles. |
Faults
Type | Description |
---|---|
PbmFault | Thrown if there is an internal server error. |
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Events
Type | |
---|---|
None |
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the PbmProfileProfileManager used to make the method call. |
hub | PbmPlacementHub |
Placement hub (i.e. datastore).
|
Return Value
Type | Description |
---|---|
PbmProfileId | Profile Id of the Default Requirement Profile. For legacy hub the API returns {@code null}. |
Faults
Type | Description |
---|---|
InvalidArgument | Thrown if hub is invalid (does not denote a datastore). |
PbmFault | Internal service error. |
PbmNonExistentHubs | Thrown if hub is non existent. |
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Events
Type | |
---|---|
None |
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the PbmProfileProfileManager used to make the method call. |
datastores | PbmPlacementHub[] |
The datastores for which the default profiles are requested. For
legacy datastores we set
{@code DefaultProfileInfo.defaultProfile} to {@code null}.
|
Return Value
Type | Description |
---|---|
PbmDefaultProfileInfo[] | DefaultProfileInfo Default profile information. |
Faults
Type | Description |
---|---|
InvalidArgument | Thrown if one of the datastore is invalid (does not denote a datastore). |
PbmFault | Internal service error. |
PbmNonExistentHubs | Thrown if any of the datastore in datastores argument are non existent. |
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Events
Type | |
---|---|
None |
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the PbmProfileProfileManager used to make the method call. |
resourceType | PbmProfileResourceType |
Type of resource. You can specify only STORAGE.
|
profileCategory* | xsd:string |
Profile category. The string value must correspond
to one of the PbmProfileCategoryEnum values.
If you do not specify a profile category, the method returns profiles in all
categories.
|
Return Value
Type | Description |
---|---|
PbmProfileId[] | Array of storage profile identifiers. |
Faults
Type | Description |
---|---|
InvalidArgument | Thrown if the Server does not recognize the specified resourceType or profileCategory. |
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Events
Type | |
---|---|
None |
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the PbmProfileProfileManager used to make the method call. |
datastore | PbmServerObjectRef |
Entity for which space statistics are being requested i.e datastore.
|
capabilityProfileId* | PbmProfileId[] |
- capability profile Ids.
If omitted, the statistics for the container
as a whole would be returned.
|
Return Value
Type | Description |
---|---|
PbmDatastoreSpaceStatistics[] | Array of Space stats of datastore for each capabilityProfileId. |
Faults
Type | Description |
---|---|
InvalidArgument | - Thrown if the input datastore parameter is null or its type is not datastore or its key is empty. |
PbmFault | - Thrown if server internal error occurred or if storage container does not support the profile. |
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Events
Type | |
---|---|
None |
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the PbmProfileProfileManager used to make the method call. |
profile* | PbmProfileId |
Profile to reset.
|
Return Value
Type | Description |
---|---|
None |
Faults
Type | Description |
---|---|
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Events
Type | |
---|---|
None |
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the PbmProfileProfileManager used to make the method call. |
Return Value
Type | Description |
---|---|
None |
Faults
Type | Description |
---|---|
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Events
Type | |
---|---|
None |
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the PbmProfileProfileManager used to make the method call. |
profileIds | PbmProfileId[] |
Array of storage profile identifiers.
|
Return Value
Type | Description |
---|---|
PbmProfile[] | Array of storage profiles. |
Faults
Type | Description |
---|---|
InvalidArgument | Thrown if the Server does not recognize any of the profileIds. |
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Events
Type | |
---|---|
None |
Parameters
Name | Type | Description |
---|---|---|
_this | ManagedObjectReference | A reference to the PbmProfileProfileManager used to make the method call. |
profileId | PbmProfileId |
Profile identifier.
|
updateSpec | PbmCapabilityProfileUpdateSpec |
Capability-based update specification.
|
Return Value
Type | Description |
---|---|
None |
Faults
Type | Description |
---|---|
InvalidArgument | Thrown if the Server does not recognize PbmProfileId. |
PbmFaultProfileStorageFault | in case of internal service error. |
RuntimeFault | Thrown if any type of runtime fault is thrown that is not covered by the other faults; for example, a communication error. |
Events
Type | |
---|---|
None |
Top of page | Local Methods | ||
Managed Object Types | Data Object Types | All Properties | All Methods |