<a id="cli-aws-wellarchitected-get-agent-organizational-report"></a>

# get-agent-organizational-report

## Description

Retrieves metadata and current state for a single Organizational Report. The coverageSummary is populated once the report reaches COMPLETED and is absent for reports still in progress or in a failed state.

See also: [AWS API Documentation](https://docs.aws.amazon.com/goto/WebAPI/wellarchitected-2020-03-31/GetAgentOrganizationalReport)

## Synopsis

```
  get-agent-organizational-report
--report-id <value>
[--cli-input-json | --cli-input-yaml]
[--generate-cli-skeleton <value>]
[--debug]
[--endpoint-url <value>]
[--no-verify-ssl]
[--no-paginate]
[--output <value>]
[--query <value>]
[--profile <value>]
[--region <value>]
[--version <value>]
[--color <value>]
[--no-sign-request]
[--ca-bundle <value>]
[--cli-read-timeout <value>]
[--cli-connect-timeout <value>]
[--cli-binary-format <value>]
[--no-cli-pager]
[--cli-auto-prompt]
[--no-cli-auto-prompt]
[--cli-error-format <value>]
[--help]
```

## Options

`--report-id` (string) [required]

> Identifier of the report to retrieve.

> Constraints:

> * pattern: `[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}`

`--cli-input-json` | `--cli-input-yaml` (string)
Reads arguments from the JSON string provided. The JSON string follows the format provided by `--generate-cli-skeleton`. If other arguments are provided on the command line, those values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally. This may not be specified along with `--cli-input-yaml`.

`--generate-cli-skeleton` (string)
Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value `input`, prints a sample input JSON that can be used as an argument for `--cli-input-json`. Similarly, if provided `yaml-input` it will print a sample input YAML that can be used with `--cli-input-yaml`. If provided with the value `output`, it validates the command inputs and returns a sample output JSON for that command. The generated JSON skeleton is not stable between versions of the AWS CLI and there are no backwards compatibility guarantees in the JSON skeleton generated.

## Global Options

`--debug` (boolean)

Turn on debug logging.

`--endpoint-url` (string)

Override command’s default URL with the given URL.

`--no-verify-ssl` (boolean)

By default, the AWS CLI uses SSL when communicating with AWS services. For each SSL connection, the AWS CLI will verify SSL certificates. This option overrides the default behavior of verifying SSL certificates.

`--no-paginate` (boolean)

Disable automatic pagination. If automatic pagination is disabled, the AWS CLI will only make one call, for the first page of results.

`--output` (string)

The formatting style for command output.

* json
* text
* table
* yaml
* yaml-stream
* off

`--query` (string)

A JMESPath query to use in filtering the response data.

`--profile` (string)

Use a specific profile from your credential file.

`--region` (string)

The region to use. Overrides config/env settings.

`--version` (string)

Display the version of this tool.

`--color` (string)

Turn on/off color output.

* on
* off
* auto

`--no-sign-request` (boolean)

Do not sign requests. Credentials will not be loaded if this argument is provided.

`--ca-bundle` (string)

The CA certificate bundle to use when verifying SSL certificates. Overrides config/env settings.

`--cli-read-timeout` (int)

The maximum socket read time in seconds. If the value is set to 0, the socket read will be blocking and not timeout. The default value is 60 seconds.

`--cli-connect-timeout` (int)

The maximum socket connect time in seconds. If the value is set to 0, the socket connect will be blocking and not timeout. The default value is 60 seconds.

`--cli-binary-format` (string)

The formatting style to be used for binary blobs. The default format is base64. The base64 format expects binary blobs to be provided as a base64 encoded string. The raw-in-base64-out format preserves compatibility with AWS CLI V1 behavior and binary values must be passed literally. When providing contents from a file that map to a binary blob `fileb://` will always be treated as binary and use the file contents directly regardless of the `cli-binary-format` setting. When using `file://` the file contents will need to properly formatted for the configured `cli-binary-format`.

* base64
* raw-in-base64-out

`--no-cli-pager` (boolean)

Disable cli pager for output.

`--cli-auto-prompt` (boolean)

Automatically prompt for CLI input parameters.

`--no-cli-auto-prompt` (boolean)

Disable automatically prompt for CLI input parameters.

`--cli-error-format` (string)

The formatting style for error output. By default, errors are displayed in enhanced format.

* legacy
* json
* yaml
* text
* table
* enhanced

`--help` (boolean)

Display help for the command/subcommand.

## Output

reportId -> (string)

> Unique identifier of the Organizational Report assigned by the service at creation time.

> Constraints:

> * pattern: `[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}`

ownerAccountId -> (string)

> AWS account ID of the caller that created the report. Only this account or a delegated administrator of the same organization may retrieve or delete the report.

> Constraints:

> * pattern: `\d{12}`

organizationId -> (string)

> Identifier of the AWS Organization the report belongs to. Derived from the caller’s authorization context at creation time and not accepted as a client-supplied input.

label -> (string)

> Optional human-readable label supplied by the caller at creation time.

> Constraints:

> * min: `1`
> * max: `500`

state -> (string)

> Current lifecycle state of the report.

> Possible values:

> * `DISCOVERING`
> * `SNAPSHOTTING`
> * `AGGREGATING`
> * `COMPRESSING`
> * `COMPLETED`
> * `FAILED`
> * `DELETING`

createdAt -> (timestamp)

> Timestamp at which the report was created.

filters -> (structure)

> Filters captured when the report was created. Absent when no filters were supplied (meaning the report covered the whole organization).

> accountIds -> (list)

> > AWS account IDs to include in the report. Absent or empty means all accounts in the organization are in scope. Each supplied account is validated against AWS Organizations membership. Accounts that do not belong to the caller’s organization are excluded and recorded on the report’s coverage summary.

> > Constraints:

> > * min: `0`
> > * max: `10000`

> > (string)

> > > Constraints:

> > > * pattern: `\d{12}`

> organizationalUnitIds -> (list)

> > AWS Organizational Unit IDs whose member accounts are included in the report. Absent or empty means no OU-based scoping is applied. Account and OU filters combine as a union.

> > Constraints:

> > * min: `0`
> > * max: `10000`

> > (string)

> > > Constraints:

> > > * pattern: `ou-[0-9a-z]{4,32}-[a-z0-9]{8,32}`

> pillars -> (list)

> > Well-Architected pillars to include. Absent or empty means all pillars.

> > Constraints:

> > * min: `0`
> > * max: `10`

> > (string)

> > > #### NOTE
> > > `OPERATIONAL_EXCELLENCE` can appear in recommendation results but cannot be specified as a request parameter. The requestable values are `COST_OPTIMIZATION` , `SECURITY` , `RESILIENCE` , and `PERFORMANCE` .

> > > A pillar of the Amazon Web Services Well-Architected Framework, used to scope recommendation generation.

> > > Possible values:

> > > * `COST_OPTIMIZATION`
> > > * `SECURITY`
> > > * `RESILIENCE`
> > > * `PERFORMANCE`
> > > * `OPERATIONAL_EXCELLENCE`

> recommendationTypes -> (list)

> > Recommendation types (RESOURCE, ARCHITECTURE, APPLICATION) to include. Absent or empty means all types.

> > Constraints:

> > * min: `0`
> > * max: `10`

> > (string)

> > > The type of a recommendation.

> > > Possible values:

> > > * `RESOURCE`
> > > * `ARCHITECTURE`
> > > * `APPLICATION`

> statuses -> (list)

> > Recommendation statuses (ACTIVE, SUPPRESSED, COMPLETED) to include. Absent or empty means all statuses.

> > Constraints:

> > * min: `0`
> > * max: `10`

> > (string)

> > > The status of a recommendation.

> > > Possible values:

> > > * `ACTIVE`
> > > * `SUPPRESSED`
> > > * `COMPLETED`

> priorities -> (list)

> > Recommendation priorities (HIGH, MEDIUM, LOW) to include. Absent or empty means all priorities.

> > Constraints:

> > * min: `0`
> > * max: `10`

> > (string)

> > > The priority of a recommendation.

> > > Possible values:

> > > * `HIGH`
> > > * `MEDIUM`
> > > * `LOW`

> createdAtRange -> (structure)

> > Inclusive window on recommendation creation time. Absent means no lower or upper bound on createdAt.

> > from -> (timestamp)

> > > Lower bound of the window (inclusive). Absent means no lower bound.

> > to -> (timestamp)

> > > Upper bound of the window (inclusive). Absent means no upper bound.

> updatedAtRange -> (structure)

> > Inclusive window on recommendation last-updated time. Absent means no lower or upper bound on updatedAt.

> > from -> (timestamp)

> > > Lower bound of the window (inclusive). Absent means no lower bound.

> > to -> (timestamp)

> > > Upper bound of the window (inclusive). Absent means no upper bound.

coverageSummary -> (structure)

> Coverage and aggregate counts for the report. Present only after the report reaches COMPLETED.

> totalAccountsInScope -> (long) [required]

> > Total number of accounts that were in scope for the report after applying all filters and AWS Organizations membership validation.

> accountsWithProfile -> (long) [required]

> > Number of in-scope accounts that had an Agent Profile and were successfully processed.

> accountsWithoutProfile -> (long) [required]

> > Number of in-scope accounts that had no Agent Profile at the time of the snapshot.

> failedAccountCount -> (long) [required]

> > Number of in-scope accounts that errored during processing. Equal to the length of failedAccounts.

> totalProfiles -> (long) [required]

> > Total number of Agent Profiles contributing to the report.

> totalRecommendations -> (long) [required]

> > Total number of recommendations included in the report across all profiles and all pillars.

> recommendationCountByPillar -> (list)

> > Recommendation count grouped by Well-Architected pillar. Each entry pairs a Pillar enum value with a non-negative long. The counts sum to totalRecommendations.

> > Constraints:

> > * min: `0`
> > * max: `10`

> > (structure)

> > > Pair of a Well-Architected pillar and the number of recommendations attributed to it in a CoverageSummary.

> > > pillar -> (string) [required]

> > > > Well-Architected pillar this count is attributed to.

> > > > Possible values:

> > > > * `COST_OPTIMIZATION`
> > > > * `SECURITY`
> > > > * `RESILIENCE`
> > > > * `PERFORMANCE`
> > > > * `OPERATIONAL_EXCELLENCE`

> > > count -> (long) [required]

> > > > Non-negative count of recommendations in the report that are attributed to this pillar.

> recommendationCountByPriority -> (list)

> > Recommendation count grouped by Priority. Each entry pairs a Priority enum value with a non-negative long. The counts sum to totalRecommendations.

> > Constraints:

> > * min: `0`
> > * max: `10`

> > (structure)

> > > Pair of a recommendation Priority and the number of recommendations attributed to it in a CoverageSummary.

> > > priority -> (string) [required]

> > > > Priority this count is attributed to.

> > > > Possible values:

> > > > * `HIGH`
> > > > * `MEDIUM`
> > > > * `LOW`

> > > count -> (long) [required]

> > > > Non-negative count of recommendations in the report that are attributed to this priority.

> failedAccounts -> (list)

> > Accounts that errored during processing and the reason they failed.

> > Constraints:

> > * min: `0`
> > * max: `1000`

> > (structure)

> > > An account that was in scope for an Organizational Report but could not be processed, along with the reason for the failure.

> > > accountId -> (string) [required]

> > > > The AWS account ID that failed.

> > > > Constraints:

> > > > * pattern: `\d{12}`

> > > reason -> (string) [required]

> > > > A human-readable explanation of why the account could not be processed.

> failedOrganizationalUnits -> (list)

> > Organizational units named in the report’s filters that could not be expanded into their member accounts, along with the reason each failed. A failed OU means the report is missing whatever accounts it contained. Absent or empty when every requested OU expanded successfully.

> > Constraints:

> > * min: `0`
> > * max: `1000`

> > (structure)

> > > An organizational unit that was requested in an Organizational Report’s filters but could not be expanded into its member accounts. A failed OU means the report is missing the accounts it contained.

> > > organizationalUnitId -> (string) [required]

> > > > The AWS Organizations OU ID that could not be expanded.

> > > > Constraints:

> > > > * pattern: `ou-[0-9a-z]{4,32}-[a-z0-9]{8,32}`

> > > reason -> (string) [required]

> > > > A human-readable explanation of why the organizational unit could not be expanded.
