# Image

The "Image" section provides endpoints for obtaining the required images (such as "Ubuntu," "Linux," "MariaDB," "PostgreSQL") when creating a resource.

## Get images

<mark style="color:blue;">`GET`</mark> `{{BASE_URL}}/api/providers/{id}/images`

Get all the available images that can be used to create a particular resource type ( vm, k8s, db , app ).

#### Path Parameters

| Name                                 | Type   | Description |
| ------------------------------------ | ------ | ----------- |
| id<mark style="color:red;">\*</mark> | String | Provider ID |

#### Headers

| Name                                            | Type   | Description  |
| ----------------------------------------------- | ------ | ------------ |
| Authorization<mark style="color:red;">\*</mark> | String | Bearer Token |

{% tabs %}
{% tab title="200: OK " %}

```json
[
    {
        "_id": "6548a383e2442d14b6bf96ab",
        "isDisabled": false,
        "provider": "6548a383e2442d14b6bf9687",
        "name": "Ubuntu",
        "versions": [
            {
                "name": "20_04-lts-cvm",
                "displayName": "20.04 LTS CVM"
            },
            {
                "name": "20_04-lts-gen2",
                "displayName": "20.04 LTS GEN2"
            }
        ]
    },
    {
        "_id": "6548a383e2442d14b6bf96ac",
        "isDisabled": true,
        "provider": "6548a383e2442d14b6bf9687",
        "name": "Fedora",
        "versions": []
    },
    {
        "_id": "6548a383e2442d14b6bf96ad",
        "isDisabled": true,
        "provider": "6548a383e2442d14b6bf9687",
        "name": "Debian",
        "versions": []
    },
    {
        "_id": "6548a383e2442d14b6bf96ae",
        "isDisabled": true,
        "provider": "6548a383e2442d14b6bf9687",
        "name": "CentOS",
        "versions": []
    },
    {
        "_id": "6548a383e2442d14b6bf96af",
        "isDisabled": true,
        "provider": "6548a383e2442d14b6bf9687",
        "name": "AlmaLinux",
        "versions": []
    },
    {
        "_id": "6548a383e2442d14b6bf96b0",
        "isDisabled": true,
        "provider": "6548a383e2442d14b6bf9687",
        "name": "RockyLinux",
        "versions": []
    },
    {
        "_id": "6548a383e2442d14b6bf96b1",
        "isDisabled": true,
        "provider": "6548a383e2442d14b6bf9687",
        "name": "RancherOS",
        "versions": []
    }
]
```

{% endtab %}
{% endtabs %}
