Menu
Amazon Elastic Compute Cloud
API Reference (API Version 2016-11-15)

DescribeIdFormat

Describes the ID format settings for your resources on a per-region basis, for example, to view which resource types are enabled for longer IDs. This request only returns information about resource types whose ID formats can be modified; it does not return information about other resource types.

The following resource types support longer IDs: instance | reservation | snapshot | volume.

These settings apply to the IAM user who makes the request; they do not apply to the entire AWS account. By default, an IAM user defaults to the same settings as the root user, unless they explicitly override the settings by running the ModifyIdFormat command. Resources created with longer IDs are visible to all IAM users, regardless of these settings and provided that they have permission to use the relevant Describe command for the resource type.

Request Parameters

For more information about required and optional parameters that are common to all actions, see Common Query Parameters.

Resource

The type of resource: instance | reservation | snapshot | volume

Type: String

Required: No

Response Elements

The following elements are returned by the service.

requestId

The ID of the request.

Type: String

statusSet

Information about the ID format for the resource.

Type: array of IdFormat objects

Errors

For information about the errors that are common to all actions, see Common Errors.

Example

Example

This example describes the ID format for all resources that support longer IDs.

Sample Request

Copy
https://ec2.amazonaws.com/?Action=DescribeIdFormat &AUTHPARAMS

Sample Response

Copy
<DescribeIdFormatResponse xmlns="http://ec2.amazonaws.com/doc/2016-11-15/"> <requestId>7a62c49f-347e-4fc4-9331-6e8eEXAMPLE</requestId> <statuses> <item> <resource>instance</resource> <useLongIds>true</useLongIds> <deadline>2016-11-01T21:34:34.000Z</deadline> </item> <item> <resource>reservation</resource> <useLongIds>false</useLongIds> <deadline>2016-11-01T21:34:34.000Z</deadline> </item> <item> <resource>volume</resource> <useLongIds>false</useLongIds> <deadline>2016-11-01T21:34:34.000Z</deadline> </item> <item> <resource>snapshot</resource> <useLongIds>false</useLongIds> <deadline>2016-11-01T21:34:34.000Z</deadline> </item> </statuses> </DescribeIdFormatResponse>

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: