# Network › vRack Services › Endpoints API

> Part of the OVHcloud developer hub. Index of every page and section: https://developers.eu.ovhcloud.com/llms.txt
> The Network product's sections: https://developers.eu.ovhcloud.com/reference/network/llms.txt
> Everything in one file: https://developers.eu.ovhcloud.com/llms-full.txt

> 1 operation of the OVHcloud API. Calls carry `authorization: Bearer $OVH_TOKEN`; the EU host is shown, Canada and the United States answer on api.ca.ovhcloud.com and api.us.ovhcloud.com.

Page: https://developers.eu.ovhcloud.com/reference/network/vrack-services/endpoints/

OpenAPI v1: https://api.eu.ovhcloud.com/1.0/__schemas/developer-hub-navigation/network/vrack-services/endpoints.json?format=openapi3
OpenAPI v2: https://api.eu.ovhcloud.com/v2/__schemas/developer-hub-navigation/network/vrack-services/endpoints.json?format=openapi3

## Operations

- `GET /vrackServices/resource/{vrackServicesId}/eligibleManagedService` — List eligible managed services

## List eligible managed services

`GET /v2/vrackServices/resource/{vrackServicesId}/eligibleManagedService`

Link: https://developers.eu.ovhcloud.com/reference/network/vrack-services/endpoints/#get-vrackservices-resource-vrackservicesid-eligiblemanagedservice

**Status:** Stable production version  
**IAM actions:** `vrackServices:apiovh:resource/eligibleManagedService/get`, `vrackServices:apiovh:storageNetApp/attach`, `storageNetApp:apiovh:vrackServices/attach`, `vrackServices:apiovh:nasHA/attach`, `nasHA:apiovh:vrackServices/attach`

Returns, by type, the managed services that can get a Service Endpoint in the vRack Services. Only services in the same region are eligible.

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `X-Pagination-Cursor` | header | string |  | Pagination cursor |
| `X-Pagination-Size` | header | integer |  | Pagination size |
| `vrackServicesId` | path | string | yes | Vrack services ID |

### Responses

| Status | Type | Description |
| --- | --- | --- |
| 200 | vrackServices.EligibleManagedService[] | successful operation |

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `managedServiceType` | string | read-only | IAM resource type. Compatible managed service types are listed by /reference/compatibleManagedServiceType call. |
| `managedServiceURNs` | string[] | read-only | List of IAM resource URNs |

```json
[
  {
    "managedServiceType": "string",
    "managedServiceURNs": [
      "string"
    ]
  }
]
```

### Example

```bash
curl -X GET \
  "https://api.eu.ovhcloud.com/v2/vrackServices/resource/{vrackServicesId}/eligibleManagedService" \
  -H "accept: application/json" \
  -H "authorization: Bearer $OVH_TOKEN"
```

```python
'''
First, install the latest release of Python wrapper: $ pip install ovh
'''
import json
import ovh

# Instantiate an OVH Client.
# You can generate new credentials with full access to your account on
# the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
client = ovh.Client(
	endpoint='ovh-eu',               # Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
	application_key='xxxxxxxxxx',    # Application Key
	application_secret='xxxxxxxxxx', # Application Secret
	consumer_key='xxxxxxxxxx',       # Consumer Key
)

result = client.get("/v2/vrackServices/resource/{vrackServicesId}/eligibleManagedService")

# Pretty print
print(json.dumps(result, indent=4))
```

```php
<?php
/**
 * First, download the latest release of PHP wrapper on github
 * And include this script into the folder with extracted files
 */
require __DIR__ . '/vendor/autoload.php';
use \Ovh\Api;

/**
 * Instantiate an OVH Client.
 * You can generate new credentials with full access to your account on
 * the token creation page (https://api.ovh.com/createToken/index.cgi?GET=/*&PUT=/*&POST=/*&DELETE=/*)
 */
$ovh = new Api('xxxxxxxxxx',  // Application Key
               'xxxxxxxxxx',  // Application Secret
               'ovh-eu',      // Endpoint of API OVH (List of available endpoints: https://github.com/ovh/python-ovh#2-configure-your-application)
               'xxxxxxxxxx'); // Consumer Key

$result = $ovh->get("/v2/vrackServices/resource/{vrackServicesId}/eligibleManagedService");

print_r($result);
?>
```
