aws organizations63 CLI commands available for AWS Organizations.
| Command | API Operation | Sample |
|---|---|---|
accept-handshakeAccepts a handshake by sending an ACCEPTED response to the sender. You can view accepted handshakes in API responses for 30 days before they are deleted. Only the management account can accept the following handshakes: Enable all features final confirmation (APPROVE_ALL_FEATURES) Billing transf | AcceptHandshake | |
attach-policyAttaches a policy to a root, an organizational unit (OU), or an individual account. How the policy affects accounts depends on the type of policy. Refer to the Organizations User Guide for information about each policy type: SERVICE_CONTROL_POLICY RESOURCE_CONTROL_POLICY DECLARATIVE_POLIC | AttachPolicy | |
cancel-handshakeCancels a Handshake. Only the account that sent a handshake can call this operation. The recipient of the handshake can't cancel it, but can use DeclineHandshake to decline. After a handshake is canceled, the recipient can no longer respond to the handshake. You can view canceled handshakes in API r | CancelHandshake | |
close-accountCloses an Amazon Web Services member account within an organization. You can close an account when all features are enabled . You can't close the management account with this API. This is an asynchronous request that Amazon Web Services performs in the background. Because CloseAccount operates async | CloseAccount | |
create-accountCreates an Amazon Web Services account that is automatically a member of the organization whose credentials made the request. This is an asynchronous request that Amazon Web Services performs in the background. Because CreateAccount operates asynchronously, it can return a successful completion mess | CreateAccount | |
create-gov-cloud-accountThis action is available if all of the following are true: You're authorized to create accounts in the Amazon Web Services GovCloud (US) Region. For more information on the Amazon Web Services GovCloud (US) Region, see the Amazon Web Services GovCloud User Guide. You already have an account in | CreateGovCloudAccount | |
create-organizationCreates an Amazon Web Services organization. The account whose user is calling the CreateOrganization operation automatically becomes the management account of the new organization. This operation must be called using credentials from the account that is to become the new organization's management a | CreateOrganization | |
create-organizational-unitCreates an organizational unit (OU) within a root or parent OU. An OU is a container for accounts that enables you to organize your accounts to apply policies according to your business requirements. The number of levels deep that you can nest OUs is dependent upon the policy types enabled for that | CreateOrganizationalUnit | |
create-policyCreates a policy of a specified type that you can attach to a root, an organizational unit (OU), or an individual Amazon Web Services account. For more information about policies and their use, see Managing Organizations policies. If the request includes tags, then the requester must have the organi | CreatePolicy | |
decline-handshakeDeclines a Handshake. Only the account that receives a handshake can call this operation. The sender of the handshake can use CancelHandshake to cancel if the handshake hasn't yet been responded to. You can view canceled handshakes in API responses for 30 days before they are deleted. | DeclineHandshake | |
delete-organizationDeletes the organization. You can delete an organization only by using credentials from the management account. The organization must be empty of member accounts. | DeleteOrganization | |
delete-organizational-unitDeletes an organizational unit (OU) from a root or another OU. You must first remove all accounts and child OUs from the OU that you want to delete. You can only call this operation from the management account. | DeleteOrganizationalUnit | |
delete-policyDeletes the specified policy from your organization. Before you perform this operation, you must first detach the policy from all organizational units (OUs), roots, and accounts. You can only call this operation from the management account or a member account that is a delegated administrator. | DeletePolicy | |
delete-resource-policyDeletes the resource policy from your organization. You can only call this operation from the management account. | DeleteResourcePolicy | |
deregister-delegated-administratorRemoves the specified member Amazon Web Services account as a delegated administrator for the specified Amazon Web Services service. Deregistering a delegated administrator can have unintended impacts on the functionality of the enabled Amazon Web Services service. See the documentation for the ena | DeregisterDelegatedAdministrator | |
describe-accountRetrieves Organizations-related information about the specified account. You can only call this operation from the management account or a member account that is a delegated administrator. | DescribeAccount | |
describe-create-account-statusRetrieves the current status of an asynchronous request to create an account. You can only call this operation from the management account or a member account that is a delegated administrator. | DescribeCreateAccountStatus | |
describe-effective-policyReturns the contents of the effective policy for specified policy type and account. The effective policy is the aggregation of any policies of the specified type that the account inherits, plus any policy of that type that is directly attached to the account. This operation applies only to managemen | DescribeEffectivePolicy | |
describe-handshakeReturns details for a handshake. A handshake is the secure exchange of information between two Amazon Web Services accounts: a sender and a recipient. You can view ACCEPTED, DECLINED, or CANCELED handshakes in API Responses for 30 days before they are deleted. You can call this operation from any ac | DescribeHandshake | |
describe-organizationRetrieves information about the organization that the user's account belongs to. You can call this operation from any account in a 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 | DescribeOrganization | |
describe-organizational-unitRetrieves information about an organizational unit (OU). You can only call this operation from the management account or a member account that is a delegated administrator. | DescribeOrganizationalUnit | |
describe-policyRetrieves information about a policy. You can only call this operation from the management account or a member account that is a delegated administrator. | DescribePolicy | |
describe-resource-policyRetrieves information about a resource policy. You can only call this operation from the management account or a member account that is a delegated administrator. | DescribeResourcePolicy | |
describe-responsibility-transferReturns details for a transfer. A transfer is an arrangement between two management accounts where one account designates the other with specified responsibilities for their organization. | DescribeResponsibilityTransfer | |
detach-policyDetaches a policy from a target root, organizational unit (OU), or account. If the policy being detached is a service control policy (SCP), the changes to permissions for Identity and Access Management (IAM) users and roles in affected accounts are immediate. Every root, OU, and account must have | DetachPolicy | |
disable-aws-service-accessDisables the integration of an Amazon Web Services service (the service that is specified by ServicePrincipal) with Organizations. When you disable integration, the specified service no longer can create a service-linked role in new accounts in your organization. This means the service can't perform | DisableAWSServiceAccess | |
disable-policy-typeDisables an organizational policy type in a root. A policy of a certain type can be attached to entities in a root only if that type is enabled in the root. After you perform this operation, you no longer can attach policies of the specified type to that root or to any organizational unit (OU) or ac | DisablePolicyType | |
enable-all-featuresEnables all features in an organization. This enables the use of organization policies that can restrict the services and actions that can be called in each account. Until you enable all features, you have access only to consolidated billing, and you can't use any of the advanced account administrat | EnableAllFeatures | |
enable-aws-service-accessProvides an Amazon Web Services service (the service that is specified by ServicePrincipal) with permissions to view the structure of an organization, create a service-linked role in all the accounts in the organization, and allow the service to perform operations on behalf of the organization and i | EnableAWSServiceAccess | |
enable-policy-typeEnables a policy type in a root. After you enable a policy type in a root, you can attach policies of that type to the root, any organizational unit (OU), or account in that root. You can undo this by using the DisablePolicyType operation. This is an asynchronous request that Amazon Web Services per | EnablePolicyType | |
invite-account-to-organizationSends an invitation to another account to join your organization as a member account. Organizations sends email on your behalf to the email address that is associated with the other account's owner. The invitation is implemented as a Handshake whose details are in the response. If you receive an ex | InviteAccountToOrganization | |
invite-organization-to-transfer-responsibilitySends an invitation to another organization's management account to designate your account with the specified responsibilities for their organization. The invitation is implemented as a Handshake whose details are in the response. You can only call this operation from the management account. | InviteOrganizationToTransferResponsibility | |
leave-organizationRemoves a member account from its parent organization. This version of the operation is performed by the account that wants to leave. To remove a member account as a user in the management account, use RemoveAccountFromOrganization instead. You can only call from operation from a member account. | LeaveOrganization | |
list-accountsLists all the accounts in the organization. To request only the accounts in a specified root or organizational unit (OU), use the ListAccountsForParent operation instead. When calling List* operations, always check the NextToken response parameter value, even if you receive an empty result set. The | ListAccounts | |
list-accounts-for-parentLists the accounts in an organization that are contained by the specified target root or organizational unit (OU). If you specify the root, you get a list of all the accounts that aren't in any OU. If you specify an OU, you get a list of all the accounts in only that OU and not in any child OUs. To | ListAccountsForParent | |
list-accounts-with-invalid-effective-policyLists all the accounts in an organization that have invalid effective policies. An invalid effective policy is an effective policy that fails validation checks, resulting in the effective policy not being fully enforced on all the intended accounts within an organization. You can only call this oper | ListAccountsWithInvalidEffectivePolicy | |
list-aws-service-access-for-organizationReturns a list of the Amazon Web Services services that you enabled to integrate with your organization. After a service on this list creates the resources that it requires for the integration, it can perform operations on your organization and its accounts. For more information about integrating ot | ListAWSServiceAccessForOrganization | |
list-childrenLists all of the organizational units (OUs) or accounts that are contained in the specified parent OU or root. This operation, along with ListParents enables you to traverse the tree structure that makes up this root. When calling List* operations, always check the NextToken response parameter valu | ListChildren | |
list-create-account-statusLists the account creation requests that match the specified status that is currently being tracked for the organization. When calling List* operations, always check the NextToken response parameter value, even if you receive an empty result set. These operations can occasionally return an empty se | ListCreateAccountStatus | |
list-delegated-administratorsLists the Amazon Web Services accounts that are designated as delegated administrators in this organization. You can only call this operation from the management account or a member account that is a delegated administrator. | ListDelegatedAdministrators | |
list-delegated-services-for-accountList the Amazon Web Services services for which the specified account is a delegated administrator. You can only call this operation from the management account or a member account that is a delegated administrator. | ListDelegatedServicesForAccount | |
list-effective-policy-validation-errorsLists all the validation errors on an effective policy for a specified account and policy type. You can only call this operation from the management account or a member account that is a delegated administrator. | ListEffectivePolicyValidationErrors | |
list-handshakes-for-accountLists the recent handshakes that you have received. You can view CANCELED, ACCEPTED, DECLINED, or EXPIRED handshakes in API responses for 30 days before they are deleted. You can call this operation from any account in a organization. When calling List* operations, always check the NextToken respon | ListHandshakesForAccount | |
list-handshakes-for-organizationLists the recent handshakes that you have sent. You can view CANCELED, ACCEPTED, DECLINED, or EXPIRED handshakes in API responses for 30 days before they are deleted. You can only call this operation from the management account or a member account that is a delegated administrator. When calling Lis | ListHandshakesForOrganization | |
list-inbound-responsibility-transfersLists transfers that allow you to manage the specified responsibilities for another organization. This operation returns both transfer invitations and transfers. When calling List* operations, always check the NextToken response parameter value, even if you receive an empty result set. These operat | ListInboundResponsibilityTransfers | |
list-organizational-units-for-parentLists the organizational units (OUs) in a parent organizational unit or root. When calling List* operations, always check the NextToken response parameter value, even if you receive an empty result set. These operations can occasionally return an empty set of results even when more results are avai | ListOrganizationalUnitsForParent | |
list-outbound-responsibility-transfersLists transfers that allow an account outside your organization to manage the specified responsibilities for your organization. This operation returns both transfer invitations and transfers. When calling List* operations, always check the NextToken response parameter value, even if you receive an | ListOutboundResponsibilityTransfers | |
list-parentsLists the root or organizational units (OUs) that serve as the immediate parent of the specified child OU or account. This operation, along with ListChildren enables you to traverse the tree structure that makes up this root. When calling List* operations, always check the NextToken response parame | ListParents | |
list-policiesRetrieves the list of all policies in an organization of a specified type. When calling List* operations, always check the NextToken response parameter value, even if you receive an empty result set. These operations can occasionally return an empty set of results even when more results are availab | ListPolicies | |
list-policies-for-targetLists the policies that are directly attached to the specified target root, organizational unit (OU), or account. You must specify the policy type that you want included in the returned list. When calling List* operations, always check the NextToken response parameter value, even if you receive an | ListPoliciesForTarget | |
list-rootsLists the roots that are defined in the current organization. When calling List* operations, always check the NextToken response parameter value, even if you receive an empty result set. These operations can occasionally return an empty set of results even when more results are available. Continue | ListRoots | |
list-tags-for-resourceLists tags that are attached to the specified resource. You can attach tags to the following resources in Organizations. Amazon Web Services account Organization root Organizational unit (OU) Policy (any type) You can only call this operation from the management account or a member account | ListTagsForResource | |
list-targets-for-policyLists all the roots, organizational units (OUs), and accounts that the specified policy is attached to. When calling List* operations, always check the NextToken response parameter value, even if you receive an empty result set. These operations can occasionally return an empty set of results even | ListTargetsForPolicy | |
move-accountMoves an account from its current source parent root or organizational unit (OU) to the specified destination parent root or OU. You can only call this operation from the management account. | MoveAccount | |
put-resource-policyCreates or updates a resource policy. You can only call this operation from the management account.. | PutResourcePolicy | |
register-delegated-administratorEnables the specified member account to administer the Organizations features of the specified Amazon Web Services service. It grants read-only access to Organizations service data. The account still requires IAM permissions to access and administer the Amazon Web Services service. You can run this | RegisterDelegatedAdministrator | |
remove-account-from-organizationRemoves the specified account from the organization. The removed account becomes a standalone account that isn't a member of any organization. It's no longer subject to any policies and is responsible for its own bill payments. The organization's management account is no longer charged for any expen | RemoveAccountFromOrganization | |
tag-resourceAdds one or more tags to the specified resource. Currently, you can attach tags to the following resources in Organizations. Amazon Web Services account Organization root Organizational unit (OU) Policy (any type) You can only call this operation from the management account or a member acc | TagResource | |
terminate-responsibility-transferEnds a transfer. A transfer is an arrangement between two management accounts where one account designates the other with specified responsibilities for their organization. | TerminateResponsibilityTransfer | |
untag-resourceRemoves any tags with the specified keys from the specified resource. You can attach tags to the following resources in Organizations. Amazon Web Services account Organization root Organizational unit (OU) Policy (any type) You can only call this operation from the management account or a | UntagResource | |
update-organizational-unitRenames the specified organizational unit (OU). The ID and ARN don't change. The child OUs and accounts remain in place, and any attached policies of the OU remain attached. You can only call this operation from the management account. | UpdateOrganizationalUnit | |
update-policyUpdates an existing policy with a new name, description, or content. If you don't supply any parameter, that value remains unchanged. You can't change a policy's type. You can only call this operation from the management account or a member account that is a delegated administrator. | UpdatePolicy | |
update-responsibility-transferUpdates a transfer. A transfer is the arrangement between two management accounts where one account designates the other with specified responsibilities for their organization. You can update the name assigned to a transfer. | UpdateResponsibilityTransfer |
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterOur bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to NewsletterOrganizations