CmdID

CmdID / aws / aws directconnect

aws directconnect describe-loa

Gets the LOA-CFA for a connection, interconnect, or link aggregation group (LAG). AWS CLI reference

2 examples 3 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

Example 1: To describe your LOA-CFA for a connection (Linux and macOS)

The following describe-loa example describes your LOA-CFA for connection dxcon-fh6ayh1d. The contents of the LOA-CFA are base64-encoded. This command uses the --output and --query parameters to control the output and extract the contents of the loaContent structure. The final part of the command decodes the content using the base64 utility, and sends the output to a PDF file.

aws directconnect describe-loa --connection-id dxcon-fh6ayh1d --query loa.loaContent --output text | base64 --decode > myLoaCfa.pdfIdentify
--connection-idThe ID of a connection, LAG, or interconnect.
--queryA JMESPath query to use in filtering the response data.
--outputThe formatting style for command output.

Trips 1 Sigma rule: lowDecode Base64 Encoded Text by Daniil Yugoslavskiy, oscd.community

This command produces no output. The decoded content is written to the file myLoaCfa.pdf.

For more information, see Download the Direct Connect LOA-CFA in the AWS Direct Connect User Guide.

Example 2: To describe your LOA-CFA for a connection (Windows)

The following describe-loa example describes your LOA-CFA for connection dxcon-fh6ayh1d on a Windows computer. The previous example requires the use of the base64 utility to decode the output, but on Windows you can use certutil instead. The first command uses the --output and --query parameters to control the output and extract the contents of the loaContent structure to a file called myLoaCfa.base64.

aws directconnect describe-loa ^Identify
--connection-id dxcon-fh6ayh1d ^
--query loa.loaContent ^
--output text > myLoaCfa.base64

This command produces no output. The output is redirected to myLoaCfa.base64.

The second command uses the certutil utility to decode the file and send the output to a PDF file.

certutil -decode myLoaCfa.base64 myLoaCfa.pdf

For more information, see Download the Direct Connect LOA-CFA in the AWS Direct Connect User Guide.

For more information about controlling AWS CLI output, see Controlling command output in the AWS CLI in the AWS Command Line Interface User Guide.

Options

3 in the AWS CLI reference
--connection-idThe ID of a connection, LAG, or interconnect.
--loa-content-typeThe standard media type for the LOA-CFA document.
--provider-nameThe name of the service provider who establishes connectivity on your behalf.