networkapi.api_peer_group.v4 package¶
Subpackages¶
Submodules¶
networkapi.api_peer_group.v4.exceptions module¶
-
exception
networkapi.api_peer_group.v4.exceptions.
EnvironmentPeerGroupDuplicatedException
(env_peer_group)[source]¶ Bases:
rest_framework.exceptions.APIException
-
status_code
= 400¶
-
-
exception
networkapi.api_peer_group.v4.exceptions.
EnvironmentPeerGroupError
(msg)[source]¶ Bases:
rest_framework.exceptions.APIException
-
status_code
= 500¶
-
-
exception
networkapi.api_peer_group.v4.exceptions.
EnvironmentPeerGroupNotFoundError
(msg)[source]¶ Bases:
rest_framework.exceptions.APIException
-
status_code
= 404¶
-
-
exception
networkapi.api_peer_group.v4.exceptions.
PeerGroupAssociatedWithDeployedNeighborsException
(peer_group)[source]¶ Bases:
rest_framework.exceptions.APIException
-
status_code
= 400¶
-
-
exception
networkapi.api_peer_group.v4.exceptions.
PeerGroupDoesNotExistException
(detail=None)[source]¶ Bases:
rest_framework.exceptions.APIException
-
default_detail
= u'PeerGroup does not exists'¶
-
status_code
= 404¶
-
-
exception
networkapi.api_peer_group.v4.exceptions.
PeerGroupDuplicatedException
(peer_group)[source]¶ Bases:
rest_framework.exceptions.APIException
-
status_code
= 400¶
-
-
exception
networkapi.api_peer_group.v4.exceptions.
PeerGroupError
(msg)[source]¶ Bases:
rest_framework.exceptions.APIException
-
status_code
= 500¶
-
-
exception
networkapi.api_peer_group.v4.exceptions.
PeerGroupIsAssociatedWithNeighborsException
(peer_group)[source]¶ Bases:
rest_framework.exceptions.APIException
-
status_code
= 400¶
-
networkapi.api_peer_group.v4.facade module¶
-
networkapi.api_peer_group.v4.facade.
get_peer_group_by_id
(obj_id)[source]¶ Return an PeerGroup by id.
- Args:
- obj_id: Id of PeerGroup
-
networkapi.api_peer_group.v4.facade.
get_peer_group_by_ids
(obj_ids)[source]¶ Return PeerGroup list by ids.
- Args:
- obj_ids: List of Ids of PeerGroup’s.