Skip to content

HPE GreenLake APIs for Device Management (latest)

With the HPE GreenLake APIs for Device Management you can view, manage, and onboard devices in your workspace. The API allows you to invoke any operation or task that is available through the HPE GreenLake edge-to-cloud platform user interface.

Download OpenAPI description
Languages
Servers
Url hostname
https://global.api.greenlake.hpe.com/
Mock server
https://developer.greenlake.hpe.com/_mock/docs/greenlake/services/device-management/public/openapi/nbapi-inventory/openapi/

Devices - v2beta1

Operations

Get all devices grouped by given attribute

Request

Returns devices grouped by the attribute specified in group-by (for example: make, model, or source). For date-based grouping fields, you can optionally apply lower-threshold and upper-threshold to define a date range. The response is paginated and includes each group value with its corresponding device count. Rate limits are enforced on this API. 300 requests per minute is supported per workspace. The API returns 429 if this threshold is breached.

Security
Bearer
Query
group-bystringrequired

The grouping operation supports the following fields: make, source, category, manufacturedDate, currentSupportLevelEndDate, billingAccountId, billingTier, deviceType, ownership, isFlex and model. currentSupportLevelEndDate groups on warranty.currentSupportLevel.endDate and uses that nested date value.

Example: group-by=make
filterstring

The filter expressions that are used to narrow down the devices before grouping. Combine multiple conditions using and or or. The following examples are not an exhaustive list of all possible filtering options.

Examples:

Filter all managed devices in the workspace

filter=source eq 'MANAGED'

Filter devices that are either MANAGED or DISCOVERED

filter=source eq 'MANAGED' or source eq 'DISCOVERED'

Filter devices assigned to a specific location

filter=locationName eq 'San Jose'

Filter devices in either of two locations

filter=locationName eq 'San Jose' or locationName eq 'Santa Clara'

Filter managed devices in a specific location

filter=source eq 'MANAGED' and locationName eq 'San Jose'

Filter devices by their location resource ID

filter=locationId eq 'loc-resource-id-abc123'
lower-thresholdstring(date-time)

Lower bound for date-based grouping.

Applies only when group-by is a date field (manufacturedDate or currentSupportLevelEndDate).
Includes devices where the grouped date is greater than or equal to this value.
Use with upper-threshold to group results into four buckets: less_than_lower, lower_to_upper, greater_than_upper, missing.

Example: lower-threshold=2022-01-02T00:00:00Z
upper-thresholdstring(date-time)

Upper bound for date-based grouping.

Applies only when group-by is a date field (manufacturedDate or currentSupportLevelEndDate).
Includes devices where the grouped date is less than or equal to this value.
Use with lower-threshold to group results into four buckets: less_than_lower, lower_to_upper, greater_than_upper, missing.

Example: upper-threshold=2026-01-02T00:00:00Z
selectstring

Returns distinct values for the specified field, without counts.
Use this as a distinct-only variant of group-by (for example, get unique make values).
Value for select field should be the same as group-by field. For example, if you are grouping by make, then select should also be make to get distinct makes in the response.
Supports the same fields as group-by.

Example: select=model
offsetinteger>= 0

Zero-based resource offset to start the response from.

Default 0
Example: offset=10
limitinteger[ 0 .. 100 ]

Number of entities to return. Maximum of 100.

Default 10
Example: limit=20
curl -i -X GET \
  'https://global.api.greenlake.hpe.com/devices/v2beta1/devices/group?group-by=make' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

Successful Response

Bodyapplication/json
itemsArray of GroupByResponse (object) or GroupByResponseDistinct (object)required
One of:

Response schema for group by API which includes the count of devices in each group.

object GroupByResponse Recursive
countintegerrequired
Example: 1
totalintegerrequired
Example: 1
offsetintegerrequired
Example: 0
Response
application/json

Devices are grouped by the make attribute, and the count of devices for each make is returned.

{ "items": [ { … }, { … }, { … } ], "count": 3, "total": 3, "offset": 0 }

Get device information

Request

Get details on a specific device by passing its resourceId.

NOTE: You need view permissions for device management to invoke this API.

Rate limits are enforced on this API. 300 requests per minute is supported per workspace. The API returns 429 if this threshold is breached.

Security
Bearer
Path
idstring(uuid)required

The unique identifier of the device.

curl -i -X GET \
  'https://global.api.greenlake.hpe.com/devices/v2beta1/devices/{id}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

Successful response

Bodyapplication/json
idstring(uuid)required

The unique identifier of the device.

Example: "64343c3c-3016-4234-baee-765651aa4bb3"
partNumberstringrequired

Identifier of the a device component or part.

Example: "BHD31D9J"
serialNumberstringrequired

The serial number of the device.

Example: "AX17PR347J"
typestringrequired

The type of the resource.

Example: "devices/device"
macAddressstring^([0-9a-fA-F]{2})(:[0-9a-fA-F]{2}){5}$

The media access control (MAC) address of the device

Example: "21:01:18:21:12:22"
deviceTypestring

The category (type) the device belongs to.

Enum"ALS""AP""BLE"
assignedStatestring

The current assignment state of the device.

  • ASSIGNED_TO_ACTIVATE_CONFIG—The device was moved to the custom activate configuration.
  • ASSIGNED_TO_DEDICATED_PLATFORM—The device is used in a dedicated platform workspace.
  • ASSIGNED_TO_SERVICE—The device is assigned to a service.
  • UNASSIGNED—The device is available for service provisioning.
Enum"ASSIGNED_TO_ACTIVATE_CONFIG""ASSIGNED_TO_DEDICATED_PLATFORM""ASSIGNED_TO_SERVICE"
createdAtstring(date-time)

The date and time the device was created in UTC (RFC 3339 format).

Example: "2024-02-13T09:00:22.920Z"
updatedAtstring(date-time)

The date and time the device was last updated in UTC (RFC 3339 format).

Example: "2024-02-13T19:30:32.920Z"
modelstring

Hardware model of the device

Example: "COMPUTE"
makestring

The manufacturer of the device.

Example: "HPE"
categorystring

The computed category of the device based on the device type, for example, Network, Storage, or Compute.

Enum"NETWORK""STORAGE""COMPUTE"
Example: "NETWORK"
manufacturedDatestring(date-time)

The date the device was manufactured in UTC (RFC 3339 format).

Example: "2024-02-13T19:30:32.920Z"
ownershipstring

The ownership of the device based on how the device was added to the inventory.

Enum"MANAGED""FLEX""DISCOVERED"
sourcestring

The source of device based on how it was added to the inventory.

Enum"MANAGED""DISCOVERED"
isFlexboolean

A boolean that indicates whether the device has a Flex subscription or not.

Example: false
archivedboolean

A boolean that indicates whether the device has been archived or not. Archived devices are no longer in service.

Example: false
deviceNamestring

Hostname of the device

Example: "iLO Hostname"
secondaryNamestring

Secondary hostname of the device

Example: "OS Hostname"
applicationobject(ResponseApplication)
regionstring

The region of the application the device is provisioned in

Example: "us-west"
tagsobject
subscriptionArray of objects(ResponseSubscription)
tenantWorkspaceIdstring

The unique identifier of the tenant workspace belonging to an MSP. This field is populated only for MSP-owned inventory tenants (the MSP owns the devices and subscriptions and also manages the workspace on behalf of their customers).

Example: "3292c36d30ef4f26823b76b5d213b670"
locationobject(ResponseLocation)
warrantyobject(ResponseWarranty)
subscriptionCategorystring

The platform subscription category assigned to the device. This field is populated only for Compute devices.

Example: "ProLiant"
dedicatedPlatformWorkspaceobject(ResponseDedicatedPlatform)
billingAccountIdstring

The billing account ID associated with the Flex device.

Example: "12345-67890-ABCD"
billingAccountNamestring

The billing account name associated with the Flex device.

Example: "12345-67890-ABCD"
billingTierstring

The billing tier associated with the Flex device

Example: "Premium"
contactobject(ResponseContact)
managementstring or null
Any of:

Indicates whether the device is managed by an MSP or a tenant. Null indicates an enterprise organization device (not MSP/tenant-managed).

string
Enum"MSP""TENANT"
inUseWorkspaceResponseInUseWorkspaceId (object) or null
Any of:

The workspace the device belongs to. Null for MSP account types. For other account types (MOI, COI, Enterprise Org Standalone), this field indicates the workspace the device is currently in use by.

object ResponseInUseWorkspaceId Recursive
Response
application/json
{ "id": "64343c3c-3016-4234-baee-765651aa4bb3", "macAddress": "21:01:18:21:12:22", "serialNumber": "AX17PR347J", "partNumber": "BHD31D9J", "type": "devices/device", "deviceType": "ALS", "assignedState": "ASSIGNED_TO_ACTIVATE_CONFIG", "createdAt": "2024-02-13T09:00:22.920Z", "updatedAt": "2024-02-13T19:30:32.920Z", "model": "COMPUTE", "make": "HPE", "category": "NETWORK", "manufacturedDate": "2024-02-13T19:30:32.920Z", "ownership": "MANAGED", "source": "MANAGED", "isFlex": false, "archived": false, "deviceName": "iLO Hostname", "secondaryName": "OS Hostname", "application": { "id": "0892c36d-40df-4f26-923b-76b5d213b420", "resourceUri": "/service-catalog/v1beta1/service-managers/0892c36d-40df-4f26-923b-76b5d213b420" }, "region": "us-west", "tags": { "property1": "string", "property2": "string" }, "subscription": [ { … } ], "tenantWorkspaceId": "3292c36d30ef4f26823b76b5d213b670", "location": { "id": "57f2b22e-7923-497b-8120-fd2b94579f13", "city": "New York", "state": "NY", "country": "USA", "latitude": 40.7128, "longitude": -74.006, "postalCode": 10001, "locationName": "Main Office", "streetAddress": "123 Main St", "locationSource": "GPS", "resourceUri": "/locations/v1beta1/locations/57f2b22e-7923-497b-8120-fd2b94579f13" }, "warranty": { "country": "string", "currentSupportLevel": { … }, "supportLevels": [ … ] }, "subscriptionCategory": "ProLiant", "dedicatedPlatformWorkspace": { "id": "a482ff61-1e0e-4818-920b-4cbc017208ee" }, "billingAccountId": "12345-67890-ABCD", "billingAccountName": "12345-67890-ABCD", "billingTier": "Premium", "contact": { "type": "NON-WORKSPACE-USER", "email": "nonworkspace.user@gmail.com", "firstName": "John", "lastName": "Doe", "phoneNumber": "+1-555-123-4567", "id": "4a2e4102-5c05-4713-8fc8-4e82f9704e53", "resourceUri": "/identity/v1/users/4a2e4102-5c05-4713-8fc8-4e82f9704e53" }, "management": "MSP", "inUseWorkspace": { "id": "3292c36d30ef4f26823b76b5d213b670", "resourceUri": "/workspaces/v1/workspaces/3292c36d30ef4f26823b76b5d213b670", "type": "workspaces/workspace" } }

Get all devices in a workspace

Request

With this API, you can:

  • Retrieve a list of all devices in a workspace.
  • Filter devices based on conditional expressions.

NOTE: You need view permissions for Devices and Subscription service to invoke this API.

Rate limits are enforced on this API. 300 requests per minute is supported per workspace. The API returns 429 if this threshold is breached.

Security
Bearer
Query
filterstring

Filter expressions consisting of simple comparison operations joined by logical operators.

CLASSEXAMPLES
Typesinteger, decimal, timestamp, string, boolean, null
Comparisoneq, ne, gt, ge, lt, le, in
Logical Expressionsand, or, not

The following examples are not an exhaustive list of all possible filtering options.

Examples:

Return devices where a property equals a value. Example syntax, <property> eq <value>.

filter=serialNumber eq 'STIAPL6404'

Return devices where a property does not equal a value. Example syntax, not <property> eq <value>.

filter=not serialNumber eq 'STIAPL6404'

Return devices where a property is greater or equal to a value. Example syntax, <property> ge <value>.

filter=createdAt ge '2024-01-18T19:53:51.480Z'

Return devices where a property is lesser or equal to a value. Example syntax, <property> le <value>.

filter=updatedAt le '2024-02-18T19:53:51.480Z'

Return devices that exactly satisfy multiple filter queries. Example syntax, <property> eq <value> and <property> eq <value>.

filter=deviceType eq 'STORAGE' and partNumber eq 'RTICXL6413'

Return devices that exactly satisfy one of multiple filter queries. Example syntax, <property> eq <value> or <property> eq <value>.

filter=serialNumber eq 'STIAPL6404' or partNumber eq 'RTICXL6413'

Return devices where a property is one of multiple values. Example syntax, <property> in <value>,<value>.

filter=deviceType in 'COMPUTE', 'STORAGE'

Return devices of a specific make. Example syntax, make eq <value>.

filter=make eq 'HPE'

Return devices of a specific category. Example syntax, category eq <value>.

filter=category eq 'NETWORK'

Return devices manufactured on or after specific date. Example syntax, manufacturedDate ge <value>.

filter=manufacturedDate ge '2022-01-18T19:53:51.480Z'

Return devices whose current support level end date is on or before specific date. Example syntax, currentSupportLevelEndDate le <value>.

filter=currentSupportLevelEndDate le '2024-02-18T19:53:51.480Z'

Return devices of a specific source. Example syntax, source eq <value>.

filter=source eq 'MANAGED'

Return devices that are on a flex subscription or not. Example syntax, isFlex eq true|false.

filter=isFlex eq true

Return devices of a specific billing tier. Example syntax, billingTier eq <value>.

filter=billingTier eq 'TIER_1'

Return devices where a property is null or not null. Example syntax, <property> eq null or <property> ne null.

filter=manufacturedDate eq null

Return devices where management is MSP. Example syntax, management eq <value>.

filter=management eq 'MSP'

Return devices where management is TENANT. Example syntax, management eq <value>.

filter=management eq 'TENANT'

Return devices where management is null (Enterprise Organization). Example syntax, management eq null.

filter=management eq null

Return devices assigned to a specific workspace. Example syntax, inUseWorkspaceId eq <value>.

filter=inUseWorkspaceId eq '011c7060ea2611f087d652e71933ec87'

Return MSP managed devices assigned to a specific workspace. Example syntax, management eq <value> and inUseWorkspaceId eq <value>.

filter=management eq 'MSP' and inUseWorkspaceId eq '131846d43af111f08e4ebe50c5e8c005'

Return MSP managed devices where inUseWorkspaceId is null. Example syntax, management eq <value> and inUseWorkspaceId eq null.

filter=management eq 'MSP' and inUseWorkspaceId eq null
sortstring

A comma separated list of sort expressions. A sort expression is a property name optionally followed by a direction indicator asc or desc. The default is ascending order.

Example: sort=serialNumber,partNumber desc
selectArray of stringsunique

A comma separated list of select properties to display in the response. The default is that all properties are returned.

Example: select=serialNumber,macAddress
limitinteger(int64)[ 1 .. 500 ]

Specifies the number of results to be returned. The default value is 100 and the maximum is 500.

Default 100
offsetinteger(int64)

Specifies the zero-based resource offset to start the response from. The default value is 0.

Default 0
curl -i -X GET \
  https://global.api.greenlake.hpe.com/devices/v2beta1/devices \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

Successful response

Bodyapplication/json
itemsArray of objects(DeviceDetail)required
items[].​idstring(uuid)required

The unique identifier of the device.

Example: "64343c3c-3016-4234-baee-765651aa4bb3"
items[].​partNumberstringrequired

Identifier of the a device component or part.

Example: "BHD31D9J"
items[].​serialNumberstringrequired

The serial number of the device.

Example: "AX17PR347J"
items[].​typestringrequired

The type of the resource.

Example: "devices/device"
items[].​macAddressstring^([0-9a-fA-F]{2})(:[0-9a-fA-F]{2}){5}$

The media access control (MAC) address of the device

Example: "21:01:18:21:12:22"
items[].​deviceTypestring

The category (type) the device belongs to.

Enum"ALS""AP""BLE"
items[].​assignedStatestring

The current assignment state of the device.

  • ASSIGNED_TO_ACTIVATE_CONFIG—The device was moved to the custom activate configuration.
  • ASSIGNED_TO_DEDICATED_PLATFORM—The device is used in a dedicated platform workspace.
  • ASSIGNED_TO_SERVICE—The device is assigned to a service.
  • UNASSIGNED—The device is available for service provisioning.
Enum"ASSIGNED_TO_ACTIVATE_CONFIG""ASSIGNED_TO_DEDICATED_PLATFORM""ASSIGNED_TO_SERVICE"
items[].​createdAtstring(date-time)

The date and time the device was created in UTC (RFC 3339 format).

Example: "2024-02-13T09:00:22.920Z"
items[].​updatedAtstring(date-time)

The date and time the device was last updated in UTC (RFC 3339 format).

Example: "2024-02-13T19:30:32.920Z"
items[].​modelstring

Hardware model of the device

Example: "COMPUTE"
items[].​makestring

The manufacturer of the device.

Example: "HPE"
items[].​categorystring

The computed category of the device based on the device type, for example, Network, Storage, or Compute.

Enum"NETWORK""STORAGE""COMPUTE"
Example: "NETWORK"
items[].​manufacturedDatestring(date-time)

The date the device was manufactured in UTC (RFC 3339 format).

Example: "2024-02-13T19:30:32.920Z"
items[].​ownershipstring

The ownership of the device based on how the device was added to the inventory.

Enum"MANAGED""FLEX""DISCOVERED"
items[].​sourcestring

The source of device based on how it was added to the inventory.

Enum"MANAGED""DISCOVERED"
items[].​isFlexboolean

A boolean that indicates whether the device has a Flex subscription or not.

Example: false
items[].​archivedboolean

A boolean that indicates whether the device has been archived or not. Archived devices are no longer in service.

Example: false
items[].​deviceNamestring

Hostname of the device

Example: "iLO Hostname"
items[].​secondaryNamestring

Secondary hostname of the device

Example: "OS Hostname"
items[].​applicationobject(ResponseApplication)
items[].​regionstring

The region of the application the device is provisioned in

Example: "us-west"
items[].​tagsobject
items[].​subscriptionArray of objects(ResponseSubscription)
items[].​tenantWorkspaceIdstring

The unique identifier of the tenant workspace belonging to an MSP. This field is populated only for MSP-owned inventory tenants (the MSP owns the devices and subscriptions and also manages the workspace on behalf of their customers).

Example: "3292c36d30ef4f26823b76b5d213b670"
items[].​locationobject(ResponseLocation)
items[].​warrantyobject(ResponseWarranty)
items[].​subscriptionCategorystring

The platform subscription category assigned to the device. This field is populated only for Compute devices.

Example: "ProLiant"
items[].​dedicatedPlatformWorkspaceobject(ResponseDedicatedPlatform)
items[].​billingAccountIdstring

The billing account ID associated with the Flex device.

Example: "12345-67890-ABCD"
items[].​billingAccountNamestring

The billing account name associated with the Flex device.

Example: "12345-67890-ABCD"
items[].​billingTierstring

The billing tier associated with the Flex device

Example: "Premium"
items[].​contactobject(ResponseContact)
items[].​managementstring or null
Any of:

Indicates whether the device is managed by an MSP or a tenant. Null indicates an enterprise organization device (not MSP/tenant-managed).

string
Enum"MSP""TENANT"
items[].​inUseWorkspaceResponseInUseWorkspaceId (object) or null
Any of:

The workspace the device belongs to. Null for MSP account types. For other account types (MOI, COI, Enterprise Org Standalone), this field indicates the workspace the device is currently in use by.

object ResponseInUseWorkspaceId Recursive
countinteger(int32)required

Number of items returned

Example: 10
offsetinteger(int32)

Zero-based resource offset

Example: 0
totalinteger(int32)

Total number of items in the collection that match the filter query, if one was provided in the request

Example: 100
Response
application/json
{ "items": [ { … } ], "count": 10, "offset": 0, "total": 100 }

Add devices

Request

Add one or more devices to a workspace. This API endpoint provides an asynchronous response and returns 202 Accepted if basic input validations are successful. The location header in the response provides the URI to invoke to fetch the progress of the device addition task. For details about the status fetch URL, refer to the API endpoint Get progress or status of async operations in devices.

NOTE: You need create permissions for the Devices and Subscription service to call this API endpoint.

Rate limits are enforced, and 50 requests per minute are supported per workspace. The API endpoint returns 429 if this threshold is breached.

Security
Bearer
Query
dry-runboolean

The dry-run query parameter is used to perform the resource update operation (POST, PUT, PATCH, DELETE) and return a response as if the operation had completed, but without actually creating, updating, or deleting the resource. This allows you to test if the request would succeed before making the change. If set to true, the request is validated but not executed.

Default false
Bodyapplication/jsonrequired
serialNumberstringrequired

The serial number of the device.

deviceTypestringrequired

The type of device.

Enum"COMPUTE""NETWORK""STORAGE"
tagsobject
macAddressstring

The media access control (MAC) address of the device. This is required for claiming NETWORK devices.

partNumberstring

The part number of the device. This is required for claiming COMPUTE or STORAGE devices.

locationobject

The location ID of the device.

contactobject(RequestContact)
curl -i -X POST \
  https://global.api.greenlake.hpe.com/devices/v2beta1/devices \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "serialNumber": "SN12345678",
    "macAddress": "00:1B:44:11:3A:B7",
    "deviceType": "NETWORK",
    "tags": {
      "environment": "production"
    },
    "location": {
      "id": "8cd9ad69-a8e5-4529-97ea-804b2c88d123"
    }
  }'

Responses

Request accepted

Headers
Locationstring

The URI of the accepted asynchronous operation resource

Example: "/devices/v1/async-operations/22d6fbfb-d253-4455-984a-356da827e5fc"
Body
Response
No content

Update devices

Request

Update devices by passing one or more device IDs.

The API supports Device operations such as:
API supports updating location and tags for all types of devices, discovered and managed
Supports updating missing warranty information like warranty/currentSupportLevel/endDate, warranty/currentSupportLevel/serviceLevel for discovered devices.

The API supports earlier Device operations such as:

  • Assigning and unassigning devices to and from a service.
  • Adding, updating and removing tags to devices.
  • Archiving and un-archiving the devices.
The API endpoint supports subscription operations of applying and removing subscriptions to and from devices.

To remove an application, set the id under application to null and region to null. Set an empty array to the attribute subscription to remove a subscription. For each tag provided in the request body:
  • Tags are created and inserted into the specified devices if the provided tags do not map to null and are not already present.
  • Tags are updated with the provided if the provided tag key is already present in a device, but the provided value differs from the existing value.
  • Tags are removed from devices when a tag key is mapped to a null tag value. The tags are removed from any devices with a matching tag with the same key.
The endpoint only supports either a device or a subscription operation per API call. For example, you cannot assign devices to an application and assign subscriptions to devices in a single API call. You can achieve this with two separate API calls. However, a single API call can perform device operations together; for example, assigning an application and adding tags can be performed.

The archive device operation is incompatible with any other device operation in the same API call. For example, you cannot remove an application and archive a device using the same API call.

This is an asynchronous API endpoint and it returns the 202 Accepted response code and a Location header containing the URI of the asynchronous operation that can be used to track progress. For details about the status fetch URL, refer to the API Get progress or status of async operations in devices.

NOTE: You need update permissions for the Devices to initiate this API call. Rate limits are enforced, and 40 requests per minute are supported per workspace. The API returns 429 if this threshold is breached.

Security
Bearer
Query
idArray of strings(uuid)uniquerequired

Array of device resource IDs. Maximum twenty five devices per request.

Example: id=05fc0c47-e517-5709-976e-c0b726977477&id=08a42d07-b144-5602-9a82-7927d6e44616
dry-runboolean

The dry-run query parameter is used to perform the resource update operation (POST, PUT, PATCH, DELETE) and return a response as if the operation had completed, but without actually creating, updating, or deleting the resource. This allows you to test if the request would succeed before making the change. If set to true, the request is validated but not executed.

Default false
Bodyapplication/merge-patch+jsonrequired
subscriptionArray of objects(RequestSubscription)
applicationobject(RequestApplication)
regionstring

The region of the application the device is provisioned in.

tenantWorkspaceIdstring

The platform customer ID of the tenant.

archivedboolean
tagsobject

Provide a map of tags to create or delete for the given DeviceID (or multiple DeviceID's). Tags are saved with the character casing preserved (uppercase, lowercase, mixed, and so on). For example, adding a new tag with the key Location will fail if the Device already has a tag with the key LOCATION as they are considered the same key. Tag keys and tag values can comprise letters, numbers, spaces (represented in UTF-8), and only the characters: _, ., :, =, +, -, and @. NOTE: Do not store sensitive data, such as personally identifiable information, in tags.

locationobject

The location of the device.

warranty/currentSupportLevelobject

Current support level details to update for the device warranty.

contactobject(RequestContact)
curl -i -X PATCH \
  'https://global.api.greenlake.hpe.com/devices/v2beta1/devices?id=05fc0c47-e517-5709-976e-c0b726977477%26id%3D08a42d07-b144-5602-9a82-7927d6e44616' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/merge-patch+json' \
  -d '{
    "location": {
      "id": "57f2b22e-7923-497b-8120-fd2b94579f13"
    }
  }'

Responses

Request accepted

Headers
Locationstring

The URI of the accepted asynchronous operation resource

Example: "/devices/v1/async-operations/22d6fbfb-d253-4455-984a-356da827e5fc"
Bodyapplication/json
codeinteger(int32)required

Three digit HTTP status code.

statusstringrequired

Three digit HTTPS status code and message.

Enum"100 CONTINUE""101 SWITCHING_PROTOCOLS""102 PROCESSING"
transactionIdstring(uuid)required

The unique identifier of the transaction.

Example: "22d6fbfb-d253-4455-984a-356da827e5fc"
Response
application/json
{ "code": 0, "status": "100 CONTINUE", "transactionId": "22d6fbfb-d253-4455-984a-356da827e5fc" }

Devices - v1

Operations

Devices - v1beta1

Operations