Skip to content

/AWS1/CL_STG=>JOINDOMAIN()

About JoinDomain

Adds a file gateway to an Active Directory domain. This operation is only supported for file gateways that support the SMB file protocol.

Joining a domain creates an Active Directory computer account in the default organizational unit, using the gateway's Gateway ID as the account name (for example, SGW-1234ADE). If your Active Directory environment requires that you pre-stage accounts to facilitate the join domain process, you will need to create this account ahead of time.

To create the gateway's computer account in an organizational unit other than the default, you must specify the organizational unit when joining the domain.

Method Signature

IMPORTING

Required arguments:

IV_GATEWAYARN TYPE /AWS1/STGGATEWAYARN /AWS1/STGGATEWAYARN

The Amazon Resource Name (ARN) of the gateway. Use the ListGateways operation to return a list of gateways for your account and Amazon Web Services Region.

IV_DOMAINNAME TYPE /AWS1/STGDOMAINNAME /AWS1/STGDOMAINNAME

The name of the domain that you want the gateway to join.

IV_USERNAME TYPE /AWS1/STGDOMAINUSERNAME /AWS1/STGDOMAINUSERNAME

Sets the user name of user who has permission to add the gateway to the Active Directory domain. The domain user account should be enabled to join computers to the domain. For example, you can use the domain administrator account or an account with delegated permissions to join computers to the domain.

IV_PASSWORD TYPE /AWS1/STGDOMAINUSERPASSWORD /AWS1/STGDOMAINUSERPASSWORD

Sets the password of the user who has permission to add the gateway to the Active Directory domain.

Optional arguments:

IV_ORGANIZATIONALUNIT TYPE /AWS1/STGORGANIZATIONALUNIT /AWS1/STGORGANIZATIONALUNIT

The organizational unit (OU) is a container in an Active Directory that can hold users, groups, computers, and other OUs and this parameter specifies the OU that the gateway will join within the AD domain.

IT_DOMAINCONTROLLERS TYPE /AWS1/CL_STGHOSTS_W=>TT_HOSTS TT_HOSTS

List of IPv4 addresses, NetBIOS names, or host names of your domain server. If you need to specify the port number include it after the colon (“:”). For example, mydc.mydomain.com:389.

IV_TIMEOUTINSECONDS TYPE /AWS1/STGTIMEOUTINSECONDS /AWS1/STGTIMEOUTINSECONDS

Specifies the time in seconds, in which the JoinDomain operation must complete. The default is 20 seconds.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_STGJOINDOMAINOUTPUT /AWS1/CL_STGJOINDOMAINOUTPUT