Obtenir des informations sur vos Net access points

Vous pouvez obtenir des informations à propos d’un ou plusieurs de vos Net access points, comme le nom du service ciblé ou le Net dans lequel il se trouve.

Obtenir des informations sur vos Net access points avec Cockpit v2

Voir le dashboard Net Access Points.

Obtenir des informations sur vos Net access points avec OSC CLI

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

The ReadNetAccessPoints command lists one or more Net access points.

Request sample
$ osc-cli api ReadNetAccessPoints --profile "default" \
    --Filters '{
        "NetAccessPointIds": ["vpce-12345678"]
      }'
Request sample
$ osc-cli api ReadNetAccessPoints --profile "default" \
    --Filters '{
        "NetIds": ["vpc-12345678"],
        "States": ["available"]
      }'

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.

  • Filters: (optional) One or more filters.

    • NetAccessPointIds: (optional) The IDs of the Net access points.

    • NetIds: (optional) The IDs of the Nets.

    • ServiceNames: (optional) The names of the services. For more information, see ReadNetAccessPointServices.

    • States: (optional) The states of the Net access points (pending | available | deleting | deleted).

    • TagKeys: (optional) The keys of the tags associated with the Net access points.

    • TagValues: (optional) The values of the tags associated with the Net access points.

    • Tags: (optional) The key/value combination of the tags associated with the Net access points, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}.

  • 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). By default, 100.

The ReadNetAccessPoints command returns the following elements:

  • NetAccessPoints: One or more Net access points.

    • NetAccessPointId: The ID of the Net access point.

    • NetId: The ID of the Net with which the Net access point is associated.

    • RouteTableIds: The ID of the route tables associated with the Net access point.

    • ServiceName: The name of the service with which the Net access point is associated.

    • State: The state of the Net access point (pending | available | deleting | deleted).

    • Tags: One or more tags associated with the Net access point.

      • Key: The key of the tag, with a minimum of 1 character.

      • Value: The value of the tag, between 0 and 255 characters.

  • 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"
  },
  "NetAccessPoints": [
    {
      "Tags": [],
      "NetAccessPointId": "vpce-12345678",
      "RouteTableIds": [
        "rtb-12345678"
      ],
      "State": "available",
      "NetId": "vpc-12345678",
      "ServiceName": "com.outscale.eu-west-2.oos"
    }
  ]
}

Obtenir des informations sur vos Net access points avec oapi-cli

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

The ReadNetAccessPoints command lists one or more Net access points.

Request sample
$ oapi-cli --profile "default" ReadNetAccessPoints \
    --Filters '{
        "NetAccessPointIds": ["vpce-12345678"]
      }'
Request sample
$ oapi-cli --profile "default" ReadNetAccessPoints \
    --Filters '{
        "NetIds": ["vpc-12345678"],
        "States": ["available"]
      }'

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.

  • Filters: (optional) One or more filters.

    • NetAccessPointIds: (optional) The IDs of the Net access points.

    • NetIds: (optional) The IDs of the Nets.

    • ServiceNames: (optional) The names of the services. For more information, see ReadNetAccessPointServices.

    • States: (optional) The states of the Net access points (pending | available | deleting | deleted).

    • TagKeys: (optional) The keys of the tags associated with the Net access points.

    • TagValues: (optional) The values of the tags associated with the Net access points.

    • Tags: (optional) The key/value combination of the tags associated with the Net access points, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}.

  • 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). By default, 100.

The ReadNetAccessPoints command returns the following elements:

  • NetAccessPoints: One or more Net access points.

    • NetAccessPointId: The ID of the Net access point.

    • NetId: The ID of the Net with which the Net access point is associated.

    • RouteTableIds: The ID of the route tables associated with the Net access point.

    • ServiceName: The name of the service with which the Net access point is associated.

    • State: The state of the Net access point (pending | available | deleting | deleted).

    • Tags: One or more tags associated with the Net access point.

      • Key: The key of the tag, with a minimum of 1 character.

      • Value: The value of the tag, between 0 and 255 characters.

  • 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"
  },
  "NetAccessPoints": [
    {
      "Tags": [],
      "NetAccessPointId": "vpce-12345678",
      "RouteTableIds": [
        "rtb-12345678"
      ],
      "State": "available",
      "NetId": "vpc-12345678",
      "ServiceName": "com.outscale.eu-west-2.oos"
    }
  ]
}

Obtenir des informations sur vos VPC endpoints avec AWS CLI

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

Pour obtenir des informations à propos d’un ou plusieurs de vos VPC endpoints, utilisez la commande describe-vpc-endpoints en suivant cette syntaxe :

Exemple de requête
$ aws ec2 describe-vpc-endpoint \
    --profile YOUR_PROFILE \
    --vpc-endpoint-ids vpce-12345678 \
    --filters Name=X,Values=Y \
    --endpoint https://fcu.eu-west-2.outscale.com

Cette commande contient les attributs suivants 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.

  • vpc-endpoints-ids : Un ou plusieurs ID de VPC endpoints.

  • (optionnel) filters : Un ou plusieurs filtres, au format "Name=X,Values=Y".

    Vous pouvez spécifier plusieurs valeurs pour un même filtre en utilisant le format "Name=X,Values=Y, Z".

    Les filtres suivants sont disponibles :

  • 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-vpc-endpoints renvoie les éléments suivants :

  • VpcEndpoints : Informations à propos d’un ou plusieurs VPC endpoints. Cet élément contient les informations suivantes :

    • VpcId : L’ID du VPC dans lequel est le VPC endpoint.

    • State : L’état du VPC endpoint. Pour en savoir plus, voir À propos des Net access points.

    • ServiceName : Le nom de la prefix list correspondant au service.

    • RouteTableIds : Un ou plusieurs ID de route tables routant le trafic vers le service à travers le VPC endpoint.

    • VpcEndpointId : L’ID du VPC endpoint.

    • CreationTimestamp : La date et l’heure de création du VPC endpoint.

Exemple de résultat
{
  "VpcEndpoints": [
                   {
                    "VpcId": "vpc-1234abcd",
                    "State": "available",
                    "ServiceName": "com.outscale.eu-west-2.oos",
                    "RouteTableIds": [
                                      "rtb-87654321"
                                     ],
                    "VpcEndpointId": "vpce-12345678",
                    "CreationTimestamp": "2016-10-16T17:02:42Z"
                   }
                  ]
}

Pages connexes

Méthodes API correspondantes

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.