---
type: api
title: Get allocator metadata
description: Retrieves the allocator metadata.
url: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/cloud-enterprise/operation/operation-get-allocator-metadata
resource: https://www.elastic.co/elastic/docs-builder/docs/4371/api/doc/cloud-enterprise/operation/operation-get-allocator-metadata
products:
  - Elastic Cloud Enterprise
---

# Get allocator metadata

## Paths

- `GET` `/platform/infrastructure/allocators/{allocator_id}/metadata`

- [Basic auth](/elastic/docs-builder/docs/4371/api/doc/cloud-enterprise/authentication#basicauth)
- [Api key auth](/elastic/docs-builder/docs/4371/api/doc/cloud-enterprise/authentication#apikey)

#### Path Parameters

- `allocator_id` (string)
  The allocator identifier.

## Description

Retrieves the allocator metadata.

## Responses

#### `200`

The allocator metadata was successfully returned

`application/json`

Type: `[] MetadataItem`

- `key` (string)
  The metadata field name
- `value` (string)
  The metadata value
##### Response Headers

- `x-cloud-resource-version` (string)
  The resource version, which is used to avoid update conflicts with concurrent operations
- `x-cloud-resource-created` (string)
  The date-time when the resource was created (ISO format relative to UTC)
- `x-cloud-resource-last-modified` (string)
  The date-time when the resource was last modified (ISO format relative to UTC)

#### `404`

The allocator specified by {allocator_id} cannot be found. (code: `allocators.allocator_not_found`)

`application/json`

- `errors` ([] BasicFailedReplyElement)
  A list of errors that occurred in the failing request
  - `code` (string)
    A structured code representing the error type that occurred
  - `message` (string)
    A human readable message describing the error that occurred
  - `fields` ([] string)
    If the error can be tied to a specific field or fields in the user request, this lists those fields
##### Response Headers

- `x-cloud-error-codes` (enum)
  The error codes associated with the response

## Code Examples

#### Console

```console
GET /platform/infrastructure/allocators/{allocator_id}/metadata
```

#### curl

```curl
curl -X GET "/platform/infrastructure/allocators/{allocator_id}/metadata"
```

