Obtenir des informations sur les sites DirectLink

Vous pouvez obtenir des informations à propos des sites DirectLink disponibles. Vous pouvez ensuite faire une demande de connexion entre un de ces sites et votre propre réseau.

Voir le dashboard DirectLink.

À ce jour, cette section est disponible en anglais uniquement.

The ReadLocations command lists the locations, corresponding to datacenters, where you can set up a DirectLink.

For more information, see About DirectLink.

Request sample
$ osc-cli api ReadLocations --profile "default"

This command contains the following attributes that you need to specify:

  • DryRun: (optional) If true, checks whether you have the required permissions to perform the action.

  • NextPageToken: (optional) The token to request the next page of results. Each token refers to a specific page.

  • ResultsPerPage: (optional) The maximum number of logs returned in a single response (between 1 and 1000, both included).

The ReadLocations command returns the following elements:

  • Locations: Information about one or more locations.

    • Code: The location code, to be set as the Location parameter of the CreateDirectLink method when creating a DirectLink.

    • Name: The name and description of the location, corresponding to a datacenter.

  • NextPageToken: The token to request the next page of results. Each token refers to a specific page.

  • ResponseContext: Information about the context of the response.

    • RequestId: The ID of the request.

Result sample
{
  "ResponseContext": {
    "RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
  },
  "Locations": [
    {
      "Name": "Telehouse 3, France",
      "Code": "PAR1"
    },
    {
      "Name": "Equinix Pantin, France",
      "Code": "PAR4"
    }
  ]
}

À ce jour, cette section est disponible en anglais uniquement.

The ReadLocations command lists the locations, corresponding to datacenters, where you can set up a DirectLink.

For more information, see About DirectLink.

Request sample
$ oapi-cli --profile "default" ReadLocations

This command contains the following attributes that you need to specify:

  • DryRun: (optional) If true, checks whether you have the required permissions to perform the action.

  • NextPageToken: (optional) The token to request the next page of results. Each token refers to a specific page.

  • ResultsPerPage: (optional) The maximum number of logs returned in a single response (between 1 and 1000, both included).

The ReadLocations command returns the following elements:

  • Locations: Information about one or more locations.

    • Code: The location code, to be set as the Location parameter of the CreateDirectLink method when creating a DirectLink.

    • Name: The name and description of the location, corresponding to a datacenter.

  • NextPageToken: The token to request the next page of results. Each token refers to a specific page.

  • ResponseContext: Information about the context of the response.

    • RequestId: The ID of the request.

Result sample
{
  "ResponseContext": {
    "RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
  },
  "Locations": [
    {
      "Name": "Telehouse 3, France",
      "Code": "PAR1"
    },
    {
      "Name": "Equinix Pantin, France",
      "Code": "PAR4"
    }
  ]
}

Avant de commencer : Installez et configurez AWS CLI. Pour en savoir plus, voir Installer et configurer AWS CLI.

Pour obtenir des informations à propos des sites DirectLink, utilisez la commande describe-locations en suivant cette syntaxe :

Exemple de requête
$ aws directconnect describe-locations \
    --profile YOUR_PROFILE \
    --endpoint https://directlink.eu-west-2.outscale.com

Cette commande contient les options suivantes que vous devez spécifier :

  • (optionnel) profile : Le profil nommé que vous voulez utiliser, créé pendant la configuration d’AWS CLI. Pour en savoir plus, voir Installer et configurer AWS CLI.

  • endpoint : Le endpoint correspondant à la Région à laquelle vous voulez envoyer la requête. Pour en savoir plus, voir Installer et configurer AWS CLI.

La commande describe-locations renvoie les éléments suivants :

  • locations : Informations à propos d’un ou plusieurs sites. Cet élément contient les informations suivantes :

    • locationName : Le nom et l’emplacement du site physique.

    • locationCode : Le code du site, requis pour demander une connexion.

Exemple de résultat
{
    "locations": [
        {
            "locationName": "Telehouse 3 D02",
            "locationCode": "PAR1"
        }
    ]
}

Méthodes API correspondantes

Pages connexes

AWS™ et Amazon Web Services™ sont des marques de commerce d'Amazon Technologies, Inc. ou de ses affiliées aux États-Unis et/ou dans les autres pays.