HardwareProfilesPublicCloudRegionResource


Create a hardware profile in a public cloud region


POST https://example.com/api/admin/publiccloudregions/{publiccloudregion}/hardwareprofiles

Roles : [ROLE_PCR_MANAGE]

Content-Type : hardwareprofile Accept : hardwareprofile

Error Codes

  • PROFILEDC-5 - Create hardware profile is not supported for the public cloud region

Example

List hardware profiles in a public cloud region


If this request does not return any hardware profiles, check there are appropriate enterprise credentials added for the public cloud region to trigger onboarding of profiles.

GET https://example.com/api/admin/publiccloudregions/{publiccloudregion}/hardwareprofiles

Roles : [ROLE_PCR_ENUMERATE, ROLE_USERS_MANAGE_ENTERPRISE]

Parameter Type Default Value Description
startwith Integer 0 The first element to be retrieved of the filtered search
by String name Order by
has String If present filter to apply in the search.
limit Integer 25 The number of entities to retrieve
asc Boolean true If the value of the 'by' parameter must be sorted in ascending order (true) or descending order (false)
active Boolean If true, returns only active hardware profiles. If false, returns only inactive hardware profiles
enterprise Integer If present, filter by enterprise identifier

Accept : hardwareprofiles

Example

Synchronize hardware profiles in a public cloud region


PUT https://example.com/api/admin/publiccloudregions/{publiccloudregion}/hardwareprofiles/action/sync

Roles : [ROLE_PCR_ENUMERATE]

Content-Type : links

Example

Delete a hardware profile in a public cloud region


Delete a hardware profile for a public cloud region

DELETE https://example.com/api/admin/publiccloudregions/{publiccloudregion}/hardwareprofiles/{hardwareprofile}

Roles : [ROLE_PCR_MANAGE]

Example

Get a hardware profile in a public cloud region


Get a hardware profile for a public cloud region

GET https://example.com/api/admin/publiccloudregions/{publiccloudregion}/hardwareprofiles/{hardwareprofile}

Roles : [ROLE_PCR_ENUMERATE]

Accept : hardwareprofile

Error Codes

  • PROFILEDC-2 - The requested hardware profile does not exist in this datacenter

Example

Update a hardware profile in a public cloud region


Update a hardware profile for the indicated public cloud region

PUT https://example.com/api/admin/publiccloudregions/{publiccloudregion}/hardwareprofiles/{hardwareprofile}

Roles : [ROLE_PCR_MANAGE]

Content-Type : hardwareprofile Accept : hardwareprofile

Error Codes

  • PROFILEDC-6 - Update hardware profile is not supported for the public cloud region

Example