This is the command as-describe-tags that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator
PROGRAM:
NAME
as-describe-tags - Describes tags
SYNOPSIS
as-describe-tags
[--filter "key1=value1,key2=value2..." [ --filter
"key1=value1,key2=value2..." ...] ] [General Options]
DESCRIPTION
Lists your tags. You can filter the list to return only tags you
specify
SPECIFIC OPTIONS
-f, --filter "key1=value1,key2=value2..." [ --filter
"key1=value1,key2=value2..." ...]
Add a filter criterion for the result-set. Currently, valid filter
types
include "auto-scaling-group", "key", "value" and
"propagate-at-launch".
GENERAL OPTIONS
--aws-credential-file VALUE
Location of the file with your AWS credentials. This value can be
set by
using the environment variable 'AWS_CREDENTIAL_FILE'.
-C, --ec2-cert-file-path VALUE
Path to the file holding the X.509 certificate. This value can be
set by
using the environment variable 'EC2_CERT'.
--connection-timeout VALUE
Connection timeout (in seconds). The default value is '30'.
--delimiter VALUE
The delimiter to use when displaying delimited (long) results.
-H, --headers
For displaying tabular or delimited results, it includes the column
headers. For displaying XML results, it returns the HTTP headers
from the
service request, if applicable. This is off by default.
-I, --access-key-id VALUE
The AWS access ID to use.
-K, --ec2-private-key-file-path VALUE
Path to the file holding the X.509 private key. This value can be
set by
using the environment variable 'EC2_PRIVATE_KEY'.
--region VALUE
Amazon EC2 region to use. This value can be set by using the
environment
variable 'EC2_REGION'.
-S, --secret-key VALUE
The AWS Secret Key to use.
--show-empty-fields
Shows empty fields and rows, using a (nil) value. The default is to
not
show empty fields or columns.
--show-request
Displays the URL the tools used to call the AWS Service. The
default
value is 'false'.
--show-table, --show-long, --show-xml, --quiet
The way in which the results are displayed: tabular, delimited
(long),
XML or no output (quiet). Tabular shows a subset of the data in
fixed
column-width form, while long shows all of the returned values
delimited
by a character, XML is the raw return from the service and quiet
suppresses all standard output. The default is tabular, or
'show-table'.
-U, --url VALUE
This option will override the URL for the service call with VALUE.
This
value can be set by using the environment variable
'AWS_AUTO_SCALING_URL'.
INPUT EXAMPLES
Describes all tags of the AutoScaling group 'test-group'.
$PROMPT> as-describe-tags --filter "auto-scaling-group=test-group"
Describes tag 'test-tag-1' for group 'test-group' if it exists.
$PROMPT> as-describe-tags --filter "auto-scaling-group=test-group
key=test-tag-1"
OUTPUT
This command returns a table that contains the following:
* RESOURCE-ID - Resource name to which the tag belongs.
* RESOURCE-TYPE - Resource type for which the tag was created.
* KEY - Key of the tag.
* VALUE - Value of the tag.
* PROPAGATE-AT-LAUNCH - The flag that controls whether the group tag
is
propagated to EC2 instances.
OUTPUT EXAMPLES
This is an example output for a tag
Use as-describe-tags online using onworks.net services