Getting Information About Regions and Subregions

You can get information about Regions and Subregions of the OUTSCALE Cloud, like their names or endpoints.

Getting Information About Regions

Getting Information About Regions Using OSC CLI

The ReadRegions command lists one or more Regions of the OUTSCALE Cloud.

For more information, see About Regions, Endpoints, and Subregions.

Request sample
$ osc-cli api ReadRegions --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.

The ReadRegions command returns the following elements:

  • Regions: Information about one or more Regions.

  • ResponseContext: Information about the context of the response.

Result sample
{
  "ResponseContext": {
    "RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
  },
  "Regions": [
    {
      "RegionName": "eu-west-2",
      "Endpoint": "api.eu-west-2.outscale.com"
    },
    {
      "RegionName": "us-east-2",
      "Endpoint": "api.us-east-2.outscale.com"
    },
    {
      "RegionName": "us-west-1",
      "Endpoint": "api.us-west-1.outscale.com"
    }
  ]
}

Getting Information About Regions Using AWS CLI

To get information about one or more Regions, use the describe-regions command following this syntax:

Request sample
$ aws ec2 describe-regions \
    [--region-names NOT_SPECIFIED] \
    [--filters NOT_SPECIFIED] \
    --endpoint https://fcu.eu-west-2.outscale.com

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

  • (optional) region-names: The name of one or more Regions.

  • (optional) filters: One or more filters, in the "Name=X,Values=Y" format.

    You can specify several values for a same filter using the "Name=X,Values=Y, Z" format.

    The following filters are available:

    • region-name: The name of the Region.

    • endpoint: The endpoint to access the Region.

      If you know only a string of the Region name or the endpoint, you can use it as value for the corresponding filters following this syntax:

      $ aws ec2 describe-regions \
         --filters "Name=region-name,Values=*xx*" \
      $ aws ec2 describe-regions \
         --filters "Name=endpoint,Values=*xx*" \
  • endpoint: The endpoint corresponding to the Region you want to send the request to.

The describe-regions command returns the following elements:

  • Regions: Information about one or more Regions. This element contains the following information:

    • Endpoint: The URL to access the Region.

    • RegionName: The name of the Region.

Result sample
{
    "Regions": [
        {
            "Endpoint": "fcu.eu-west-2.outscale.com",
            "RegionName": "eu-west-2"
        },
        {
            "Endpoint": "fcu.us-east-2.outscale.com",
            "RegionName": "us-east-2"
        },
        {
            "Endpoint": "fcu.us-west-1.outscale.com",
            "RegionName": "us-west-1"
        }
    ]
}

Getting Information About Subregions

Getting Information About Subregions Using OSC CLI

The ReadSubregions command lists one or more of the enabled Subregions that you can access in the current Region.

For more information, see About Regions, Endpoints, and Subregions.

Request sample: Listing a specific Subregion in the current Region
$ osc-cli api ReadSubregions --profile "default" \
    --Filters '{
        "SubregionNames": ["eu-west-2a"],
      }'
Request sample: Listing two specific Subregions in the current Region
$ osc-cli api ReadSubregions --profile "default" \
    --Filters '{
        "SubregionNames": ["eu-west-2a", "eu-west-2b"],
      }'

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.

  • 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 ReadSubregions command returns the following elements:

  • 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.

  • Subregions: Information about one or more Subregions.

Result sample: Listing a specific Subregion in the current Region
{
  "Subregions": [
    {
      "State": "available",
      "RegionName": "eu-west-2",
      "SubregionName": "eu-west-2a",
      "LocationCode": "PAR1"
    }
  ],
  "ResponseContext": {
    "RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
  }
}
Result sample: Listing two specific Subregions in the current Region
{
  "Subregions": [
    {
      "State": "available",
      "RegionName": "eu-west-2",
      "SubregionName": "eu-west-2a",
      "LocationCode": "PAR1"
    },
    {
      "State": "available",
      "RegionName": "eu-west-2",
      "SubregionName": "eu-west-2b",
      "LocationCode": "PAR4"
    }
  ],
  "ResponseContext": {
    "RequestId": "0475ca1e-d0c5-441d-712a-da55a4175157"
  }
}

Getting Information About Availability Zones Using AWS CLI

You can use this command to get information about Availability Zones only in a Region for which you have an account. Otherwise, an error message is returned.

To get information about one or more Availability Zones inside a Region, use the describe-availability-zones command following this syntax:

Request sample
$ aws ec2 describe-availability-zones \
    --profile YOUR_PROFILE \
    [--zone-names NOT_SPECIFIED] \
    [--filters NOT_SPECIFIED] \
    --endpoint https://fcu.eu-west-2.outscale.com

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

  • (optional) profile: The named profile you want to use, created when configuring AWS CLI. For more information, see Installing and Configuring AWS CLI.

  • (optional) zone-names: The name of one or more Availability Zones.

  • (optional) filters: One or more filters, in the "Name=X,Values=Y" format.

    You can specify several values for a same filter using the "Name=X,Values=Y, Z" format.

    The following filters are available:

    • region-name: The name of the Region where the Availability Zones are located.

    • state: The current state of the Availability Zones ( available | information | impaired | unavailable ).

    • zone-name: The name of the Availability Zones.

  • endpoint: The endpoint corresponding to the Region you want to send the request to.

The describe-availability-zones command returns the following elements:

  • AvailabilityZones: Information about one or more Availability Zones. This element contains the following information for each Availability Zone:

    • State: The current state of the Availability Zone (always available).

    • RegionName: The name of the Region where the Availability Zone is located.

    • ZoneName: The name of the Availability Zone.

Result sample
{
    "AvailabilityZones": [
        {
            "State": "available",
            "RegionName": "eu-west-2",
            "ZoneName": "eu-west-2b"
        },
        {
            "State": "available",
            "RegionName": "eu-west-2",
            "ZoneName": "eu-west-2a"
        }
    ]
}

Related Pages

Corresponding API Methods

AWS™ and Amazon Web Services™ are trademarks of Amazon Technologies, Inc or its affiliates in the United States and/or other countries.