controllers_v2.network_information_service_nis_controller module¶
-
class
controllers_v2.network_information_service_nis_controller.
NetworkInformationServiceNISController
(config=None, client=None, call_back=None)[source]¶ Bases:
cohesity_management_sdk.controllers_v2.base_controller.BaseController
A Controller to access Endpoints in the cohesity_management_sdk API.
-
create_nis_netgroup
(body)[source]¶ Does a POST request to /nis-netgroups.
Create an NIS netgroup.
- Args:
- body (NisNetgroup): Specifies the parameters to create an NIS
netgroup.
- Returns:
NisNetgroup: Response from the API. Success
- Raises:
- APIException: When an error occurs while fetching the data from
the remote API. This exception includes the HTTP Response code, an error message, and the HTTP body that was received in the request.
-
create_nis_provider
(body)[source]¶ Does a POST request to /nis-providers.
Create an NIS Provider.
- Args:
- body (NisProvider): Specifies the parameters to create an NIS
provider entry.
- Returns:
NisProvider: Response from the API. Success
- Raises:
- APIException: When an error occurs while fetching the data from
the remote API. This exception includes the HTTP Response code, an error message, and the HTTP body that was received in the request.
-
delete_nis_netgroup_by_name
(name, body)[source]¶ Does a DELETE request to /nis-netgroups/{name}.
Delete an NIS netgroup by name.
- Args:
name (string): Specifies name of the NIS netgroup. body (NisNetgroup): Request to delete the NIS netgroup.
- Returns:
void: Response from the API. No Content
- Raises:
- APIException: When an error occurs while fetching the data from
the remote API. This exception includes the HTTP Response code, an error message, and the HTTP body that was received in the request.
-
delete_nis_provider_by_domain_name
(domain)[source]¶ Does a DELETE request to /nis-providers/{domain}.
Delete an NIS Provider by domain name.
- Args:
domain (string): Specifies domain name of an NIS Provider.
- Returns:
void: Response from the API. No Content
- Raises:
- APIException: When an error occurs while fetching the data from
the remote API. This exception includes the HTTP Response code, an error message, and the HTTP body that was received in the request.
-
get_nis_netgroup_by_name
(name)[source]¶ Does a GET request to /nis-netgroups/{name}.
Get an NIS netgroup by name.
- Args:
name (string): Specifies name of the NIS netgroup.
- Returns:
NisNetgroup: Response from the API. Success
- Raises:
- APIException: When an error occurs while fetching the data from
the remote API. This exception includes the HTTP Response code, an error message, and the HTTP body that was received in the request.
-
get_nis_netgroups
(netgroup_names=None)[source]¶ Does a GET request to /nis-netgroups.
Get a list of NIS netgroups.
- Args:
- netgroup_names (list of string, optional): Filter by a list of NIS
netgroup names.
- Returns:
NisNetgroups: Response from the API. Success
- Raises:
- APIException: When an error occurs while fetching the data from
the remote API. This exception includes the HTTP Response code, an error message, and the HTTP body that was received in the request.
-
get_nis_provider_by_domain_name
(domain)[source]¶ Does a GET request to /nis-providers/{domain}.
Get an NIS Provider by domain name.
- Args:
domain (string): Specifies domain of an NIS Provider.
- Returns:
NisProvider: Response from the API. Success
- Raises:
- APIException: When an error occurs while fetching the data from
the remote API. This exception includes the HTTP Response code, an error message, and the HTTP body that was received in the request.
-
get_nis_providers
(domain_names=None)[source]¶ Does a GET request to /nis-providers.
Get a list of NIS Providers.
- Args:
- domain_names (list of string, optional): Filter by a list of NIS
domain names.
- Returns:
NisProviders: Response from the API. Success
- Raises:
- APIException: When an error occurs while fetching the data from
the remote API. This exception includes the HTTP Response code, an error message, and the HTTP body that was received in the request.
-
update_nis_netgroup_by_name
(name, body)[source]¶ Does a PUT request to /nis-netgroups/{name}.
Update an NIS netgroup by name.
- Args:
name (string): Specifies name of the NIS netgroup. body (NisNetgroup): Request to update the NIS netgroup.
- Returns:
NisNetgroup: Response from the API. Success
- Raises:
- APIException: When an error occurs while fetching the data from
the remote API. This exception includes the HTTP Response code, an error message, and the HTTP body that was received in the request.
-
update_nis_provider_by_domain_name
(domain, body)[source]¶ Does a PUT request to /nis-providers/{domain}.
Update an NIS Provider by domain name.
- Args:
domain (string): Specifies domain name of an NIS Provider. body (NisProvider): Request to update an NIS Provider.
- Returns:
NisProvider: Response from the API. Success
- Raises:
- APIException: When an error occurs while fetching the data from
the remote API. This exception includes the HTTP Response code, an error message, and the HTTP body that was received in the request.
-