CmdID / aws / aws directconnect
aws directconnect describe-connection-loa
Deprecated. AWS CLI reference
2 examples 3 options Its page in the AWS CLI reference
Examples
Example 1: To describe your LOA-CFA for a connection (Linux and macOS)
The following describe-connection-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-connection-loa --connection-id dxcon-fh6ayh1d --query loa.loaContent --output text | base64 --decode > myLoaCfa.pdfIdentify--connection-idThe ID of the connection.--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 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-connection-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-connection-loa ^Identify--connection-id dxcon-fh6ayh1d ^--query loa.loaContent ^--output text > myLoaCfa.base64This command produces no output. Its 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
--connection-idThe ID of the connection.--loa-content-typeThe standard media type for the LOA-CFA document.--provider-nameThe name of the APN partner or service provider who establishes connectivity on your behalf.