Interface Sessions

  • All Superinterfaces:
    com.vmware.vapi.bindings.Service, SessionsTypes
    All Known Implementing Classes:
    SessionsStub

    public interface Sessions
    extends com.vmware.vapi.bindings.Service, SessionsTypes
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void createwithpeercode​(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId, L2VPNSessionData l2VPNSessionData)
      Create or patch an L2VPN session under Tier-0 from Peer Codes.
      void createwithpeercode​(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId, L2VPNSessionData l2VPNSessionData, com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback)
      Create or patch an L2VPN session under Tier-0 from Peer Codes.
      void createwithpeercode​(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId, L2VPNSessionData l2VPNSessionData, com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
      Create or patch an L2VPN session under Tier-0 from Peer Codes.
      void createwithpeercode​(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId, L2VPNSessionData l2VPNSessionData, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
      Create or patch an L2VPN session under Tier-0 from Peer Codes.
      void delete​(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId)
      Delete L2VPN session under Tier-0.
      void delete​(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId, com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback)
      Delete L2VPN session under Tier-0.
      void delete​(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId, com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
      Delete L2VPN session under Tier-0.
      void delete​(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
      Delete L2VPN session under Tier-0.
      L2VPNSession get​(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId)
      Get L2VPN session under Tier-0.
      void get​(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId, com.vmware.vapi.bindings.client.AsyncCallback<L2VPNSession> asyncCallback)
      Get L2VPN session under Tier-0.
      void get​(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId, com.vmware.vapi.bindings.client.AsyncCallback<L2VPNSession> asyncCallback, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
      Get L2VPN session under Tier-0.
      L2VPNSession get​(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
      Get L2VPN session under Tier-0.
      L2VPNSessionListResult list​(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String cursor, java.lang.Boolean includeMarkForDeleteObjects, java.lang.String includedFields, java.lang.Long pageSize, java.lang.Boolean sortAscending, java.lang.String sortBy)
      Get paginated list of all L2VPN sessions under Tier-0.
      void list​(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String cursor, java.lang.Boolean includeMarkForDeleteObjects, java.lang.String includedFields, java.lang.Long pageSize, java.lang.Boolean sortAscending, java.lang.String sortBy, com.vmware.vapi.bindings.client.AsyncCallback<L2VPNSessionListResult> asyncCallback)
      Get paginated list of all L2VPN sessions under Tier-0.
      void list​(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String cursor, java.lang.Boolean includeMarkForDeleteObjects, java.lang.String includedFields, java.lang.Long pageSize, java.lang.Boolean sortAscending, java.lang.String sortBy, com.vmware.vapi.bindings.client.AsyncCallback<L2VPNSessionListResult> asyncCallback, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
      Get paginated list of all L2VPN sessions under Tier-0.
      L2VPNSessionListResult list​(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String cursor, java.lang.Boolean includeMarkForDeleteObjects, java.lang.String includedFields, java.lang.Long pageSize, java.lang.Boolean sortAscending, java.lang.String sortBy, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
      Get paginated list of all L2VPN sessions under Tier-0.
      void patch​(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId, L2VPNSession l2VPNSession)
      Create or patch an L2VPN session under Tier-0.
      void patch​(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId, L2VPNSession l2VPNSession, com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback)
      Create or patch an L2VPN session under Tier-0.
      void patch​(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId, L2VPNSession l2VPNSession, com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
      Create or patch an L2VPN session under Tier-0.
      void patch​(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId, L2VPNSession l2VPNSession, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
      Create or patch an L2VPN session under Tier-0.
      L2VPNSession update​(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId, L2VPNSession l2VPNSession)
      Create or fully replace L2VPN session under Tier-0.
      void update​(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId, L2VPNSession l2VPNSession, com.vmware.vapi.bindings.client.AsyncCallback<L2VPNSession> asyncCallback)
      Create or fully replace L2VPN session under Tier-0.
      void update​(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId, L2VPNSession l2VPNSession, com.vmware.vapi.bindings.client.AsyncCallback<L2VPNSession> asyncCallback, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
      Create or fully replace L2VPN session under Tier-0.
      L2VPNSession update​(java.lang.String tier0Id, java.lang.String serviceId, java.lang.String sessionId, L2VPNSession l2VPNSession, com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
      Create or fully replace L2VPN session under Tier-0.
    • Method Detail

      • createwithpeercode

        void createwithpeercode​(java.lang.String tier0Id,
                                java.lang.String serviceId,
                                java.lang.String sessionId,
                                L2VPNSessionData l2VPNSessionData)
        Create or patch an L2VPN session under Tier-0 from Peer Codes. In addition to the L2VPN Session, the IPSec VPN Session, along with the IKE, Tunnel, and DPD Profiles are created and owned by the system. IPSec VPN Service and Local Endpoint are created only when required, i.e., an IPSec VPN Service does not already exist, or an IPSec VPN Local Endpoint with same local address does not already exist. Updating the L2VPN Session can be performed only through this API by specifying new peer codes. Use of specific APIs to update the L2VPN Session and the different resources associated with it is not allowed, except for IPSec VPN Service and Local Endpoint, resources that are not system owned. API supported only when L2VPN Service is in Client Mode.

        Synchronous method overload. Result of the invocation will be reported as a method return value.

        Parameters:
        tier0Id - (required)
        serviceId - (required)
        sessionId - (required)
        l2VPNSessionData - (required)
        Throws:
        com.vmware.vapi.std.errors.InvalidRequest - Bad Request, Precondition Failed
        com.vmware.vapi.std.errors.Unauthorized - Forbidden
        com.vmware.vapi.std.errors.ServiceUnavailable - Service Unavailable
        com.vmware.vapi.std.errors.InternalServerError - Internal Server Error
        com.vmware.vapi.std.errors.NotFound - Not Found
      • createwithpeercode

        void createwithpeercode​(java.lang.String tier0Id,
                                java.lang.String serviceId,
                                java.lang.String sessionId,
                                L2VPNSessionData l2VPNSessionData,
                                com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
        Create or patch an L2VPN session under Tier-0 from Peer Codes. In addition to the L2VPN Session, the IPSec VPN Session, along with the IKE, Tunnel, and DPD Profiles are created and owned by the system. IPSec VPN Service and Local Endpoint are created only when required, i.e., an IPSec VPN Service does not already exist, or an IPSec VPN Local Endpoint with same local address does not already exist. Updating the L2VPN Session can be performed only through this API by specifying new peer codes. Use of specific APIs to update the L2VPN Session and the different resources associated with it is not allowed, except for IPSec VPN Service and Local Endpoint, resources that are not system owned. API supported only when L2VPN Service is in Client Mode.

        Synchronous method overload. Result of the invocation will be reported as a method return value. Use invocationConfig to specify configuration for this particular invocation.

        Parameters:
        tier0Id - (required)
        serviceId - (required)
        sessionId - (required)
        l2VPNSessionData - (required)
        invocationConfig - Configuration for the method invocation.
        Throws:
        com.vmware.vapi.std.errors.InvalidRequest - Bad Request, Precondition Failed
        com.vmware.vapi.std.errors.Unauthorized - Forbidden
        com.vmware.vapi.std.errors.ServiceUnavailable - Service Unavailable
        com.vmware.vapi.std.errors.InternalServerError - Internal Server Error
        com.vmware.vapi.std.errors.NotFound - Not Found
      • createwithpeercode

        void createwithpeercode​(java.lang.String tier0Id,
                                java.lang.String serviceId,
                                java.lang.String sessionId,
                                L2VPNSessionData l2VPNSessionData,
                                com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback)
        Create or patch an L2VPN session under Tier-0 from Peer Codes. In addition to the L2VPN Session, the IPSec VPN Session, along with the IKE, Tunnel, and DPD Profiles are created and owned by the system. IPSec VPN Service and Local Endpoint are created only when required, i.e., an IPSec VPN Service does not already exist, or an IPSec VPN Local Endpoint with same local address does not already exist. Updating the L2VPN Session can be performed only through this API by specifying new peer codes. Use of specific APIs to update the L2VPN Session and the different resources associated with it is not allowed, except for IPSec VPN Service and Local Endpoint, resources that are not system owned. API supported only when L2VPN Service is in Client Mode.

        Asynchronous method overload. Result of the invocation will be reported via the specified asyncCallback.

        Operation Errors:
        InvalidRequest - Bad Request, Precondition Failed
        Unauthorized - Forbidden
        ServiceUnavailable - Service Unavailable
        InternalServerError - Internal Server Error
        NotFound - Not Found

        Parameters:
        tier0Id - (required)
        serviceId - (required)
        sessionId - (required)
        l2VPNSessionData - (required)
        asyncCallback - Receives the status (progress, result or error) of the operation invocation.
      • createwithpeercode

        void createwithpeercode​(java.lang.String tier0Id,
                                java.lang.String serviceId,
                                java.lang.String sessionId,
                                L2VPNSessionData l2VPNSessionData,
                                com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback,
                                com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
        Create or patch an L2VPN session under Tier-0 from Peer Codes. In addition to the L2VPN Session, the IPSec VPN Session, along with the IKE, Tunnel, and DPD Profiles are created and owned by the system. IPSec VPN Service and Local Endpoint are created only when required, i.e., an IPSec VPN Service does not already exist, or an IPSec VPN Local Endpoint with same local address does not already exist. Updating the L2VPN Session can be performed only through this API by specifying new peer codes. Use of specific APIs to update the L2VPN Session and the different resources associated with it is not allowed, except for IPSec VPN Service and Local Endpoint, resources that are not system owned. API supported only when L2VPN Service is in Client Mode.

        Asynchronous method overload. Result of the invocation will be reported via the specified asyncCallback. Use invocationConfig to specify configuration for this particular invocation.

        Operation Errors:
        InvalidRequest - Bad Request, Precondition Failed
        Unauthorized - Forbidden
        ServiceUnavailable - Service Unavailable
        InternalServerError - Internal Server Error
        NotFound - Not Found

        Parameters:
        tier0Id - (required)
        serviceId - (required)
        sessionId - (required)
        l2VPNSessionData - (required)
        asyncCallback - Receives the status (progress, result or error) of the operation invocation.
        invocationConfig - Configuration for the method invocation.
      • delete

        void delete​(java.lang.String tier0Id,
                    java.lang.String serviceId,
                    java.lang.String sessionId)
        Delete L2VPN session under Tier-0. When L2VPN Service is in CLIENT Mode, the L2VPN Session is deleted along with its transpot tunnels and related resources.

        Synchronous method overload. Result of the invocation will be reported as a method return value.

        Parameters:
        tier0Id - (required)
        serviceId - (required)
        sessionId - (required)
        Throws:
        com.vmware.vapi.std.errors.InvalidRequest - Bad Request, Precondition Failed
        com.vmware.vapi.std.errors.Unauthorized - Forbidden
        com.vmware.vapi.std.errors.ServiceUnavailable - Service Unavailable
        com.vmware.vapi.std.errors.InternalServerError - Internal Server Error
        com.vmware.vapi.std.errors.NotFound - Not Found
      • delete

        void delete​(java.lang.String tier0Id,
                    java.lang.String serviceId,
                    java.lang.String sessionId,
                    com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
        Delete L2VPN session under Tier-0. When L2VPN Service is in CLIENT Mode, the L2VPN Session is deleted along with its transpot tunnels and related resources.

        Synchronous method overload. Result of the invocation will be reported as a method return value. Use invocationConfig to specify configuration for this particular invocation.

        Parameters:
        tier0Id - (required)
        serviceId - (required)
        sessionId - (required)
        invocationConfig - Configuration for the method invocation.
        Throws:
        com.vmware.vapi.std.errors.InvalidRequest - Bad Request, Precondition Failed
        com.vmware.vapi.std.errors.Unauthorized - Forbidden
        com.vmware.vapi.std.errors.ServiceUnavailable - Service Unavailable
        com.vmware.vapi.std.errors.InternalServerError - Internal Server Error
        com.vmware.vapi.std.errors.NotFound - Not Found
      • delete

        void delete​(java.lang.String tier0Id,
                    java.lang.String serviceId,
                    java.lang.String sessionId,
                    com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback)
        Delete L2VPN session under Tier-0. When L2VPN Service is in CLIENT Mode, the L2VPN Session is deleted along with its transpot tunnels and related resources.

        Asynchronous method overload. Result of the invocation will be reported via the specified asyncCallback.

        Operation Errors:
        InvalidRequest - Bad Request, Precondition Failed
        Unauthorized - Forbidden
        ServiceUnavailable - Service Unavailable
        InternalServerError - Internal Server Error
        NotFound - Not Found

        Parameters:
        tier0Id - (required)
        serviceId - (required)
        sessionId - (required)
        asyncCallback - Receives the status (progress, result or error) of the operation invocation.
      • delete

        void delete​(java.lang.String tier0Id,
                    java.lang.String serviceId,
                    java.lang.String sessionId,
                    com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback,
                    com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
        Delete L2VPN session under Tier-0. When L2VPN Service is in CLIENT Mode, the L2VPN Session is deleted along with its transpot tunnels and related resources.

        Asynchronous method overload. Result of the invocation will be reported via the specified asyncCallback. Use invocationConfig to specify configuration for this particular invocation.

        Operation Errors:
        InvalidRequest - Bad Request, Precondition Failed
        Unauthorized - Forbidden
        ServiceUnavailable - Service Unavailable
        InternalServerError - Internal Server Error
        NotFound - Not Found

        Parameters:
        tier0Id - (required)
        serviceId - (required)
        sessionId - (required)
        asyncCallback - Receives the status (progress, result or error) of the operation invocation.
        invocationConfig - Configuration for the method invocation.
      • get

        L2VPNSession get​(java.lang.String tier0Id,
                         java.lang.String serviceId,
                         java.lang.String sessionId)
        Get L2VPN session under Tier-0.

        Synchronous method overload. Result of the invocation will be reported as a method return value.

        Parameters:
        tier0Id - (required)
        serviceId - (required)
        sessionId - (required)
        Returns:
        com.vmware.nsx_policy.model.L2VPNSession
        Throws:
        com.vmware.vapi.std.errors.InvalidRequest - Bad Request, Precondition Failed
        com.vmware.vapi.std.errors.Unauthorized - Forbidden
        com.vmware.vapi.std.errors.ServiceUnavailable - Service Unavailable
        com.vmware.vapi.std.errors.InternalServerError - Internal Server Error
        com.vmware.vapi.std.errors.NotFound - Not Found
      • get

        L2VPNSession get​(java.lang.String tier0Id,
                         java.lang.String serviceId,
                         java.lang.String sessionId,
                         com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
        Get L2VPN session under Tier-0.

        Synchronous method overload. Result of the invocation will be reported as a method return value. Use invocationConfig to specify configuration for this particular invocation.

        Parameters:
        tier0Id - (required)
        serviceId - (required)
        sessionId - (required)
        invocationConfig - Configuration for the method invocation.
        Returns:
        com.vmware.nsx_policy.model.L2VPNSession
        Throws:
        com.vmware.vapi.std.errors.InvalidRequest - Bad Request, Precondition Failed
        com.vmware.vapi.std.errors.Unauthorized - Forbidden
        com.vmware.vapi.std.errors.ServiceUnavailable - Service Unavailable
        com.vmware.vapi.std.errors.InternalServerError - Internal Server Error
        com.vmware.vapi.std.errors.NotFound - Not Found
      • get

        void get​(java.lang.String tier0Id,
                 java.lang.String serviceId,
                 java.lang.String sessionId,
                 com.vmware.vapi.bindings.client.AsyncCallback<L2VPNSession> asyncCallback)
        Get L2VPN session under Tier-0.

        Asynchronous method overload. Result of the invocation will be reported via the specified asyncCallback.

        Invocation Result:
        com.vmware.nsx_policy.model.L2VPNSession

        Operation Errors:
        InvalidRequest - Bad Request, Precondition Failed
        Unauthorized - Forbidden
        ServiceUnavailable - Service Unavailable
        InternalServerError - Internal Server Error
        NotFound - Not Found

        Parameters:
        tier0Id - (required)
        serviceId - (required)
        sessionId - (required)
        asyncCallback - Receives the status (progress, result or error) of the operation invocation.
      • get

        void get​(java.lang.String tier0Id,
                 java.lang.String serviceId,
                 java.lang.String sessionId,
                 com.vmware.vapi.bindings.client.AsyncCallback<L2VPNSession> asyncCallback,
                 com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
        Get L2VPN session under Tier-0.

        Asynchronous method overload. Result of the invocation will be reported via the specified asyncCallback. Use invocationConfig to specify configuration for this particular invocation.

        Invocation Result:
        com.vmware.nsx_policy.model.L2VPNSession

        Operation Errors:
        InvalidRequest - Bad Request, Precondition Failed
        Unauthorized - Forbidden
        ServiceUnavailable - Service Unavailable
        InternalServerError - Internal Server Error
        NotFound - Not Found

        Parameters:
        tier0Id - (required)
        serviceId - (required)
        sessionId - (required)
        asyncCallback - Receives the status (progress, result or error) of the operation invocation.
        invocationConfig - Configuration for the method invocation.
      • list

        L2VPNSessionListResult list​(java.lang.String tier0Id,
                                    java.lang.String serviceId,
                                    java.lang.String cursor,
                                    java.lang.Boolean includeMarkForDeleteObjects,
                                    java.lang.String includedFields,
                                    java.lang.Long pageSize,
                                    java.lang.Boolean sortAscending,
                                    java.lang.String sortBy)
        Get paginated list of all L2VPN sessions under Tier-0.

        Synchronous method overload. Result of the invocation will be reported as a method return value.

        Parameters:
        tier0Id - (required)
        serviceId - (required)
        cursor - Opaque cursor to be used for getting next page of records (supplied by current result page) (optional)
        includeMarkForDeleteObjects - Include objects that are marked for deletion in results (optional, default to false)
        includedFields - Comma separated list of fields that should be included in query result (optional)
        pageSize - Maximum number of results to return in this page (server may return fewer) (optional, default to 1000)
        sortAscending - (optional)
        sortBy - Field by which records are sorted (optional)
        Returns:
        com.vmware.nsx_policy.model.L2VPNSessionListResult
        Throws:
        com.vmware.vapi.std.errors.InvalidRequest - Bad Request, Precondition Failed
        com.vmware.vapi.std.errors.Unauthorized - Forbidden
        com.vmware.vapi.std.errors.ServiceUnavailable - Service Unavailable
        com.vmware.vapi.std.errors.InternalServerError - Internal Server Error
        com.vmware.vapi.std.errors.NotFound - Not Found
      • list

        L2VPNSessionListResult list​(java.lang.String tier0Id,
                                    java.lang.String serviceId,
                                    java.lang.String cursor,
                                    java.lang.Boolean includeMarkForDeleteObjects,
                                    java.lang.String includedFields,
                                    java.lang.Long pageSize,
                                    java.lang.Boolean sortAscending,
                                    java.lang.String sortBy,
                                    com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
        Get paginated list of all L2VPN sessions under Tier-0.

        Synchronous method overload. Result of the invocation will be reported as a method return value. Use invocationConfig to specify configuration for this particular invocation.

        Parameters:
        tier0Id - (required)
        serviceId - (required)
        cursor - Opaque cursor to be used for getting next page of records (supplied by current result page) (optional)
        includeMarkForDeleteObjects - Include objects that are marked for deletion in results (optional, default to false)
        includedFields - Comma separated list of fields that should be included in query result (optional)
        pageSize - Maximum number of results to return in this page (server may return fewer) (optional, default to 1000)
        sortAscending - (optional)
        sortBy - Field by which records are sorted (optional)
        invocationConfig - Configuration for the method invocation.
        Returns:
        com.vmware.nsx_policy.model.L2VPNSessionListResult
        Throws:
        com.vmware.vapi.std.errors.InvalidRequest - Bad Request, Precondition Failed
        com.vmware.vapi.std.errors.Unauthorized - Forbidden
        com.vmware.vapi.std.errors.ServiceUnavailable - Service Unavailable
        com.vmware.vapi.std.errors.InternalServerError - Internal Server Error
        com.vmware.vapi.std.errors.NotFound - Not Found
      • list

        void list​(java.lang.String tier0Id,
                  java.lang.String serviceId,
                  java.lang.String cursor,
                  java.lang.Boolean includeMarkForDeleteObjects,
                  java.lang.String includedFields,
                  java.lang.Long pageSize,
                  java.lang.Boolean sortAscending,
                  java.lang.String sortBy,
                  com.vmware.vapi.bindings.client.AsyncCallback<L2VPNSessionListResult> asyncCallback)
        Get paginated list of all L2VPN sessions under Tier-0.

        Asynchronous method overload. Result of the invocation will be reported via the specified asyncCallback.

        Invocation Result:
        com.vmware.nsx_policy.model.L2VPNSessionListResult

        Operation Errors:
        InvalidRequest - Bad Request, Precondition Failed
        Unauthorized - Forbidden
        ServiceUnavailable - Service Unavailable
        InternalServerError - Internal Server Error
        NotFound - Not Found

        Parameters:
        tier0Id - (required)
        serviceId - (required)
        cursor - Opaque cursor to be used for getting next page of records (supplied by current result page) (optional)
        includeMarkForDeleteObjects - Include objects that are marked for deletion in results (optional, default to false)
        includedFields - Comma separated list of fields that should be included in query result (optional)
        pageSize - Maximum number of results to return in this page (server may return fewer) (optional, default to 1000)
        sortAscending - (optional)
        sortBy - Field by which records are sorted (optional)
        asyncCallback - Receives the status (progress, result or error) of the operation invocation.
      • list

        void list​(java.lang.String tier0Id,
                  java.lang.String serviceId,
                  java.lang.String cursor,
                  java.lang.Boolean includeMarkForDeleteObjects,
                  java.lang.String includedFields,
                  java.lang.Long pageSize,
                  java.lang.Boolean sortAscending,
                  java.lang.String sortBy,
                  com.vmware.vapi.bindings.client.AsyncCallback<L2VPNSessionListResult> asyncCallback,
                  com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
        Get paginated list of all L2VPN sessions under Tier-0.

        Asynchronous method overload. Result of the invocation will be reported via the specified asyncCallback. Use invocationConfig to specify configuration for this particular invocation.

        Invocation Result:
        com.vmware.nsx_policy.model.L2VPNSessionListResult

        Operation Errors:
        InvalidRequest - Bad Request, Precondition Failed
        Unauthorized - Forbidden
        ServiceUnavailable - Service Unavailable
        InternalServerError - Internal Server Error
        NotFound - Not Found

        Parameters:
        tier0Id - (required)
        serviceId - (required)
        cursor - Opaque cursor to be used for getting next page of records (supplied by current result page) (optional)
        includeMarkForDeleteObjects - Include objects that are marked for deletion in results (optional, default to false)
        includedFields - Comma separated list of fields that should be included in query result (optional)
        pageSize - Maximum number of results to return in this page (server may return fewer) (optional, default to 1000)
        sortAscending - (optional)
        sortBy - Field by which records are sorted (optional)
        asyncCallback - Receives the status (progress, result or error) of the operation invocation.
        invocationConfig - Configuration for the method invocation.
      • patch

        void patch​(java.lang.String tier0Id,
                   java.lang.String serviceId,
                   java.lang.String sessionId,
                   L2VPNSession l2VPNSession)
        Create or patch an L2VPN session under Tier-0. API supported only when L2VPN Service is in Server Mode.

        Synchronous method overload. Result of the invocation will be reported as a method return value.

        Parameters:
        tier0Id - (required)
        serviceId - (required)
        sessionId - (required)
        l2VPNSession - (required)
        Throws:
        com.vmware.vapi.std.errors.InvalidRequest - Bad Request, Precondition Failed
        com.vmware.vapi.std.errors.Unauthorized - Forbidden
        com.vmware.vapi.std.errors.ServiceUnavailable - Service Unavailable
        com.vmware.vapi.std.errors.InternalServerError - Internal Server Error
        com.vmware.vapi.std.errors.NotFound - Not Found
      • patch

        void patch​(java.lang.String tier0Id,
                   java.lang.String serviceId,
                   java.lang.String sessionId,
                   L2VPNSession l2VPNSession,
                   com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
        Create or patch an L2VPN session under Tier-0. API supported only when L2VPN Service is in Server Mode.

        Synchronous method overload. Result of the invocation will be reported as a method return value. Use invocationConfig to specify configuration for this particular invocation.

        Parameters:
        tier0Id - (required)
        serviceId - (required)
        sessionId - (required)
        l2VPNSession - (required)
        invocationConfig - Configuration for the method invocation.
        Throws:
        com.vmware.vapi.std.errors.InvalidRequest - Bad Request, Precondition Failed
        com.vmware.vapi.std.errors.Unauthorized - Forbidden
        com.vmware.vapi.std.errors.ServiceUnavailable - Service Unavailable
        com.vmware.vapi.std.errors.InternalServerError - Internal Server Error
        com.vmware.vapi.std.errors.NotFound - Not Found
      • patch

        void patch​(java.lang.String tier0Id,
                   java.lang.String serviceId,
                   java.lang.String sessionId,
                   L2VPNSession l2VPNSession,
                   com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback)
        Create or patch an L2VPN session under Tier-0. API supported only when L2VPN Service is in Server Mode.

        Asynchronous method overload. Result of the invocation will be reported via the specified asyncCallback.

        Operation Errors:
        InvalidRequest - Bad Request, Precondition Failed
        Unauthorized - Forbidden
        ServiceUnavailable - Service Unavailable
        InternalServerError - Internal Server Error
        NotFound - Not Found

        Parameters:
        tier0Id - (required)
        serviceId - (required)
        sessionId - (required)
        l2VPNSession - (required)
        asyncCallback - Receives the status (progress, result or error) of the operation invocation.
      • patch

        void patch​(java.lang.String tier0Id,
                   java.lang.String serviceId,
                   java.lang.String sessionId,
                   L2VPNSession l2VPNSession,
                   com.vmware.vapi.bindings.client.AsyncCallback<java.lang.Void> asyncCallback,
                   com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
        Create or patch an L2VPN session under Tier-0. API supported only when L2VPN Service is in Server Mode.

        Asynchronous method overload. Result of the invocation will be reported via the specified asyncCallback. Use invocationConfig to specify configuration for this particular invocation.

        Operation Errors:
        InvalidRequest - Bad Request, Precondition Failed
        Unauthorized - Forbidden
        ServiceUnavailable - Service Unavailable
        InternalServerError - Internal Server Error
        NotFound - Not Found

        Parameters:
        tier0Id - (required)
        serviceId - (required)
        sessionId - (required)
        l2VPNSession - (required)
        asyncCallback - Receives the status (progress, result or error) of the operation invocation.
        invocationConfig - Configuration for the method invocation.
      • update

        L2VPNSession update​(java.lang.String tier0Id,
                            java.lang.String serviceId,
                            java.lang.String sessionId,
                            L2VPNSession l2VPNSession)
        Create or fully replace L2VPN session under Tier-0. API supported only when L2VPN Service is in Server Mode. Revision is optional for creation and required for update.

        Synchronous method overload. Result of the invocation will be reported as a method return value.

        Parameters:
        tier0Id - (required)
        serviceId - (required)
        sessionId - (required)
        l2VPNSession - (required)
        Returns:
        com.vmware.nsx_policy.model.L2VPNSession
        Throws:
        com.vmware.vapi.std.errors.InvalidRequest - Bad Request, Precondition Failed
        com.vmware.vapi.std.errors.Unauthorized - Forbidden
        com.vmware.vapi.std.errors.ServiceUnavailable - Service Unavailable
        com.vmware.vapi.std.errors.InternalServerError - Internal Server Error
        com.vmware.vapi.std.errors.NotFound - Not Found
      • update

        L2VPNSession update​(java.lang.String tier0Id,
                            java.lang.String serviceId,
                            java.lang.String sessionId,
                            L2VPNSession l2VPNSession,
                            com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
        Create or fully replace L2VPN session under Tier-0. API supported only when L2VPN Service is in Server Mode. Revision is optional for creation and required for update.

        Synchronous method overload. Result of the invocation will be reported as a method return value. Use invocationConfig to specify configuration for this particular invocation.

        Parameters:
        tier0Id - (required)
        serviceId - (required)
        sessionId - (required)
        l2VPNSession - (required)
        invocationConfig - Configuration for the method invocation.
        Returns:
        com.vmware.nsx_policy.model.L2VPNSession
        Throws:
        com.vmware.vapi.std.errors.InvalidRequest - Bad Request, Precondition Failed
        com.vmware.vapi.std.errors.Unauthorized - Forbidden
        com.vmware.vapi.std.errors.ServiceUnavailable - Service Unavailable
        com.vmware.vapi.std.errors.InternalServerError - Internal Server Error
        com.vmware.vapi.std.errors.NotFound - Not Found
      • update

        void update​(java.lang.String tier0Id,
                    java.lang.String serviceId,
                    java.lang.String sessionId,
                    L2VPNSession l2VPNSession,
                    com.vmware.vapi.bindings.client.AsyncCallback<L2VPNSession> asyncCallback)
        Create or fully replace L2VPN session under Tier-0. API supported only when L2VPN Service is in Server Mode. Revision is optional for creation and required for update.

        Asynchronous method overload. Result of the invocation will be reported via the specified asyncCallback.

        Invocation Result:
        com.vmware.nsx_policy.model.L2VPNSession

        Operation Errors:
        InvalidRequest - Bad Request, Precondition Failed
        Unauthorized - Forbidden
        ServiceUnavailable - Service Unavailable
        InternalServerError - Internal Server Error
        NotFound - Not Found

        Parameters:
        tier0Id - (required)
        serviceId - (required)
        sessionId - (required)
        l2VPNSession - (required)
        asyncCallback - Receives the status (progress, result or error) of the operation invocation.
      • update

        void update​(java.lang.String tier0Id,
                    java.lang.String serviceId,
                    java.lang.String sessionId,
                    L2VPNSession l2VPNSession,
                    com.vmware.vapi.bindings.client.AsyncCallback<L2VPNSession> asyncCallback,
                    com.vmware.vapi.bindings.client.InvocationConfig invocationConfig)
        Create or fully replace L2VPN session under Tier-0. API supported only when L2VPN Service is in Server Mode. Revision is optional for creation and required for update.

        Asynchronous method overload. Result of the invocation will be reported via the specified asyncCallback. Use invocationConfig to specify configuration for this particular invocation.

        Invocation Result:
        com.vmware.nsx_policy.model.L2VPNSession

        Operation Errors:
        InvalidRequest - Bad Request, Precondition Failed
        Unauthorized - Forbidden
        ServiceUnavailable - Service Unavailable
        InternalServerError - Internal Server Error
        NotFound - Not Found

        Parameters:
        tier0Id - (required)
        serviceId - (required)
        sessionId - (required)
        l2VPNSession - (required)
        asyncCallback - Receives the status (progress, result or error) of the operation invocation.
        invocationConfig - Configuration for the method invocation.