join_domain
async
¶
join_domain(
gateway_arn: GatewayARN,
domain_name: DomainName,
user_name: DomainUserName,
password: DomainUserPassword,
*,
config_overrides: Optional[AsyncStorageGatewayClientConfig] = 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/async_storage_gateway.py
3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 | |