join_domain
¶
join_domain(
gateway_arn: GatewayARN,
domain_name: DomainName,
user_name: DomainUserName,
password: DomainUserPassword,
*,
config_overrides: Optional[StorageGatewayClientConfig] = None,
organizational_unit: Optional[OrganizationalUnit] = None,
domain_controllers: Optional[Hosts] = None,
timeout_in_seconds: Optional[TimeoutInSeconds] = None,
) -> JoinDomainOutput
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.
Parameters:
-
gateway_arn(GatewayARN) –The Amazon Resource Name (ARN) of the gateway. Use the
ListGatewaysoperation to return a list of gateways for your account and Amazon Web Services Region. -
domain_name(DomainName) –The name of the domain that you want the gateway to join.
-
organizational_unit(Optional[OrganizationalUnit], default:None) –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.
-
domain_controllers(Optional[Hosts], default:None) –List of IP 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.S3 File Gateway supports IPv6 addresses in addition to IPv4 and other existing formats.
FSx File Gateway does not support IPv6.
-
timeout_in_seconds(Optional[TimeoutInSeconds], default:None) –Specifies the time in seconds, in which the
JoinDomainoperation must complete. The default is 20 seconds. -
user_name(DomainUserName) –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.
-
password(DomainUserPassword) –Sets the password of the user who has permission to add the gateway to the Active Directory domain.
Raises:
-
InternalServerError–An internal server error has occurred during the request. For more information, see the error and message fields.
-
InvalidGatewayRequestException–An exception occurred because an invalid gateway request was issued to the service. For more information, see the error and message fields.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_storage_gateway/_services/storage_gateway.py
3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 | |