---
title: "Get the full index"
url: "https://preview-docs.dshuniverse.com/zh/api/reference/operations/getfullindex/"
lang: "zh-CN"
license: "CC-BY-4.0"
licenseScope: "DSH Universe plugin data"
---

# Get the full index

GET

/index.all.json

cURL (shell:curl)

```js
const url = 'https://preview-api.dshuniverse.com/index.all.json';
const options = {method: 'GET'};


try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```sh
curl --request GET \
  --url https://preview-api.dshuniverse.com/index.all.json
```

* preview-api.dshuniverse.com/index.all.json

Returns the full distribution index with public versions across all visible tiers. Check x-dshu.tier and x-dshu.capabilities before installing.

## Parameters

### Header Parameters

**If-None-Match**

The ETag from a previous response.

string

The ETag from a previous response.

## Responses

### 200

A dsh format 1 plugin index.

application/json

object

**format**

required

number

Allowed values: 1

**title**

required

string

\>= 1 characters

**generatedAt**

required

string format: date-time

**plugins**

required

Array\<object>

object

**name**

required

string

\>= 1 characters

**title**

string

\>= 1 characters

**description**

string

\>= 1 characters

**versions**

required

Array\<object>

\>= 1 items

object

**version**

required

string

<= 256 characters /^(0|\[1-9]\[0-9]\*)\\.(0|\[1-9]\[0-9]\*)\\.(0|\[1-9]\[0-9]\*)(?:-(?:0|\[1-9]\[0-9]\*|\[0-9]\*\[A-Za-z-]\[0-9A-Za-z-]\*)(?:\\.(?:0|\[1-9]\[0-9]\*|\[0-9]\*\[A-Za-z-]\[0-9A-Za-z-]\*))\*)?(?:\\+\[0-9A-Za-z-]+(?:\\.\[0-9A-Za-z-]+)\*)?$/

**publishTimestamp**

required

integer

**engines**

object

**dsh**

required

string

**source**

required

One of:

* [object](#tab-panel-0-0)
* [object](#tab-panel-0-1)

object

**type**

required

string

Allowed values: npm

object

**type**

required

string

Allowed values: git

**url**

required

string format: uri

**commit**

required

string

/^\[0-9a-f]{40}$/i/

**path**

string

<= 512 characters /^\[A-Za-z0-9\@.\_-]+(?:\\/\[A-Za-z0-9\@.\_-]+)\*$/u/

**x-dshu**

required

object

**id**

required

string

\>= 1 characters

**tier**

required

string

Allowed values: listed scanned curated flagged

**tierVersion**

required

string

\>= 1 characters

**scannedAt**

required

string | null format: date-time

**url**

required

string format: uri

**categories**

required

Array\<string>

**capabilities**

required

Array\<string> | null

Allowed values: network process env secret-paths install-script dynamic-code

#### Example

```json
{
  "format": 1,
  "plugins": [
    {
      "versions": [
        {
          "source": {
            "type": "npm"
          }
        }
      ],
      "x-dshu": {
        "tier": "listed",
        "capabilities": [
          "network"
        ]
      }
    }
  ]
}
```

#### Headers

**ETag**

string

Validator for this representation of the index.

**Cache-Control**

string

The index can be cached for 30 seconds and must then be revalidated.

**Access-Control-Allow-Origin**

string

Allowed value: \*

The index can be read from any origin.

**Access-Control-Expose-Headers**

string

Allows browser clients to read the ETag and data license headers.

**Link**

string

The data license link with rel=“license”.

### 304

The index has not changed. No response body.

#### Headers

**ETag**

string

Validator for this representation of the index.

**Cache-Control**

string

The index can be cached for 30 seconds and must then be revalidated.

**Access-Control-Allow-Origin**

string

Allowed value: \*

The index can be read from any origin.

**Access-Control-Expose-Headers**

string

Allows browser clients to read the ETag and data license headers.

**Link**

string

The data license link with rel=“license”.

### 500

The index is temporarily unavailable.

application/json

object

**error**

required

object

**code**

required

string

**message**

required

string

#### Example generated

```json
{
  "error": {
    "code": "example",
    "message": "example"
  }
}
```
