AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Retrieves information about the organization that the user's account belongs to.

This operation can be called from any account in the organization.

Even if a policy type is shown as available in the organization, you can disable it separately at the root level with DisablePolicyType. Use ListRoots to see the status of policy types for a specified root.

Note:

For .NET Core this operation is only available in asynchronous form. Please refer to DescribeOrganizationAsync.

Namespace: Amazon.Organizations
Assembly: AWSSDK.Organizations.dll
Version: 3.x.y.z

Syntax

C#
public virtual DescribeOrganizationResponse DescribeOrganization(
         DescribeOrganizationRequest request
)

Parameters

request
Type: Amazon.Organizations.Model.DescribeOrganizationRequest

Container for the necessary parameters to execute the DescribeOrganization service method.

Return Value


The response from the DescribeOrganization service method, as returned by Organizations.

Exceptions

ExceptionCondition
AccessDeniedException You don't have permissions to perform the requested operation. The user or role that is making the request must have at least one IAM permissions policy attached that grants the required permissions. For more information, see Access Management in the IAM User Guide.
AWSOrganizationsNotInUseException Your account isn't a member of an organization. To make this request, you must use the credentials of an account that belongs to an organization.
ConcurrentModificationException The target of the operation is currently being modified by a different request. Try again later.
ServiceException Organizations can't complete your request because of an internal service error. Try again later.
TooManyRequestsException You have sent too many requests in too short a period of time. The quota helps protect against denial-of-service attacks. Try again later. For information about quotas that affect Organizations, see Quotas for Organizations in the Organizations User Guide.

Examples

The following example shows how to request information about the current user's organization:/n/n

To get information about an organization


var client = new AmazonOrganizationsClient();
var response = client.DescribeOrganization(new DescribeOrganizationRequest 
{
});

Organization organization = response.Organization;

            

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5

See Also