Module netapp_ontap.resources.cifs_service
Copyright © 2023 NetApp Inc. All rights reserved.
This file has been automatically generated based on the ONTAP REST API documentation.
Overview
A CIFS server is necessary to provide SMB clients with access to the Storage Virtual Machine (SVM). Before you begin, the following prerequisites must be in place:
- At least one SVM LIF must exist on the SVM.
- The LIFs must be able to connect to the DNS servers configured on the SVM and to an Active Directory domain controller of the domain to which you want to join the CIFS server.
- The DNS servers must contain the service location records that are needed to locate the Active Directory domain services.
- The cluster time must be synchronized to within five minutes of the Active Directory domain controller.
Performance monitoring
Performance of the SVM can be monitored by the metric.*
and statistics.*
properties. These show the performance of the SVM in terms of IOPS, latency and throughput. The metric.*
properties denote an average whereas statistics.*
properties denote a real-time monotonically increasing value aggregated across all nodes.
Information on the CIFS server
You must keep the following in mind when creating the CIFS server:
- The CIFS server name might or might not be the same as the SVM name.
- The CIFS server name can be up to 15 characters in length.
- The following characters are not allowed: @ # * ( ) = + [ ] | ; : " , < > \ / ?
- You must use the FQDN when specifying the domain.
- The default is to add the CIFS server machine account to the Active Directory "CN=Computer" object.
- You can choose to add the CIFS server to a different organizational unit (OU) by specifying the "organizational_unit" parameter. When specifying the OU, do not specify the domain portion of the distinguished name; only specify the OU or CN portion of the distinguished name. ONTAP appends the value provided for the required "-domain" parameter onto the value provided for the "-ou" parameter to create the Active Directory distinguished name, which is used when joining the Active Directory domain.
- You can optionally choose to add a text comment of up to 48 characters about the CIFS server. If there is a space in the comment text, you must enclose the entire string in quotation marks.
- You can optionally choose to add a comma-delimited list of one or more NetBIOS aliases for the CIFS server.
- The initial administrative status of the CIFS server is "up".
- The large-mtu and multichannel features are enabled for the new CIFS server.
- If LDAP is configured with the use_start_tls and session_security features, the new CIFS server will also have this property set.
Examples
Creating a CIFS server
To create a CIFS server, use the following API. Note the return_records=true query parameter used to obtain the newly created entry in the response.
from netapp_ontap import HostConnection
from netapp_ontap.resources import CifsService
with HostConnection("<mgmt-ip>", username="admin", password="password", verify=False):
resource = CifsService()
resource.ad_domain = {
"fqdn": "ontapavc.com",
"organizational_unit": "CN=Computers",
"password": "cifs*123",
"user": "administrator",
}
resource.comment = "This CIFS Server Belongs to CS Department"
resource.default_unix_user = "string"
resource.enabled = True
resource.metric = {}
resource.name = "CIFS1"
resource.netbios = {
"aliases": ["ALIAS_1", "ALIAS_2", "ALIAS_3"],
"enabled": False,
"wins_servers": ["10.224.65.20", "10.224.65.21"],
}
resource.options = {
"admin_to_root_mapping": True,
"advanced_sparse_file": True,
"copy_offload": True,
"fake_open": True,
"fsctl_trim": True,
"junction_reparse": True,
"large_mtu": True,
"multichannel": True,
"null_user_windows_name": "string",
"path_component_cache": True,
"referral": False,
"smb_credits": 128,
"widelink_reparse_versions": ["smb1"],
}
resource.security = {
"encrypt_dc_connection": False,
"kdc_encryption": False,
"restrict_anonymous": "no_enumeration",
"session_security": "none",
"smb_encryption": False,
"smb_signing": False,
"use_ldaps": False,
"use_start_tls": False,
}
resource.statistics = {}
resource.svm = {"name": "vs1", "uuid": "e0c20d9c-96cd-11eb-97da-0050568e684d"}
resource.post(hydrate=True, return_timeout=10)
print(resource)
CifsService(
{
"security": {
"use_start_tls": False,
"encrypt_dc_connection": False,
"smb_encryption": False,
"kdc_encryption": False,
"session_security": "none",
"lm_compatibility_level": "lm_ntlm_ntlmv2_krb",
"smb_signing": False,
"try_ldap_channel_binding": False,
"aes_netlogon_enabled": False,
"use_ldaps": False,
"restrict_anonymous": "no_enumeration",
},
"svm": {"name": "vs1", "uuid": "e0c20d9c-96cd-11eb-97da-0050568e684d"},
"ad_domain": {"fqdn": "ONTAPAVC.COM", "organizational_unit": "CN=Computers"},
"default_unix_user": "string",
"options": {
"smb_credits": 128,
"copy_offload": True,
"fsctl_trim": True,
"referral": False,
"junction_reparse": True,
"path_component_cache": True,
"multichannel": True,
"widelink_reparse_versions": ["smb1"],
"fake_open": True,
"advanced_sparse_file": True,
"admin_to_root_mapping": True,
"null_user_windows_name": "string",
"large_mtu": True,
},
"statistics": {
"timestamp": "2021-04-06T18:11:35+00:00",
"iops_raw": {"other": 0, "write": 0, "read": 0, "total": 0},
"throughput_raw": {"write": 0, "read": 0, "total": 0},
"latency_raw": {"other": 0, "write": 0, "read": 0, "total": 0},
"status": "ok",
},
"name": "CIFS1",
"comment": "This CIFS Server Belongs to CS Department",
"enabled": True,
"netbios": {
"aliases": ["ALIAS_1", "ALIAS_2", "ALIAS_3"],
"enabled": False,
"wins_servers": ["10.224.65.20", "10.224.65.21"],
},
"metric": {
"duration": "PT15S",
"timestamp": "2021-04-06T18:07:15+00:00",
"iops": {"other": 0, "write": 0, "read": 0, "total": 0},
"throughput": {"write": 0, "read": 0, "total": 0},
"latency": {"other": 0, "write": 0, "read": 0, "total": 0},
"status": "ok",
},
}
)
Retrieving the full CIFS server configuration for all SVMs in the cluster
from netapp_ontap import HostConnection
from netapp_ontap.resources import CifsService
with HostConnection("<mgmt-ip>", username="admin", password="password", verify=False):
print(list(CifsService.get_collection(fields="*", return_timeout=15)))
[
CifsService(
{
"security": {
"use_start_tls": False,
"encrypt_dc_connection": False,
"smb_encryption": False,
"kdc_encryption": False,
"session_security": "none",
"lm_compatibility_level": "lm_ntlm_ntlmv2_krb",
"smb_signing": False,
"try_ldap_channel_binding": False,
"aes_netlogon_enabled": False,
"use_ldaps": False,
"restrict_anonymous": "no_enumeration",
},
"svm": {"name": "vs1", "uuid": "e0c20d9c-96cd-11eb-97da-0050568e684d"},
"ad_domain": {
"fqdn": "ONTAPAVC.COM",
"organizational_unit": "CN=Computers",
},
"default_unix_user": "string",
"options": {
"smb_credits": 128,
"copy_offload": True,
"fsctl_trim": True,
"referral": False,
"junction_reparse": True,
"path_component_cache": True,
"multichannel": True,
"widelink_reparse_versions": ["smb1"],
"fake_open": True,
"advanced_sparse_file": True,
"admin_to_root_mapping": True,
"null_user_windows_name": "string",
"large_mtu": True,
},
"name": "CIFS1",
"comment": "This CIFS Server Belongs to CS Department",
"enabled": True,
"netbios": {
"aliases": ["ALIAS_1", "ALIAS_2", "ALIAS_3"],
"enabled": False,
"wins_servers": ["10.224.65.20", "10.224.65.21"],
},
}
)
]
Retrieving CIFS server configuration details for a specific SVM
from netapp_ontap import HostConnection
from netapp_ontap.resources import CifsService
with HostConnection("<mgmt-ip>", username="admin", password="password", verify=False):
resource = CifsService(**{"svm.uuid": "e0c20d9c-96cd-11eb-97da-0050568e684d"})
resource.get()
print(resource)
CifsService(
{
"security": {
"use_start_tls": False,
"encrypt_dc_connection": False,
"smb_encryption": False,
"kdc_encryption": False,
"session_security": "none",
"lm_compatibility_level": "lm_ntlm_ntlmv2_krb",
"smb_signing": False,
"try_ldap_channel_binding": False,
"aes_netlogon_enabled": False,
"use_ldaps": False,
"restrict_anonymous": "no_enumeration",
},
"svm": {"name": "vs1", "uuid": "e0c20d9c-96cd-11eb-97da-0050568e684d"},
"ad_domain": {"fqdn": "ONTAPAVC.COM", "organizational_unit": "CN=Computers"},
"default_unix_user": "string",
"options": {
"smb_credits": 128,
"copy_offload": True,
"fsctl_trim": True,
"referral": False,
"junction_reparse": True,
"path_component_cache": True,
"multichannel": True,
"widelink_reparse_versions": ["smb1"],
"fake_open": True,
"advanced_sparse_file": True,
"admin_to_root_mapping": True,
"null_user_windows_name": "string",
"large_mtu": True,
},
"name": "CIFS1",
"comment": "This CIFS Server Belongs to CS Department",
"enabled": True,
"netbios": {
"aliases": ["ALIAS_1", "ALIAS_2", "ALIAS_3"],
"enabled": False,
"wins_servers": ["10.224.65.20", "10.224.65.21"],
},
}
)
Updating CIFS server properties for the specified SVM
from netapp_ontap import HostConnection
from netapp_ontap.resources import CifsService
with HostConnection("<mgmt-ip>", username="admin", password="password", verify=False):
resource = CifsService(**{"svm.uuid": "e0c20d9c-96cd-11eb-97da-0050568e684d"})
resource.comment = "CIFS SERVER MODIFICATION"
resource.patch()
Removing a CIFS server for a specific SVM
To delete a CIFS server, use the following API. This will delete the CIFS server along with other CIFS configurations such as CIFS share, share ACLs, homedir search-path, and so on.
from netapp_ontap import HostConnection
from netapp_ontap.resources import CifsService
with HostConnection("<mgmt-ip>", username="admin", password="password", verify=False):
resource = CifsService(**{"svm.uuid": "e0c20d9c-96cd-11eb-97da-0050568e684d"})
resource.delete(
body={
"ad_domain": {
"fqdn": "ontapavc.com",
"organizational_unit": "CN=Computers",
"password": "cifs*123",
"user": "administrator",
},
"force": True,
}
)
Classes
class CifsService (*args, **kwargs)
-
Allows interaction with CifsService objects on the host
Initialize the instance of the resource.
Any keyword arguments are set on the instance as properties. For example, if the class was named 'MyResource', then this statement would be true:
MyResource(name='foo').name == 'foo'
Args
*args
- Each positional argument represents a parent key as used in the URL of the object. That is, each value will be used to fill in a segment of the URL which refers to some parent object. The order of these arguments must match the order they are specified in the URL, from left to right.
**kwargs
- each entry will have its key set as an attribute name on the instance and its value will be the value of that attribute.
Ancestors
Static methods
def count_collection (*args, connection: HostConnection = None, **kwargs) -> int
-
Returns a count of all CifsService resources that match the provided query
This calls GET on the object to determine the number of records. It is more efficient than calling get_collection() because it will not construct any objects. Query parameters can be passed in as kwargs to determine a count of objects that match some filtered criteria.
Args
*args
- Each entry represents a parent key which is used to build the path to the child object. If the URL definition were /api/foos/{foo.name}/bars, then to get the count of bars for a particular foo, the foo.name value should be passed.
connection
- The
HostConnection
object to use for this API call. If unset, tries to use the connection which is set globally for the library or from the current context. **kwargs
- Any key/value pairs passed will be sent as query parameters to the host. These query parameters can affect the count. A return_records query param will be ignored.
Returns
On success, returns an integer count of the objects of this type. On failure, returns -1.
Raises
NetAppRestError
: If the API call returned a status code >= 400, or if there is no connection available to use either passed in or on the library. def delete_collection (*args, records: Iterable[_ForwardRef('CifsService')] = None, body: Union[Resource, dict] = None, poll: bool = True, poll_interval: Optional[int] = None, poll_timeout: Optional[int] = None, connection: HostConnection = None, **kwargs) -> NetAppResponse
-
Deletes a CIFS server and related CIFS configurations.
If "force" field is set along with user login credentials, the local CIFS configuration will be deleted irrespective of any communication errors. The default value for this field is false. If "force" field alone is set without passing the user login credentials, the local CIFS configuration will be deleted by not making any request to Active Directory, but the option will be enable only for the VseverDR enabled SVMs. The default value for this field is false.Related ONTAP commands
vserver cifs server delete
vserver cifs remove-netbios-aliases
Learn more
Delete all objects in a collection which match the given query.
All records on the host which match the query will be deleted.
Args
*args
- Each entry represents a parent key which is used to build the path to the child object. If the URL definition were /api/foos/{foo.name}/bars, then to delete the collection of bars for a particular foo, the foo.name value should be passed.
records
- Can be provided in place of a query. If so, this list of objects will be deleted from the host.
body
- The body of the delete request. This could be a Resource instance or a dictionary object.
poll
- If set to True, the call will not return until the asynchronous job on the host has completed. Has no effect if the host did not return a job response.
poll_interval
- If the operation returns a job, this specifies how often to query the job for updates.
poll_timeout
- If the operation returns a job, this specifies how long to continue monitoring the job's status for completion.
connection
- The
HostConnection
object to use for this API call. If unset, tries to use the connection which is set globally for the library or from the current context. **kwargs
- Any key/value pairs passed will be sent as query parameters to the host. Only resources matching this query will be deleted.
Returns
A
NetAppResponse
object containing the details of the HTTP response.Raises
NetAppRestError
: If the API call returned a status code >= 400 def find (*args, connection: HostConnection = None, **kwargs) -> Resource
-
Retrieves CIFS servers.
Expensive properties
There is an added computational cost to retrieving values for these properties. They are not included by default in GET results and must be explicitly requested using the
fields
query parameter. SeeRequesting specific fields
to learn more. *statistics.*
*metric.*
Related ONTAP commands
vserver cifs server show
vserver cifs server options show
vserver cifs server security show
Learn more
Find an instance of an object on the host given a query.
The host will be queried with the provided key/value pairs to find a matching resource. If 0 are found, None will be returned. If more than 1 is found, an error will be raised or returned. If there is exactly 1 matching record, then it will be returned.
Args
*args
- Each entry represents a parent key which is used to build the path to the child object. If the URL definition were /api/foos/{foo.name}/bars, then to find a bar for a particular foo, the foo.name value should be passed.
connection
- The
HostConnection
object to use for this API call. If unset, tries to use the connection which is set globally for the library or from the current context. **kwargs
- Any key/value pairs passed will be sent as query parameters to the host.
Returns
A
Resource
object containing the details of the object or None if no matches were found.Raises
NetAppRestError
: If the API call returned more than 1 matching resource. def get_collection (*args, connection: HostConnection = None, max_records: int = None, **kwargs) -> Iterable[Resource]
-
Retrieves CIFS servers.
Expensive properties
There is an added computational cost to retrieving values for these properties. They are not included by default in GET results and must be explicitly requested using the
fields
query parameter. SeeRequesting specific fields
to learn more. *statistics.*
*metric.*
Related ONTAP commands
vserver cifs server show
vserver cifs server options show
vserver cifs server security show
Learn more
Fetch a list of all objects of this type from the host.
This is a lazy fetch, making API calls only as necessary when the result of this call is iterated over. For instance, if max_records is set to 5, then iterating over the collection causes an API call to be sent to the server once for every 5 records. If the client stops iterating before getting to the 6th record, then no additional API calls are made.
Args
*args
- Each entry represents a parent key which is used to build the path to the child object. If the URL definition were /api/foos/{foo.name}/bars, then to get the collection of bars for a particular foo, the foo.name value should be passed.
connection
- The
HostConnection
object to use for this API call. If unset, tries to use the connection which is set globally for the library or from the current context. max_records
- The maximum number of records to return per call
**kwargs
- Any key/value pairs passed will be sent as query parameters to the host.
Returns
A list of
Resource
objectsRaises
NetAppRestError
: If there is no connection available to use either passed in or on the library. This would be not be raised when get_collection() is called, but rather when the result is iterated. def patch_collection (body: dict, *args, records: Iterable[_ForwardRef('CifsService')] = None, poll: bool = True, poll_interval: Optional[int] = None, poll_timeout: Optional[int] = None, connection: HostConnection = None, **kwargs) -> NetAppResponse
-
Updates both the mandatory and optional parameters of the CIFS configuration. Ensure the CIFS server is administratively disabled when renaming the CIFS server or modifying the ad_domain properties.
Related ONTAP commands
vserver cifs server modify
vserver cifs server options modify
vserver cifs security modify
vserver cifs server add-netbios-aliases
vserver cifs server remove-netbios-aliases
Learn more
Patch all objects in a collection which match the given query.
All records on the host which match the query will be patched with the provided body.
Args
body
- A dictionary of name/value pairs to set on all matching members of the collection. The body argument will be ignored if records is provided.
*args
- Each entry represents a parent key which is used to build the path to the child object. If the URL definition were /api/foos/{foo.name}/bars, then to patch the collection of bars for a particular foo, the foo.name value should be passed.
records
- Can be provided in place of a query. If so, this list of objects will be patched on the host.
poll
- If set to True, the call will not return until the asynchronous job on the host has completed. Has no effect if the host did not return a job response.
poll_interval
- If the operation returns a job, this specifies how often to query the job for updates.
poll_timeout
- If the operation returns a job, this specifies how long to continue monitoring the job's status for completion.
connection
- The
HostConnection
object to use for this API call. If unset, tries to use the connection which is set globally for the library or from the current context. **kwargs
- Any key/value pairs passed will be sent as query parameters to the host. Only resources matching this query will be patched.
Returns
A
NetAppResponse
object containing the details of the HTTP response.Raises
NetAppRestError
: If the API call returned a status code >= 400 def post_collection (records: Iterable[_ForwardRef('CifsService')], *args, hydrate: bool = False, poll: bool = True, poll_interval: Optional[int] = None, poll_timeout: Optional[int] = None, connection: HostConnection = None, **kwargs) -> Union[List[CifsService], NetAppResponse]
-
Creates a CIFS server. Each SVM can have one CIFS server.
Important notes
- The CIFS server name might or might not be the same as the SVM name.
- The CIFS server name can contain up to 15 characters.
- The CIFS server name does not support the following characters: @ # * ( ) = + [ ] | ; : " , < > / ?
Required properties
svm.uuid
orsvm.name
- Existing SVM in which to create the CIFS server.name
- Name of the CIFS server.ad_domain.fqdn
- Fully qualified domain name of the Windows Active Directory to which this CIFS server belongs.ad_domain.user
- User account with the access to add the CIFS server to the Active Directory.ad_domain.password
- Account password used to add this CIFS server to the Active Directory.
Recommended optional properties
comment
- Add a text comment of up to 48 characters about the CIFS server.netbios.aliases
- Add a comma-delimited list of one or more NetBIOS aliases for the CIFS server.netbios.wins_servers
- Add a list of Windows Internet Name Server (WINS) addresses that manage and map the NetBIOS name of the CIFS server to their network IP addresses. The IP addresses must be IPv4 addresses.
Default property values
If not specified in POST, the following default property values are assigned: *
ad_domain.organizational_unit
- CN=Computers *enabled
- true *restrict_anonymous
- no_enumeration *smb_signing
- false *smb_encryption
- false *encrypt_dc_connection
- false *kdc_encryption
- false *default_unix_user
- pcuser *netbios_enabled
- false However, if either "netbios.wins-server" or "netbios.aliases" is set during POST and ifnetbios_enabled
is not specified thennetbios_enabled
is set to true. *aes_netlogon_enabled
- false *try_ldap_channel_binding
- true *ldap_referral_enabled
- falseRelated ONTAP commands
vserver cifs server create
vserver cifs server options modify
vserver cifs security modify
vserver cifs server add-netbios-aliases
Learn more
Send this collection of objects to the host as a creation request.
Args
records
- A list of
Resource
objects to send to the server to be created. *args
- Each entry represents a parent key which is used to build the path to the child object. If the URL definition were /api/foos/{foo.name}/bars, then to create a bar for a particular foo, the foo.name value should be passed.
hydrate
- If set to True, after the response is received from the call, a a GET call will be made to refresh all fields of each object. When hydrate is set to True, poll must also be set to True.
poll
- If set to True, the call will not return until the asynchronous job on the host has completed. Has no effect if the host did not return a job response.
poll_interval
- If the operation returns a job, this specifies how often to query the job for updates.
poll_timeout
- If the operation returns a job, this specifies how long to continue monitoring the job's status for completion.
connection
- The
HostConnection
object to use for this API call. If unset, tries to use the connection which is set globally for the library or from the current context. **kwargs
- Any key/value pairs passed will be sent as query parameters to the host. Only resources matching this query will be patched.
Returns
A list of
Resource
objects matching the provided type which have been created by the host and returned. This is not the same list that was provided, so to continue using the object, you should save this list. If poll is set to False, then aNetAppResponse
object is returned instead.Raises
NetAppRestError
: If the API call returned a status code >= 400
Methods
def delete (self, body: Union[Resource, dict] = None, poll: bool = True, poll_interval: Optional[int] = None, poll_timeout: Optional[int] = None, **kwargs) -> NetAppResponse
-
Deletes a CIFS server and related CIFS configurations.
If "force" field is set along with user login credentials, the local CIFS configuration will be deleted irrespective of any communication errors. The default value for this field is false. If "force" field alone is set without passing the user login credentials, the local CIFS configuration will be deleted by not making any request to Active Directory, but the option will be enable only for the VseverDR enabled SVMs. The default value for this field is false.Related ONTAP commands
vserver cifs server delete
vserver cifs remove-netbios-aliases
Learn more
Send a deletion request to the host for this object.
Args
body
- The body of the delete request. This could be a Resource instance or a dictionary object.
poll
- If set to True, the call will not return until the asynchronous job on the host has completed. Has no effect if the host did not return a job response.
poll_interval
- If the operation returns a job, this specifies how often to query the job for updates.
poll_timeout
- If the operation returns a job, this specifies how long to continue monitoring the job's status for completion.
connection
- The
HostConnection
object to use for this API call. If unset, tries to use the connection which is set globally for the library or from the current context. **kwargs
- Any key/value pairs passed will be sent as query parameters to the host.
Returns
A
NetAppResponse
object containing the details of the HTTP response.Raises
NetAppRestError
: If the API call returned a status code >= 400 def get (self, **kwargs) -> NetAppResponse
-
Retrieves a CIFS server.
Related ONTAP commands
vserver cifs server show
vserver cifs server options show
vserver cifs server security show
Learn more
Fetch the details of the object from the host.
Requires the keys to be set (if any). After returning, new or changed properties from the host will be set on the instance.
Returns
A
NetAppResponse
object containing the details of the HTTP response.Raises
NetAppRestError
: If the API call returned a status code >= 400 def patch (self, hydrate: bool = False, poll: bool = True, poll_interval: Optional[int] = None, poll_timeout: Optional[int] = None, **kwargs) -> NetAppResponse
-
Updates both the mandatory and optional parameters of the CIFS configuration. Ensure the CIFS server is administratively disabled when renaming the CIFS server or modifying the ad_domain properties.
Related ONTAP commands
vserver cifs server modify
vserver cifs server options modify
vserver cifs security modify
vserver cifs server add-netbios-aliases
vserver cifs server remove-netbios-aliases
Learn more
Send the difference in the object's state to the host as a modification request.
Calculates the difference in the object's state since the last time we interacted with the host and sends this in the request body.
Args
hydrate
- If set to True, after the response is received from the call, a a GET call will be made to refresh all fields of the object.
poll
- If set to True, the call will not return until the asynchronous job on the host has completed. Has no effect if the host did not return a job response.
poll_interval
- If the operation returns a job, this specifies how often to query the job for updates.
poll_timeout
- If the operation returns a job, this specifies how long to continue monitoring the job's status for completion.
connection
- The
HostConnection
object to use for this API call. If unset, tries to use the connection which is set globally for the library or from the current context. **kwargs
- Any key/value pairs passed will normally be sent as query parameters to the host. If any of these pairs are parameters that are sent as formdata then only parameters of that type will be accepted and all others will be discarded.
Returns
A
NetAppResponse
object containing the details of the HTTP response.Raises
NetAppRestError
: If the API call returned a status code >= 400 def post (self, hydrate: bool = False, poll: bool = True, poll_interval: Optional[int] = None, poll_timeout: Optional[int] = None, **kwargs) -> NetAppResponse
-
Creates a CIFS server. Each SVM can have one CIFS server.
Important notes
- The CIFS server name might or might not be the same as the SVM name.
- The CIFS server name can contain up to 15 characters.
- The CIFS server name does not support the following characters: @ # * ( ) = + [ ] | ; : " , < > / ?
Required properties
svm.uuid
orsvm.name
- Existing SVM in which to create the CIFS server.name
- Name of the CIFS server.ad_domain.fqdn
- Fully qualified domain name of the Windows Active Directory to which this CIFS server belongs.ad_domain.user
- User account with the access to add the CIFS server to the Active Directory.ad_domain.password
- Account password used to add this CIFS server to the Active Directory.
Recommended optional properties
comment
- Add a text comment of up to 48 characters about the CIFS server.netbios.aliases
- Add a comma-delimited list of one or more NetBIOS aliases for the CIFS server.netbios.wins_servers
- Add a list of Windows Internet Name Server (WINS) addresses that manage and map the NetBIOS name of the CIFS server to their network IP addresses. The IP addresses must be IPv4 addresses.
Default property values
If not specified in POST, the following default property values are assigned: *
ad_domain.organizational_unit
- CN=Computers *enabled
- true *restrict_anonymous
- no_enumeration *smb_signing
- false *smb_encryption
- false *encrypt_dc_connection
- false *kdc_encryption
- false *default_unix_user
- pcuser *netbios_enabled
- false However, if either "netbios.wins-server" or "netbios.aliases" is set during POST and ifnetbios_enabled
is not specified thennetbios_enabled
is set to true. *aes_netlogon_enabled
- false *try_ldap_channel_binding
- true *ldap_referral_enabled
- falseRelated ONTAP commands
vserver cifs server create
vserver cifs server options modify
vserver cifs security modify
vserver cifs server add-netbios-aliases
Learn more
Send this object to the host as a creation request.
Args
hydrate
- If set to True, after the response is received from the call, a a GET call will be made to refresh all fields of the object.
poll
- If set to True, the call will not return until the asynchronous job on the host has completed. Has no effect if the host did not return a job response.
poll_interval
- If the operation returns a job, this specifies how often to query the job for updates.
poll_timeout
- If the operation returns a job, this specifies how long to continue monitoring the job's status for completion.
connection
- The
HostConnection
object to use for this API call. If unset, tries to use the connection which is set globally for the library or from the current context. **kwargs
- Any key/value pairs passed will normally be sent as query parameters to the host. If any of these pairs are parameters that are sent as formdata then only parameters of that type will be accepted and all others will be discarded.
Returns
A
NetAppResponse
object containing the details of the HTTP response.Raises
NetAppRestError
: If the API call returned a status code >= 400
Inherited members
class CifsServiceSchema (*, only: Union[Sequence[str], Set[str]] = None, exclude: Union[Sequence[str], Set[str]] = (), many: bool = False, context: Dict = None, load_only: Union[Sequence[str], Set[str]] = (), dump_only: Union[Sequence[str], Set[str]] = (), partial: Union[bool, Sequence[str], Set[str]] = False, unknown: str = None)
-
The fields of the CifsService object
Ancestors
- netapp_ontap.resource.ResourceSchema
- marshmallow.schema.Schema
- marshmallow.base.SchemaABC
Class variables
-
ad_domain: AdDomain GET POST PATCH
-
The ad_domain field of the cifs_service.
-
comment: str GET POST PATCH
-
A descriptive text comment for the CIFS server. SMB clients can see the CIFS server comment when browsing servers on the network. If there is a space in the comment, you must enclose the entire string in quotation marks.
Example: This CIFS Server Belongs to CS Department
-
default_unix_user: str GET POST PATCH
-
Specifies the UNIX user to which any authenticated CIFS user is mapped to, if the normal user mapping rules fails.
-
enabled: bool GET POST PATCH
-
Specifies if the CIFS service is administratively enabled.
-
group_policy_object_enabled: bool GET PATCH
-
If set to true, group policies will be applied to the SVM.
-
links: SelfLink GET
-
The links field of the cifs_service.
-
metric: PerformanceMetricSvm GET POST PATCH
-
The metric field of the cifs_service.
-
name: str GET POST PATCH
-
The name of the CIFS server.
Example: CIFS1
-
netbios: CifsNetbios GET POST PATCH
-
The netbios field of the cifs_service.
-
options: CifsServiceOptions GET POST PATCH
-
The options field of the cifs_service.
-
security: CifsServiceSecurity GET POST PATCH
-
The security field of the cifs_service.
-
statistics: PerformanceMetricRawSvm GET POST PATCH
-
The statistics field of the cifs_service.
-
svm: Svm GET POST PATCH
-
The svm field of the cifs_service.