Skip to main content

active_directories

Creates, updates, deletes, gets or lists an active_directories resource.

Overview

Nameactive_directories
TypeResource
Idgoogle.netapp.active_directories

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringIdentifier. The resource name of the active directory. Format: projects/{project_number}/locations/{location_id}/activeDirectories/{active_directory_id}.
administratorsarrayOptional. Users to be added to the Built-in Admininstrators group.
aesEncryptionbooleanIf enabled, AES encryption will be enabled for SMB communication.
backupOperatorsarrayOptional. Users to be added to the Built-in Backup Operator active directory group.
createTimestring (google-datetime)Output only. Create time of the active directory.
descriptionstringDescription of the active directory.
dnsstringRequired. Comma separated list of DNS server IP addresses for the Active Directory domain.
domainstringRequired. Name of the Active Directory domain
encryptDcConnectionsbooleanIf enabled, traffic between the SMB server to Domain Controller (DC) will be encrypted.
kdcHostnamestringName of the active directory machine. This optional parameter is used only while creating kerberos volume
kdcIpstringKDC server IP address for the active directory machine.
labelsobjectLabels for the active directory.
ldapSigningbooleanSpecifies whether or not the LDAP traffic needs to be signed.
netBiosPrefixstringRequired. NetBIOSPrefix is used as a prefix for SMB server name.
nfsUsersWithLdapbooleanIf enabled, will allow access to local users and LDAP users. If access is needed for only LDAP users, it has to be disabled.
organizationalUnitstringThe Organizational Unit (OU) within the Windows Active Directory the user belongs to.
passwordstringRequired. Password of the Active Directory domain administrator.
securityOperatorsarrayOptional. Domain users to be given the SeSecurityPrivilege.
sitestringThe Active Directory site the service will limit Domain Controller discovery too.
statestringOutput only. The state of the AD.
stateDetailsstringOutput only. The state details of the Active Directory.
usernamestringRequired. Username of the Active Directory domain administrator.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, activeDirectoriesIdDescribes a specified active directory.
listselectprojectsId, locationsIdpageSize, pageToken, filter, orderByLists active directories.
createinsertprojectsId, locationsIdactiveDirectoryIdCreateActiveDirectory Creates the active directory specified in the request.
patchupdateprojectsId, locationsId, activeDirectoriesIdupdateMaskUpdate the parameters of an active directories.
deletedeleteprojectsId, locationsId, activeDirectoriesIdDelete the active directory specified in the request.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
activeDirectoriesIdstring
locationsIdstring
projectsIdstring
activeDirectoryIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)

SELECT examples

Describes a specified active directory.

SELECT
name,
administrators,
aesEncryption,
backupOperators,
createTime,
description,
dns,
domain,
encryptDcConnections,
kdcHostname,
kdcIp,
labels,
ldapSigning,
netBiosPrefix,
nfsUsersWithLdap,
organizationalUnit,
password,
securityOperators,
site,
state,
stateDetails,
username
FROM google.netapp.active_directories
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND activeDirectoriesId = '{{ activeDirectoriesId }}' -- required;

INSERT examples

CreateActiveDirectory Creates the active directory specified in the request.

INSERT INTO google.netapp.active_directories (
data__name,
data__domain,
data__site,
data__dns,
data__netBiosPrefix,
data__organizationalUnit,
data__aesEncryption,
data__username,
data__password,
data__backupOperators,
data__administrators,
data__securityOperators,
data__kdcHostname,
data__kdcIp,
data__nfsUsersWithLdap,
data__description,
data__ldapSigning,
data__encryptDcConnections,
data__labels,
projectsId,
locationsId,
activeDirectoryId
)
SELECT
'{{ name }}',
'{{ domain }}',
'{{ site }}',
'{{ dns }}',
'{{ netBiosPrefix }}',
'{{ organizationalUnit }}',
{{ aesEncryption }},
'{{ username }}',
'{{ password }}',
'{{ backupOperators }}',
'{{ administrators }}',
'{{ securityOperators }}',
'{{ kdcHostname }}',
'{{ kdcIp }}',
{{ nfsUsersWithLdap }},
'{{ description }}',
{{ ldapSigning }},
{{ encryptDcConnections }},
'{{ labels }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ activeDirectoryId }}'
RETURNING
name,
done,
error,
metadata,
response
;

UPDATE examples

Update the parameters of an active directories.

UPDATE google.netapp.active_directories
SET
data__name = '{{ name }}',
data__domain = '{{ domain }}',
data__site = '{{ site }}',
data__dns = '{{ dns }}',
data__netBiosPrefix = '{{ netBiosPrefix }}',
data__organizationalUnit = '{{ organizationalUnit }}',
data__aesEncryption = {{ aesEncryption }},
data__username = '{{ username }}',
data__password = '{{ password }}',
data__backupOperators = '{{ backupOperators }}',
data__administrators = '{{ administrators }}',
data__securityOperators = '{{ securityOperators }}',
data__kdcHostname = '{{ kdcHostname }}',
data__kdcIp = '{{ kdcIp }}',
data__nfsUsersWithLdap = {{ nfsUsersWithLdap }},
data__description = '{{ description }}',
data__ldapSigning = {{ ldapSigning }},
data__encryptDcConnections = {{ encryptDcConnections }},
data__labels = '{{ labels }}'
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND activeDirectoriesId = '{{ activeDirectoriesId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
done,
error,
metadata,
response;

DELETE examples

Delete the active directory specified in the request.

DELETE FROM google.netapp.active_directories
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND activeDirectoriesId = '{{ activeDirectoriesId }}' --required;