com.vmware.nsx_policy.infra package¶
Subpackages¶
- com.vmware.nsx_policy.infra.domains package
- com.vmware.nsx_policy.infra.realized_state package
- Subpackages
- com.vmware.nsx_policy.infra.realized_state.enforcement_points package
- Subpackages
- Submodules
- com.vmware.nsx_policy.infra.realized_state.enforcement_points.firewalls_client module
- com.vmware.nsx_policy.infra.realized_state.enforcement_points.groups_client module
- com.vmware.nsx_policy.infra.realized_state.enforcement_points.ip_sets_client module
- com.vmware.nsx_policy.infra.realized_state.enforcement_points.mac_sets_client module
- com.vmware.nsx_policy.infra.realized_state.enforcement_points.services_client module
- com.vmware.nsx_policy.infra.realized_state.enforcement_points package
- Submodules
- com.vmware.nsx_policy.infra.realized_state.enforcement_points_client module
- Subpackages
- com.vmware.nsx_policy.infra.tier_0s package
- Subpackages
- com.vmware.nsx_policy.infra.tier_0s.locale_services package
- Subpackages
- Submodules
- com.vmware.nsx_policy.infra.tier_0s.locale_services.bgp_client module
- com.vmware.nsx_policy.infra.tier_0s.locale_services.l2vpn_context_client module
- com.vmware.nsx_policy.infra.tier_0s.locale_services.l3vpns_client module
- com.vmware.nsx_policy.infra.tier_0s.locale_services package
- Submodules
- com.vmware.nsx_policy.infra.tier_0s.locale_services_client module
- Subpackages
- com.vmware.nsx_policy.infra.tier_1s package
Submodules¶
com.vmware.nsx_policy.infra.deployment_zones_client module¶
-
class
com.vmware.nsx_policy.infra.deployment_zones_client.
EnforcementPoints
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration
) – Configuration to be used for creating the stub.
-
delete
(deployment_zone_id, enforcementpoint_id)¶ Delete EnforcementPoint
- Parameters
deployment_zone_id (
str
) – Deployment zone id (required)enforcementpoint_id (
str
) – enforcementpoint-id (required)
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
get
(deployment_zone_id, enforcementpoint_id)¶ Read an Enforcement Point
- Parameters
deployment_zone_id (
str
) – Deployment zone id (required)enforcementpoint_id (
str
) – EnforcementPoint id (required)
- Return type
- Returns
com.vmware.nsx_policy.model.EnforcementPoint
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
list
(deployment_zone_id, cursor=None, included_fields=None, page_size=None, sort_ascending=None, sort_by=None)¶ Paginated list of all enforcementpoints for infra.
- Parameters
deployment_zone_id (
str
) – (required)cursor (
str
orNone
) – Opaque cursor to be used for getting next page of records (supplied by current result page) (optional)included_fields (
str
orNone
) – Comma separated list of fields that should be included in query result (optional)page_size (
long
orNone
) – Maximum number of results to return in this page (server may return fewer) (optional, default to 1000)sort_ascending (
bool
orNone
) – (optional)sort_by (
str
orNone
) – Field by which records are sorted (optional)
- Return type
com.vmware.nsx_policy.model_client.EnforcementPointListResult
- Returns
com.vmware.nsx_policy.model.EnforcementPointListResult
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
patch
(deployment_zone_id, enforcementpoint_id, enforcement_point)¶ If the passed Enforcement Point does not already exist, create a new Enforcement Point. If it already exists, patch it.
- Parameters
deployment_zone_id (
str
) – Deployment zone id (required)enforcementpoint_id (
str
) – EnforcementPoint id (required)enforcement_point (
com.vmware.nsx_policy.model_client.EnforcementPoint
) – (required)
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
update
(deployment_zone_id, enforcementpoint_id, enforcement_point)¶ If the passed Enforcement Point does not already exist, create a new Enforcement Point. If it already exists, replace it.
- Parameters
deployment_zone_id (
str
) – Deployment zone id (required)enforcementpoint_id (
str
) – EnforcementPoint id (required)enforcement_point (
com.vmware.nsx_policy.model_client.EnforcementPoint
) – (required)
- Return type
- Returns
com.vmware.nsx_policy.model.EnforcementPoint
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
class
com.vmware.nsx_policy.infra.deployment_zones_client.
StubFactory
(stub_config)¶ Bases:
vmware.vapi.bindings.stub.StubFactoryBase
Initialize StubFactoryBase
- Parameters
stub_config (
vmware.vapi.bindings.stub.StubConfiguration
) – Stub config instance
com.vmware.nsx_policy.infra.domains_client module¶
-
class
com.vmware.nsx_policy.infra.domains_client.
CommunicationMaps
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration
) – Configuration to be used for creating the stub.
-
REVISE_OPERATION_AFTER
= 'insert_after'¶ Possible value for
operation
of methodCommunicationMaps.revise()
.
-
REVISE_OPERATION_BEFORE
= 'insert_before'¶ Possible value for
operation
of methodCommunicationMaps.revise()
.
-
REVISE_OPERATION_BOTTOM
= 'insert_bottom'¶ Possible value for
operation
of methodCommunicationMaps.revise()
.
-
REVISE_OPERATION_TOP
= 'insert_top'¶ Possible value for
operation
of methodCommunicationMaps.revise()
.
-
delete
(domain_id, communication_map_id)¶ Deletes the communication map along with all the communication entries
- Parameters
domain_id (
str
) – (required)communication_map_id (
str
) – (required)
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
get
(domain_id, communication_map_id)¶ Read communication-map for a domain.
- Parameters
domain_id (
str
) – (required)communication_map_id (
str
) – (required)
- Return type
- Returns
com.vmware.nsx_policy.model.CommunicationMap
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
list
(domain_id, cursor=None, included_fields=None, page_size=None, sort_ascending=None, sort_by=None)¶ List all communication maps for a domain.
- Parameters
domain_id (
str
) – (required)cursor (
str
orNone
) – Opaque cursor to be used for getting next page of records (supplied by current result page) (optional)included_fields (
str
orNone
) – Comma separated list of fields that should be included in query result (optional)page_size (
long
orNone
) – Maximum number of results to return in this page (server may return fewer) (optional, default to 1000)sort_ascending (
bool
orNone
) – (optional)sort_by (
str
orNone
) – Field by which records are sorted (optional)
- Return type
com.vmware.nsx_policy.model_client.CommunicationMapListResult
- Returns
com.vmware.nsx_policy.model.CommunicationMapListResult
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
patch
(domain_id, communication_map_id, communication_map)¶ Patch the communication map for a domain.
- Parameters
domain_id (
str
) – (required)communication_map_id (
str
) – (required)communication_map (
com.vmware.nsx_policy.model_client.CommunicationMap
) – (required)
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
revise
(domain_id, communication_map_id, communication_map, anchor_path=None, operation=None)¶ This is used to set a precedence of a communication map w.r.t others.
- Parameters
domain_id (
str
) – (required)communication_map_id (
str
) – (required)communication_map (
com.vmware.nsx_policy.model_client.CommunicationMap
) – (required)anchor_path (
str
orNone
) – The communication map/communication entry path if operation is ‘insert_after’ or ‘insert_before’ (optional)operation (
str
orNone
) – Operation (optional, default to insert_top)
- Return type
- Returns
com.vmware.nsx_policy.model.CommunicationMap
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
update
(domain_id, communication_map_id, communication_map)¶ Create or Update the communication map for a domain. This is a full replace. All the CommunicationEntries are replaced.
- Parameters
domain_id (
str
) – (required)communication_map_id (
str
) – (required)communication_map (
com.vmware.nsx_policy.model_client.CommunicationMap
) – (required)
- Return type
- Returns
com.vmware.nsx_policy.model.CommunicationMap
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
class
com.vmware.nsx_policy.infra.domains_client.
DiscoverySessions
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration
) – Configuration to be used for creating the stub.
-
delete
(domain_id, discovery_session_id)¶ Delete discovery session identified by discovery-session-id
- Parameters
domain_id (
str
) – Domain ID (required)discovery_session_id (
str
) – Discovery Session ID (required)
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
get
(domain_id, discovery_session_id)¶ Read discovery session identified by discovery-session-id
- Parameters
domain_id (
str
) – Domain ID (required)discovery_session_id (
str
) – Domain ID (required)
- Return type
- Returns
com.vmware.nsx_policy.model.DiscoverySession
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
list
(domain_id, cursor=None, included_fields=None, page_size=None, sort_ascending=None, sort_by=None)¶ List all the discovery sessions created on a domain.
- Parameters
domain_id (
str
) – Domain ID (required)cursor (
str
orNone
) – Opaque cursor to be used for getting next page of records (supplied by current result page) (optional)included_fields (
str
orNone
) – Comma separated list of fields that should be included in query result (optional)page_size (
long
orNone
) – Maximum number of results to return in this page (server may return fewer) (optional, default to 1000)sort_ascending (
bool
orNone
) – (optional)sort_by (
str
orNone
) – Field by which records are sorted (optional)
- Return type
com.vmware.nsx_policy.model_client.DiscoverySessionListResult
- Returns
com.vmware.nsx_policy.model.DiscoverySessionListResult
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
patch
(domain_id, discovery_session_id, discovery_session)¶ Patch discovery session.
- Parameters
domain_id (
str
) – Domain ID (required)discovery_session_id (
str
) – Discovery session ID (required)discovery_session (
com.vmware.nsx_policy.model_client.DiscoverySession
) – (required)
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
update
(domain_id, discovery_session_id, discovery_session)¶ Create or update discovery session.
- Parameters
domain_id (
str
) – Domain ID (required)discovery_session_id (
str
) – Discovery session ID (required)discovery_session (
com.vmware.nsx_policy.model_client.DiscoverySession
) – (required)
- Return type
- Returns
com.vmware.nsx_policy.model.DiscoverySession
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
class
com.vmware.nsx_policy.infra.domains_client.
DomainDeploymentMaps
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration
) – Configuration to be used for creating the stub.
-
delete
(domain_id, domain_deployment_map_id)¶ Delete Domain Deployment Map
- Parameters
domain_id (
str
) – Domain ID (required)domain_deployment_map_id (
str
) – domain-deployment-map-id (required)
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
get
(domain_id, domain_deployment_map_id)¶ Read a Domain Deployment Map
- Parameters
domain_id (
str
) – Domain ID (required)domain_deployment_map_id (
str
) – Domain Deployment Map id (required)
- Return type
- Returns
com.vmware.nsx_policy.model.DomainDeploymentMap
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
list
(domain_id, cursor=None, included_fields=None, page_size=None, sort_ascending=None, sort_by=None)¶ Paginated list of all Domain Deployment Entries for infra.
- Parameters
domain_id (
str
) – Domain ID (required)cursor (
str
orNone
) – Opaque cursor to be used for getting next page of records (supplied by current result page) (optional)included_fields (
str
orNone
) – Comma separated list of fields that should be included in query result (optional)page_size (
long
orNone
) – Maximum number of results to return in this page (server may return fewer) (optional, default to 1000)sort_ascending (
bool
orNone
) – (optional)sort_by (
str
orNone
) – Field by which records are sorted (optional)
- Return type
com.vmware.nsx_policy.model_client.DomainDeploymentMapListResult
- Returns
com.vmware.nsx_policy.model.DomainDeploymentMapListResult
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
patch
(domain_id, domain_deployment_map_id, domain_deployment_map)¶ If the passed Domain Deployment Map does not already exist, create a new Domain Deployment Map. If it already exist, patch it.
- Parameters
domain_id (
str
) – Domain ID (required)domain_deployment_map_id (
str
) – Domain Deployment Map ID (required)domain_deployment_map (
com.vmware.nsx_policy.model_client.DomainDeploymentMap
) – (required)
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
update
(domain_id, domain_deployment_map_id, domain_deployment_map)¶ If the passed Domain Deployment Map does not already exist, create a new Domain Deployment Map. If it already exist, replace it.
- Parameters
domain_id (
str
) – Domain ID (required)domain_deployment_map_id (
str
) – Domain Deployment Map ID (required)domain_deployment_map (
com.vmware.nsx_policy.model_client.DomainDeploymentMap
) – (required)
- Return type
- Returns
com.vmware.nsx_policy.model.DomainDeploymentMap
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
class
com.vmware.nsx_policy.infra.domains_client.
GatewayPolicies
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration
) – Configuration to be used for creating the stub.
-
get
(domain_id, gateway_policy_id)¶ Read gateway policy for a domain.
- Parameters
domain_id (
str
) – (required)gateway_policy_id (
str
) – (required)
- Return type
- Returns
com.vmware.nsx_policy.model.GatewayPolicy
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
list
(cursor=None, included_fields=None, page_size=None, sort_ascending=None, sort_by=None)¶ List all gateway policies across all domains ordered by precedence.
- Parameters
cursor (
str
orNone
) – Opaque cursor to be used for getting next page of records (supplied by current result page) (optional)included_fields (
str
orNone
) – Comma separated list of fields that should be included in query result (optional)page_size (
long
orNone
) – Maximum number of results to return in this page (server may return fewer) (optional, default to 1000)sort_ascending (
bool
orNone
) – (optional)sort_by (
str
orNone
) – Field by which records are sorted (optional)
- Return type
- Returns
com.vmware.nsx_policy.model.GatewayPolicyListResult
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
patch
(domain_id, gateway_policy_id, gateway_policy)¶ Update the gateway policy for a domain. This is a full replace. All the rules are replaced.
- Parameters
domain_id (
str
) – (required)gateway_policy_id (
str
) – (required)gateway_policy (
com.vmware.nsx_policy.model_client.GatewayPolicy
) – (required)
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
update
(domain_id, gateway_policy_id, gateway_policy)¶ Update the gateway policy for a domain. This is a full replace. All the rules are replaced.
- Parameters
domain_id (
str
) – (required)gateway_policy_id (
str
) – (required)gateway_policy (
com.vmware.nsx_policy.model_client.GatewayPolicy
) – (required)
- Return type
- Returns
com.vmware.nsx_policy.model.GatewayPolicy
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
class
com.vmware.nsx_policy.infra.domains_client.
Groups
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration
) – Configuration to be used for creating the stub.
-
delete
(domain_id, group_id, force=None)¶ Delete Group
- Parameters
domain_id (
str
) – Domain ID (required)group_id (
str
) – Group ID (required)force (
bool
orNone
) – Force delete the resource even if it is being used somewhere (optional, default to false)
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
get
(domain_id, group_id)¶ Read group
- Parameters
domain_id (
str
) – Domain ID (required)group_id (
str
) – Group ID (required)
- Return type
- Returns
com.vmware.nsx_policy.model.Group
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
list
(domain_id, cursor=None, included_fields=None, page_size=None, sort_ascending=None, sort_by=None)¶ List Groups for a domain
- Parameters
domain_id (
str
) – Domain ID (required)cursor (
str
orNone
) – Opaque cursor to be used for getting next page of records (supplied by current result page) (optional)included_fields (
str
orNone
) – Comma separated list of fields that should be included in query result (optional)page_size (
long
orNone
) – Maximum number of results to return in this page (server may return fewer) (optional, default to 1000)sort_ascending (
bool
orNone
) – (optional)sort_by (
str
orNone
) – Field by which records are sorted (optional)
- Return type
- Returns
com.vmware.nsx_policy.model.GroupListResult
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
patch
(domain_id, group_id, group)¶ If a group with the group-id is not already present, create a new group. If it already exists, patch the group.
- Parameters
domain_id (
str
) – Domain ID (required)group_id (
str
) – Group ID (required)group (
com.vmware.nsx_policy.model_client.Group
) – (required)
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
update
(domain_id, group_id, group)¶ If a group with the group-id is not already present, create a new group. If it already exists, update the group.
- Parameters
domain_id (
str
) – Domain ID (required)group_id (
str
) – Group ID (required)group (
com.vmware.nsx_policy.model_client.Group
) – (required)
- Return type
- Returns
com.vmware.nsx_policy.model.Group
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
class
com.vmware.nsx_policy.infra.domains_client.
StubFactory
(stub_config)¶ Bases:
vmware.vapi.bindings.stub.StubFactoryBase
Initialize StubFactoryBase
- Parameters
stub_config (
vmware.vapi.bindings.stub.StubConfiguration
) – Stub config instance
com.vmware.nsx_policy.infra.realized_state_client module¶
-
class
com.vmware.nsx_policy.infra.realized_state_client.
EnforcementPoints
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration
) – Configuration to be used for creating the stub.
-
get
(enforcement_point_name)¶ Read a Enforcement Point and the complete tree underneath. Returns the populated enforcement point object.
- Parameters
enforcement_point_name (
str
) – Enforcement Point Name (required)- Return type
- Returns
com.vmware.nsx_policy.model.RealizedEnforcementPoint
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
list
(cursor=None, included_fields=None, page_size=None, sort_ascending=None, sort_by=None)¶ Paginated list of all enforcement points. Returns the populated enforcement points.
- Parameters
cursor (
str
orNone
) – Opaque cursor to be used for getting next page of records (supplied by current result page) (optional)included_fields (
str
orNone
) – Comma separated list of fields that should be included in query result (optional)page_size (
long
orNone
) – Maximum number of results to return in this page (server may return fewer) (optional, default to 1000)sort_ascending (
bool
orNone
) – (optional)sort_by (
str
orNone
) – Field by which records are sorted (optional)
- Return type
com.vmware.nsx_policy.model_client.RealizedEnforcementPointListResult
- Returns
com.vmware.nsx_policy.model.RealizedEnforcementPointListResult
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
class
com.vmware.nsx_policy.infra.realized_state_client.
RealizedEntities
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration
) – Configuration to be used for creating the stub.
-
list
(intent_path)¶ Get list of realized objects associated with intent object
- Parameters
intent_path (
str
) – String Path of the intent object (required)- Return type
com.vmware.nsx_policy.model_client.GenericPolicyRealizedResourceListResult
- Returns
com.vmware.nsx_policy.model.GenericPolicyRealizedResourceListResult
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
class
com.vmware.nsx_policy.infra.realized_state_client.
RealizedEntity
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration
) – Configuration to be used for creating the stub.
-
get
(realized_path=None)¶ Get realized entity uniquely identified by realized path
- Parameters
realized_path (
str
orNone
) – String Path of the realized object (optional)- Return type
com.vmware.nsx_policy.model_client.GenericPolicyRealizedResource
- Returns
com.vmware.nsx_policy.model.GenericPolicyRealizedResource
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
refresh
(intent_path, enforcement_point_path=None)¶ Refresh the status and statistics of all realized entities associated with given intent path synchronously.
- Parameters
intent_path (
str
) – String Path of the intent object (required)enforcement_point_path (
str
orNone
) – String Path of the enforcement point (optional)
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
class
com.vmware.nsx_policy.infra.realized_state_client.
Status
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration
) – Configuration to be used for creating the stub.
-
get
(intent_path)¶ Get consolidated status of an intent object, specified by path in query parameter
- Parameters
intent_path (
str
) – String Path of the intent object (required)- Return type
com.vmware.nsx_policy.model_client.ConsolidatedRealizedStatus
- Returns
com.vmware.nsx_policy.model.ConsolidatedRealizedStatus
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
class
com.vmware.nsx_policy.infra.realized_state_client.
StubFactory
(stub_config)¶ Bases:
vmware.vapi.bindings.stub.StubFactoryBase
Initialize StubFactoryBase
- Parameters
stub_config (
vmware.vapi.bindings.stub.StubConfiguration
) – Stub config instance
-
class
com.vmware.nsx_policy.infra.realized_state_client.
VirtualMachines
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration
) – Configuration to be used for creating the stub.
-
list
(enforcement_point_path, cursor=None, included_fields=None, page_size=None, sort_ascending=None, sort_by=None)¶ This API filters objects of type virtual machine. This API also gives some VM details such as VM name, IDs and the current state of the VMs.
- Parameters
enforcement_point_path (
str
) – String Path of the enforcement point (required)cursor (
str
orNone
) – Opaque cursor to be used for getting next page of records (supplied by current result page) (optional)included_fields (
str
orNone
) – Comma separated list of fields that should be included in query result (optional)page_size (
long
orNone
) – Maximum number of results to return in this page (server may return fewer) (optional, default to 1000)sort_ascending (
bool
orNone
) – (optional)sort_by (
str
orNone
) – Field by which records are sorted (optional)
- Return type
- Returns
com.vmware.nsx_policy.model.VirtualMachineListResult
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
com.vmware.nsx_policy.infra.services_client module¶
-
class
com.vmware.nsx_policy.infra.services_client.
ServiceEntries
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration
) – Configuration to be used for creating the stub.
-
delete
(service_id, service_entry_id)¶ Delete Service entry
- Parameters
service_id (
str
) – Service ID (required)service_entry_id (
str
) – Service entry ID (required)
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
get
(service_id, service_entry_id)¶ Service entry
- Parameters
service_id (
str
) – Service ID (required)service_entry_id (
str
) – Service entry ID (required)
- Return type
vmware.vapi.struct.VapiStruct
- Returns
com.vmware.nsx_policy.model.ServiceEntry The return value will contain all the attributes defined in
com.vmware.nsx_policy.model_client.ServiceEntry
.- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
list
(service_id, cursor=None, included_fields=None, page_size=None, sort_ascending=None, sort_by=None)¶ Paginated list of Service entries for the given service
- Parameters
service_id (
str
) – Service ID (required)cursor (
str
orNone
) – Opaque cursor to be used for getting next page of records (supplied by current result page) (optional)included_fields (
str
orNone
) – Comma separated list of fields that should be included in query result (optional)page_size (
long
orNone
) – Maximum number of results to return in this page (server may return fewer) (optional, default to 1000)sort_ascending (
bool
orNone
) – (optional)sort_by (
str
orNone
) – Field by which records are sorted (optional)
- Return type
- Returns
com.vmware.nsx_policy.model.ServiceEntryListResult
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
patch
(service_id, service_entry_id, service_entry)¶ If a service entry with the service-entry-id is not already present, create a new service entry. If it already exists, patch the service entry.
- Parameters
service_id (
str
) – Service ID (required)service_entry_id (
str
) – Service entry ID (required)service_entry (
vmware.vapi.struct.VapiStruct
) – (required) The parameter must contain all the attributes defined incom.vmware.nsx_policy.model_client.ServiceEntry
.
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
update
(service_id, service_entry_id, service_entry)¶ If a service entry with the service-entry-id is not already present, create a new service entry. If it already exists, update the service entry.
- Parameters
service_id (
str
) – Service ID (required)service_entry_id (
str
) – Service entry ID (required)service_entry (
vmware.vapi.struct.VapiStruct
) – (required) The parameter must contain all the attributes defined incom.vmware.nsx_policy.model_client.ServiceEntry
.
- Return type
vmware.vapi.struct.VapiStruct
- Returns
com.vmware.nsx_policy.model.ServiceEntry The return value will contain all the attributes defined in
com.vmware.nsx_policy.model_client.ServiceEntry
.- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
class
com.vmware.nsx_policy.infra.services_client.
StubFactory
(stub_config)¶ Bases:
vmware.vapi.bindings.stub.StubFactoryBase
Initialize StubFactoryBase
- Parameters
stub_config (
vmware.vapi.bindings.stub.StubConfiguration
) – Stub config instance
com.vmware.nsx_policy.infra.tier_0s_client module¶
-
class
com.vmware.nsx_policy.infra.tier_0s_client.
Groups
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration
) – Configuration to be used for creating the stub.
-
delete
(tier0_id, group_id)¶ Delete the Group under Tier-0.
- Parameters
tier0_id (
str
) – (required)group_id (
str
) – (required)
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
get
(tier0_id, group_id)¶ Read Tier-0 Group
- Parameters
tier0_id (
str
) – (required)group_id (
str
) – (required)
- Return type
- Returns
com.vmware.nsx_policy.model.Group
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
list
(tier0_id, cursor=None, included_fields=None, page_size=None, sort_ascending=None, sort_by=None)¶ Paginated list of all Groups for Tier-0.
- Parameters
tier0_id (
str
) – (required)cursor (
str
orNone
) – Opaque cursor to be used for getting next page of records (supplied by current result page) (optional)included_fields (
str
orNone
) – Comma separated list of fields that should be included in query result (optional)page_size (
long
orNone
) – Maximum number of results to return in this page (server may return fewer) (optional, default to 1000)sort_ascending (
bool
orNone
) – (optional)sort_by (
str
orNone
) – Field by which records are sorted (optional)
- Return type
- Returns
com.vmware.nsx_policy.model.GroupListResult
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
patch
(tier0_id, group_id, group)¶ If a Group with the group-id is not already present, create a new Group under the tier0-id. Update if exists. The API valiates that Tier-0 is present before creating the Group.
- Parameters
tier0_id (
str
) – (required)group_id (
str
) – (required)group (
com.vmware.nsx_policy.model_client.Group
) – (required)
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
update
(tier0_id, group_id, group)¶ If a Group with the group-id is not already present, create a new Group under the tier0-id. Update if exists. The API valiates that Tier-0 is present before creating the Group.
- Parameters
tier0_id (
str
) – (required)group_id (
str
) – (required)group (
com.vmware.nsx_policy.model_client.Group
) – (required)
- Return type
- Returns
com.vmware.nsx_policy.model.Group
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
class
com.vmware.nsx_policy.infra.tier_0s_client.
LocaleServices
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration
) – Configuration to be used for creating the stub.
-
delete
(tier0_id, locale_services_id)¶ Delete tier-0 locale-services
- Parameters
tier0_id (
str
) – (required)locale_services_id (
str
) – (required)
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
get
(tier0_id, locale_services_id)¶ Read tier-0s locale-services
- Parameters
tier0_id (
str
) – (required)locale_services_id (
str
) – (required)
- Return type
- Returns
com.vmware.nsx_policy.model.LocaleServices
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
list
(tier0_id, cursor=None, included_fields=None, page_size=None, sort_ascending=None, sort_by=None)¶ Paginated list of all tier-0 locale-services
- Parameters
tier0_id (
str
) – (required)cursor (
str
orNone
) – Opaque cursor to be used for getting next page of records (supplied by current result page) (optional)included_fields (
str
orNone
) – Comma separated list of fields that should be included in query result (optional)page_size (
long
orNone
) – Maximum number of results to return in this page (server may return fewer) (optional, default to 1000)sort_ascending (
bool
orNone
) – (optional)sort_by (
str
orNone
) – Field by which records are sorted (optional)
- Return type
- Returns
com.vmware.nsx_policy.model.LocaleServicesListResult
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
patch
(tier0_id, locale_services_id, locale_services)¶ If a tier-0 locale-services with the locale-services-id is not already present, create a new locale-services. If it already exists, update tier-0 locale-services with specified attributes.
- Parameters
tier0_id (
str
) – (required)locale_services_id (
str
) – (required)locale_services (
com.vmware.nsx_policy.model_client.LocaleServices
) – (required)
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
update
(tier0_id, locale_services_id, locale_services)¶ If a tier-0 locale-services with the locale-services-id is not already present, create a new locale-services. If it already exists, replace the tier-0 locale-services instance with the new object.
- Parameters
tier0_id (
str
) – (required)locale_services_id (
str
) – (required)locale_services (
com.vmware.nsx_policy.model_client.LocaleServices
) – (required)
- Return type
- Returns
com.vmware.nsx_policy.model.LocaleServices
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
class
com.vmware.nsx_policy.infra.tier_0s_client.
PrefixLists
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration
) – Configuration to be used for creating the stub.
-
delete
(tier0_id, prefix_list_id)¶ Delete a prefix list
- Parameters
tier0_id (
str
) – Tier-0 ID (required)prefix_list_id (
str
) – Prefix List ID (required)
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
get
(tier0_id, prefix_list_id)¶ Read a prefix list
- Parameters
tier0_id (
str
) – Tier-0 ID (required)prefix_list_id (
str
) – Prefix List ID (required)
- Return type
- Returns
com.vmware.nsx_policy.model.PrefixList
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
list
(tier0_id, cursor=None, included_fields=None, page_size=None, sort_ascending=None, sort_by=None)¶ Paginated list of all prefix lists
- Parameters
tier0_id (
str
) – Tier-0 ID (required)cursor (
str
orNone
) – Opaque cursor to be used for getting next page of records (supplied by current result page) (optional)included_fields (
str
orNone
) – Comma separated list of fields that should be included in query result (optional)page_size (
long
orNone
) – Maximum number of results to return in this page (server may return fewer) (optional, default to 1000)sort_ascending (
bool
orNone
) – (optional)sort_by (
str
orNone
) – Field by which records are sorted (optional)
- Return type
- Returns
com.vmware.nsx_policy.model.PrefixListResult
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
patch
(tier0_id, prefix_list_id, prefix_list)¶ If prefix list for prefix-list-id is not already present, create a prefix list. If it already exists, update prefix list for prefix-list-id.
- Parameters
tier0_id (
str
) – Tier-0 ID (required)prefix_list_id (
str
) – Prefix List ID (required)prefix_list (
com.vmware.nsx_policy.model_client.PrefixList
) – (required)
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
update
(tier0_id, prefix_list_id, prefix_list)¶ If prefix list for prefix-list-id is not already present, create a prefix list. If it already exists, replace the prefix list for prefix-list-id.
- Parameters
tier0_id (
str
) – Tier-0 ID (required)prefix_list_id (
str
) – Prefix List ID (required)prefix_list (
com.vmware.nsx_policy.model_client.PrefixList
) – (required)
- Return type
- Returns
com.vmware.nsx_policy.model.PrefixList
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
class
com.vmware.nsx_policy.infra.tier_0s_client.
RoutingTable
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration
) – Configuration to be used for creating the stub.
-
LIST_ROUTE_SOURCE_BGP
= 'BGP'¶ Possible value for
routeSource
of methodRoutingTable.list()
.
-
LIST_ROUTE_SOURCE_CONNECTED
= 'CONNECTED'¶ Possible value for
routeSource
of methodRoutingTable.list()
.
-
LIST_ROUTE_SOURCE_STATIC
= 'STATIC'¶ Possible value for
routeSource
of methodRoutingTable.list()
.
-
list
(tier0_id, cursor=None, edge_id=None, enforcement_point_path=None, included_fields=None, page_size=None, route_source=None, sort_ascending=None, sort_by=None)¶ Get routing table from tier-0
- Parameters
tier0_id (
str
) – (required)cursor (
str
orNone
) – Opaque cursor to be used for getting next page of records (supplied by current result page) (optional)edge_id (
str
orNone
) – UUID of edge node (optional)enforcement_point_path (
str
orNone
) – String Path of the enforcement point (optional)included_fields (
str
orNone
) – Comma separated list of fields that should be included in query result (optional)page_size (
long
orNone
) – Maximum number of results to return in this page (server may return fewer) (optional, default to 1000)route_source (
str
orNone
) – Filter routes based on the source from which route is learned (optional)sort_ascending (
bool
orNone
) – (optional)sort_by (
str
orNone
) – Field by which records are sorted (optional)
- Return type
- Returns
com.vmware.nsx_policy.model.RoutingTableListResult
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
class
com.vmware.nsx_policy.infra.tier_0s_client.
StaticRoutes
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration
) – Configuration to be used for creating the stub.
-
delete
(tier0_id, route_id)¶ Delete tier-0 static routes
- Parameters
tier0_id (
str
) – Tier-0 ID (required)route_id (
str
) – Route ID (required)
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
get
(tier0_id, route_id)¶ Read tier-0 static routes
- Parameters
tier0_id (
str
) – Tier-0 ID (required)route_id (
str
) – Route ID (required)
- Return type
- Returns
com.vmware.nsx_policy.model.StaticRoutes
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
list
(tier0_id, cursor=None, included_fields=None, page_size=None, sort_ascending=None, sort_by=None)¶ Paginated list of all Tier-0 Static Routes
- Parameters
tier0_id (
str
) – Tier-0 ID (required)cursor (
str
orNone
) – Opaque cursor to be used for getting next page of records (supplied by current result page) (optional)included_fields (
str
orNone
) – Comma separated list of fields that should be included in query result (optional)page_size (
long
orNone
) – Maximum number of results to return in this page (server may return fewer) (optional, default to 1000)sort_ascending (
bool
orNone
) – (optional)sort_by (
str
orNone
) – Field by which records are sorted (optional)
- Return type
- Returns
com.vmware.nsx_policy.model.StaticRoutesListResult
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
patch
(tier0_id, route_id, static_routes)¶ If static routes for route-id are not already present, create static routes. If it already exists, update static routes for route-id.
- Parameters
tier0_id (
str
) – Tier-0 ID (required)route_id (
str
) – Route ID (required)static_routes (
com.vmware.nsx_policy.model_client.StaticRoutes
) – (required)
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
update
(tier0_id, route_id, static_routes)¶ If static routes for route-id are not already present, create static routes. If it already exists, replace the static routes for route-id.
- Parameters
tier0_id (
str
) – Tier-0 ID (required)route_id (
str
) – Route ID (required)static_routes (
com.vmware.nsx_policy.model_client.StaticRoutes
) – (required)
- Return type
- Returns
com.vmware.nsx_policy.model.StaticRoutes
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
class
com.vmware.nsx_policy.infra.tier_0s_client.
StubFactory
(stub_config)¶ Bases:
vmware.vapi.bindings.stub.StubFactoryBase
Initialize StubFactoryBase
- Parameters
stub_config (
vmware.vapi.bindings.stub.StubConfiguration
) – Stub config instance
com.vmware.nsx_policy.infra.tier_1s_client module¶
-
class
com.vmware.nsx_policy.infra.tier_1s_client.
DnsForwarder
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration
) – Configuration to be used for creating the stub.
-
delete
(tier1_id)¶ Delete DNS configuration for tier-1 instance
- Parameters
tier1_id (
str
) – Tier-1 ID (required)- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
get
(tier1_id)¶ Read the DNS Forwarder for the given tier-1 instance
- Parameters
tier1_id (
str
) – Tier-1 ID (required)- Return type
- Returns
com.vmware.nsx_policy.model.PolicyDnsForwarder
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
patch
(tier1_id, policy_dns_forwarder)¶ Update the DNS Forwarder
- Parameters
tier1_id (
str
) – Tier-1 ID (required)policy_dns_forwarder (
com.vmware.nsx_policy.model_client.PolicyDnsForwarder
) – (required)
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
update
(tier1_id, policy_dns_forwarder)¶ Update the DNS Forwarder
- Parameters
tier1_id (
str
) – Tier-1 ID (required)policy_dns_forwarder (
com.vmware.nsx_policy.model_client.PolicyDnsForwarder
) – (required)
- Return type
- Returns
com.vmware.nsx_policy.model.PolicyDnsForwarder
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
class
com.vmware.nsx_policy.infra.tier_1s_client.
IpfixSwitchCollectionInstances
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration
) – Configuration to be used for creating the stub.
-
delete
(tier1_id, ipfix_switch_collection_instance_id)¶ API deletes IPFIX Switch Collection Instance.Flow forwarding to selected collector will be stopped.
- Parameters
tier1_id (
str
) – Tier-1 ID (required)ipfix_switch_collection_instance_id (
str
) – IPFIX Switch Collection Instance ID (required)
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
get
(tier1_id, ipfix_switch_collection_instance_id)¶ API will return details of IPFIX switch collection. If instance does not exist, it will return 404.
- Parameters
tier1_id (
str
) – Tier-1 ID (required)ipfix_switch_collection_instance_id (
str
) – IPFIX switch collection id (required)
- Return type
com.vmware.nsx_policy.model_client.IPFIXSwitchCollectionInstance
- Returns
com.vmware.nsx_policy.model.IPFIXSwitchCollectionInstance
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
list
(tier1_id, cursor=None, included_fields=None, page_size=None, sort_ascending=None, sort_by=None)¶ API provides list IPFIX Switch collection instances available on selected logical switch.
- Parameters
tier1_id (
str
) – Tier-1 ID (required)cursor (
str
orNone
) – Opaque cursor to be used for getting next page of records (supplied by current result page) (optional)included_fields (
str
orNone
) – Comma separated list of fields that should be included in query result (optional)page_size (
long
orNone
) – Maximum number of results to return in this page (server may return fewer) (optional, default to 1000)sort_ascending (
bool
orNone
) – (optional)sort_by (
str
orNone
) – Field by which records are sorted (optional)
- Return type
com.vmware.nsx_policy.model_client.IPFIXSwitchCollectionInstanceListResult
- Returns
com.vmware.nsx_policy.model.IPFIXSwitchCollectionInstanceListResult
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
patch
(tier1_id, ipfix_switch_collection_instance_id, i_pfix_switch_collection_instance)¶ Create a new IPFIX switch collection instance if the IPFIX switch collection instance with given id does not already exist. If the IPFIX switch collection instance with the given id already exists, patch with the existing IPFIX switch collection instance.
- Parameters
tier1_id (
str
) – Tier-1 ID (required)ipfix_switch_collection_instance_id (
str
) – IPFIX Switch Collection Instance ID (required)i_pfix_switch_collection_instance (
com.vmware.nsx_policy.model_client.IPFIXSwitchCollectionInstance
) – (required)
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
update
(tier1_id, ipfix_switch_collection_instance_id, i_pfix_switch_collection_instance)¶ Create or replace IPFIX switch collection instance. Instance will start forwarding data to provided IPFIX collector.
- Parameters
tier1_id (
str
) – Tier-1 ID (required)ipfix_switch_collection_instance_id (
str
) – IPFIX Switch Collection Instance ID (required)i_pfix_switch_collection_instance (
com.vmware.nsx_policy.model_client.IPFIXSwitchCollectionInstance
) – (required)
- Return type
com.vmware.nsx_policy.model_client.IPFIXSwitchCollectionInstance
- Returns
com.vmware.nsx_policy.model.IPFIXSwitchCollectionInstance
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
class
com.vmware.nsx_policy.infra.tier_1s_client.
Segments
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration
) – Configuration to be used for creating the stub.
-
delete
(tier1_id, segment_id)¶ Delete segment
- Parameters
tier1_id (
str
) – Tier-1 ID (required)segment_id (
str
) – Segment ID (required)
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
get
(tier1_id, segment_id)¶ Read segment
- Parameters
tier1_id (
str
) – Tier-1 ID (required)segment_id (
str
) – Segment ID (required)
- Return type
- Returns
com.vmware.nsx_policy.model.Segment
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
list
(tier1_id, cursor=None, included_fields=None, page_size=None, sort_ascending=None, sort_by=None)¶ Paginated list of all segments under tier-1 instance
- Parameters
tier1_id (
str
) – Tier-1 ID (required)cursor (
str
orNone
) – Opaque cursor to be used for getting next page of records (supplied by current result page) (optional)included_fields (
str
orNone
) – Comma separated list of fields that should be included in query result (optional)page_size (
long
orNone
) – Maximum number of results to return in this page (server may return fewer) (optional, default to 1000)sort_ascending (
bool
orNone
) – (optional)sort_by (
str
orNone
) – Field by which records are sorted (optional)
- Return type
- Returns
com.vmware.nsx_policy.model.SegmentListResult
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
patch
(tier1_id, segment_id, segment)¶ If segment with the segment-id is not already present, create a new segment. If it already exists, update the segment with specified attributes.
- Parameters
tier1_id (
str
) – Tier-1 ID (required)segment_id (
str
) – Segment ID (required)segment (
com.vmware.nsx_policy.model_client.Segment
) – (required)
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
update
(tier1_id, segment_id, segment)¶ If segment with the segment-id is not already present, create a new segment. If it already exists, replace the segment with this object.
- Parameters
tier1_id (
str
) – Tier-1 ID (required)segment_id (
str
) – Segment ID (required)segment (
com.vmware.nsx_policy.model_client.Segment
) – (required)
- Return type
- Returns
com.vmware.nsx_policy.model.Segment
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
class
com.vmware.nsx_policy.infra.tier_1s_client.
StaticRoutes
(config)¶ Bases:
vmware.vapi.bindings.stub.VapiInterface
- Parameters
config (
vmware.vapi.bindings.stub.StubConfiguration
) – Configuration to be used for creating the stub.
-
delete
(tier1_id, route_id)¶ Delete tier-1 static routes
- Parameters
tier1_id (
str
) – Tier-1 ID (required)route_id (
str
) – Route ID (required)
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
get
(tier1_id, route_id)¶ Read tier-1 static routes
- Parameters
tier1_id (
str
) – Tier-1 ID (required)route_id (
str
) – Route ID (required)
- Return type
- Returns
com.vmware.nsx_policy.model.StaticRoutes
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
list
(tier1_id, cursor=None, included_fields=None, page_size=None, sort_ascending=None, sort_by=None)¶ Paginated list of all Tier-1 Static Routes
- Parameters
tier1_id (
str
) – Tier-1 ID (required)cursor (
str
orNone
) – Opaque cursor to be used for getting next page of records (supplied by current result page) (optional)included_fields (
str
orNone
) – Comma separated list of fields that should be included in query result (optional)page_size (
long
orNone
) – Maximum number of results to return in this page (server may return fewer) (optional, default to 1000)sort_ascending (
bool
orNone
) – (optional)sort_by (
str
orNone
) – Field by which records are sorted (optional)
- Return type
- Returns
com.vmware.nsx_policy.model.StaticRoutesListResult
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
patch
(tier1_id, route_id, static_routes)¶ If static routes for route-id are not already present, create static routes. If it already exists, update static routes for route-id.
- Parameters
tier1_id (
str
) – Tier-1 ID (required)route_id (
str
) – Route ID (required)static_routes (
com.vmware.nsx_policy.model_client.StaticRoutes
) – (required)
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
update
(tier1_id, route_id, static_routes)¶ If static routes for route-id are not already present, create static routes. If it already exists, replace the static routes for route-id.
- Parameters
tier1_id (
str
) – Tier-1 ID (required)route_id (
str
) – Route ID (required)static_routes (
com.vmware.nsx_policy.model_client.StaticRoutes
) – (required)
- Return type
- Returns
com.vmware.nsx_policy.model.StaticRoutes
- Raise
com.vmware.vapi.std.errors_client.ServiceUnavailable
Service Unavailable- Raise
com.vmware.vapi.std.errors_client.InvalidRequest
Bad Request, Precondition Failed- Raise
com.vmware.vapi.std.errors_client.InternalServerError
Internal Server Error- Raise
com.vmware.vapi.std.errors_client.Unauthorized
Forbidden- Raise
com.vmware.vapi.std.errors_client.NotFound
Not Found
-
class
com.vmware.nsx_policy.infra.tier_1s_client.
StubFactory
(stub_config)¶ Bases:
vmware.vapi.bindings.stub.StubFactoryBase
Initialize StubFactoryBase
- Parameters
stub_config (
vmware.vapi.bindings.stub.StubConfiguration
) – Stub config instance