/AWS1/IF_ORG=>DESCRIBECREATEACCOUNTSTATUS()¶
About DescribeCreateAccountStatus¶
Retrieves the current status of an asynchronous request to create an account.
This operation can be called only from the organization's management account or by a member account that is a delegated administrator.
Method Signature¶
METHODS /AWS1/IF_ORG~DESCRIBECREATEACCOUNTSTATUS
IMPORTING
!IV_CREATEACCOUNTREQUESTID TYPE /AWS1/ORGCREATEACCOUNTREQID OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_orgdsccreacctstatrsp
RAISING
/AWS1/CX_ORGACCESSDENIEDEX
/AWS1/CX_ORGAWSORGSNOTINUSEEX
/AWS1/CX_ORGCREACCTSTATNOTFN00
/AWS1/CX_ORGINVALIDINPUTEX
/AWS1/CX_ORGSERVICEEXCEPTION
/AWS1/CX_ORGTOOMANYREQUESTSEX
/AWS1/CX_ORGUNSUPPEDAPIENDPTEX
/AWS1/CX_ORGCLIENTEXC
/AWS1/CX_ORGSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_createaccountrequestid TYPE /AWS1/ORGCREATEACCOUNTREQID /AWS1/ORGCREATEACCOUNTREQID¶
Specifies the
Idvalue that uniquely identifies theCreateAccountrequest. You can get the value from theCreateAccountStatus.Idresponse in an earlier CreateAccount request, or from the ListCreateAccountStatus operation.The regex pattern for a create account request ID string requires "car-" followed by from 8 to 32 lowercase letters or digits.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_orgdsccreacctstatrsp /AWS1/CL_ORGDSCCREACCTSTATRSP¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->describecreateaccountstatus( |string| ).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_createaccountstatus = lo_result->get_createaccountstatus( ).
IF lo_createaccountstatus IS NOT INITIAL.
lv_createaccountrequestid = lo_createaccountstatus->get_id( ).
lv_createaccountname = lo_createaccountstatus->get_accountname( ).
lv_createaccountstate = lo_createaccountstatus->get_state( ).
lv_timestamp = lo_createaccountstatus->get_requestedtimestamp( ).
lv_timestamp = lo_createaccountstatus->get_completedtimestamp( ).
lv_accountid = lo_createaccountstatus->get_accountid( ).
lv_accountid = lo_createaccountstatus->get_govcloudaccountid( ).
lv_createaccountfailurerea = lo_createaccountstatus->get_failurereason( ).
ENDIF.
ENDIF.
To get information about a request to create an account¶
The following example shows how to request the status about a previous request to create an account in an organization. This operation can be called only by a principal from the organization's master account. In the example, the specified "createAccountRequestId" comes from the response of the original call to "CreateAccount":
DATA(lo_result) = lo_client->describecreateaccountstatus( |car-exampleaccountcreationrequestid| ).