Class TransitGatewayApis


  • public class TransitGatewayApis
    extends com.ibm.cloud.sdk.core.service.BaseService
    No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator). API Version: __VERSION__
    • Field Detail

      • DEFAULT_SERVICE_NAME

        public static final String DEFAULT_SERVICE_NAME
        Default service name used when configuring the `TransitGatewayApis` client.
        See Also:
        Constant Field Values
    • Constructor Detail

      • TransitGatewayApis

        public TransitGatewayApis​(String version,
                                  String serviceName,
                                  com.ibm.cloud.sdk.core.security.Authenticator authenticator)
        Constructs an instance of the `TransitGatewayApis` client. The specified service name and authenticator are used to configure the client instance.
        Parameters:
        version - Requests the version of the API as of a date in the format `YYYY-MM-DD`. Any date up to the current date may be provided. Specify the current date to request the latest version.
        serviceName - the service name to be used when configuring the client instance
        authenticator - the Authenticator instance to be configured for this client
    • Method Detail

      • newInstance

        public static TransitGatewayApis newInstance​(String version)
        Class method which constructs an instance of the `TransitGatewayApis` client. The default service name is used to configure the client instance.
        Parameters:
        version - Requests the version of the API as of a date in the format `YYYY-MM-DD`. Any date up to the current date may be provided. Specify the current date to request the latest version.
        Returns:
        an instance of the `TransitGatewayApis` client using external configuration
      • newInstance

        public static TransitGatewayApis newInstance​(String version,
                                                     String serviceName)
        Class method which constructs an instance of the `TransitGatewayApis` client. The specified service name is used to configure the client instance.
        Parameters:
        version - Requests the version of the API as of a date in the format `YYYY-MM-DD`. Any date up to the current date may be provided. Specify the current date to request the latest version.
        serviceName - the service name to be used when configuring the client instance
        Returns:
        an instance of the `TransitGatewayApis` client using external configuration
      • getVersion

        public String getVersion()
        Gets the version. Requests the version of the API as of a date in the format `YYYY-MM-DD`. Any date up to the current date may be provided. Specify the current date to request the latest version.
        Returns:
        the version
      • setVersion

        public void setVersion​(String version)
        Sets the version.
        Parameters:
        version - the new version
      • listTransitGateways

        public com.ibm.cloud.sdk.core.http.ServiceCall<TransitGatewayCollection> listTransitGateways​(ListTransitGatewaysOptions listTransitGatewaysOptions)
        Retrieves all Transit Gateways. List all Transit Gateways in the account the caller is authorized to view. Use the `limit` (integer, 1–100, default 50) and `start` (string token) parameters to page through results. Optionally filter by `redundancy_group` name. Each `TransitGateway` in the response includes: `id`, `name`, `crn`, `location`, `status` (pending, available, deleting, deleted, failed), `global` (boolean), `created_at`, `updated_at`, `resource_group`, and optionally `redundancy_group`, `redundancy_group_id`, `gre_enhanced_route_propagation`, and `connection_needs_attention`.
        Parameters:
        listTransitGatewaysOptions - the ListTransitGatewaysOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type TransitGatewayCollection
      • listTransitGateways

        public com.ibm.cloud.sdk.core.http.ServiceCall<TransitGatewayCollection> listTransitGateways()
        Retrieves all Transit Gateways. List all Transit Gateways in the account the caller is authorized to view. Use the `limit` (integer, 1–100, default 50) and `start` (string token) parameters to page through results. Optionally filter by `redundancy_group` name. Each `TransitGateway` in the response includes: `id`, `name`, `crn`, `location`, `status` (pending, available, deleting, deleted, failed), `global` (boolean), `created_at`, `updated_at`, `resource_group`, and optionally `redundancy_group`, `redundancy_group_id`, `gre_enhanced_route_propagation`, and `connection_needs_attention`.
        Returns:
        a ServiceCall with a result of type TransitGatewayCollection
      • createTransitGateway

        public com.ibm.cloud.sdk.core.http.ServiceCall<TransitGateway> createTransitGateway​(CreateTransitGatewayOptions createTransitGatewayOptions)
        Creates a Transit Gateway. Create a Transit Gateway based on the supplied input template. Required fields: `name` (string, 1–60 chars), `location` (IBM Cloud region, e.g. us-south). Optional fields: `global` (boolean, enables cross-region routing), `resource_group` (object with `id`), `redundancy_group` (string, name of the redundancy group to join), `redundancy_group_id` (string, ID of an existing redundancy group in the account), `gre_enhanced_route_propagation` (boolean). Either `redundancy_group` or `redundancy_group_id` can be provided, but not both. Returns a `TransitGateway` object. Initial `status` will be `pending` while provisioning.
        Parameters:
        createTransitGatewayOptions - the CreateTransitGatewayOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type TransitGateway
      • deleteTransitGateway

        public com.ibm.cloud.sdk.core.http.ServiceCall<Void> deleteTransitGateway​(DeleteTransitGatewayOptions deleteTransitGatewayOptions)
        Deletes specified Transit Gateway. Delete a Transit Gateway specified by its `id` path parameter. This operation cannot be reversed. The gateway must have no attached connections before it can be deleted; remove all connections first.
        Parameters:
        deleteTransitGatewayOptions - the DeleteTransitGatewayOptions containing the options for the call
        Returns:
        a ServiceCall with a void result
      • getTransitGateway

        public com.ibm.cloud.sdk.core.http.ServiceCall<TransitGateway> getTransitGateway​(GetTransitGatewayOptions getTransitGatewayOptions)
        Retrieves specified Transit Gateway. Retrieve a single Transit Gateway specified by its `id` path parameter. Returns a `TransitGateway` object containing: `id`, `name`, `crn`, `location`, `status`, `global`, `created_at`, `updated_at`, `resource_group`, and optionally `redundancy_group`, `redundancy_group_id`, `gre_enhanced_route_propagation`, and `connection_needs_attention`.
        Parameters:
        getTransitGatewayOptions - the GetTransitGatewayOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type TransitGateway
      • updateTransitGateway

        public com.ibm.cloud.sdk.core.http.ServiceCall<TransitGateway> updateTransitGateway​(UpdateTransitGatewayOptions updateTransitGatewayOptions)
        Updates specified Transit Gateway. Update a Transit Gateway specified by its `id` path parameter. Updatable fields: `name` (string), `global` (boolean), `redundancy_group` (string, assigns the gateway to a redundancy group), `gre_enhanced_route_propagation` (boolean). Returns the updated `TransitGateway` object.
        Parameters:
        updateTransitGatewayOptions - the UpdateTransitGatewayOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type TransitGateway
      • listConnections

        public com.ibm.cloud.sdk.core.http.ServiceCall<TransitConnectionCollection> listConnections​(ListConnectionsOptions listConnectionsOptions)
        Retrieves all connections. List all transit gateway connections associated with this account. Results can be filtered by `network_id` or `network_type`. Use the `limit` and `start` parameters to page through large result sets. The response includes a `TransitConnection` object for each connection, containing fields such as `id`, `name`, `network_type`, `status`, `created_at`, `updated_at`, and optionally `prefix_filters`, `request_status`, and `transit_gateway` reference.
        Parameters:
        listConnectionsOptions - the ListConnectionsOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type TransitConnectionCollection
      • listConnections

        public com.ibm.cloud.sdk.core.http.ServiceCall<TransitConnectionCollection> listConnections()
        Retrieves all connections. List all transit gateway connections associated with this account. Results can be filtered by `network_id` or `network_type`. Use the `limit` and `start` parameters to page through large result sets. The response includes a `TransitConnection` object for each connection, containing fields such as `id`, `name`, `network_type`, `status`, `created_at`, `updated_at`, and optionally `prefix_filters`, `request_status`, and `transit_gateway` reference.
        Returns:
        a ServiceCall with a result of type TransitConnectionCollection
      • deleteTransitGatewayConnection

        public com.ibm.cloud.sdk.core.http.ServiceCall<Void> deleteTransitGatewayConnection​(DeleteTransitGatewayConnectionOptions deleteTransitGatewayConnectionOptions)
        Removes a connection from Transit Gateway. After the specified connection is detached, entities still within the Transit Gateway will no longer be able to communicate directly to it through the IBM Cloud private backbone.
        Parameters:
        deleteTransitGatewayConnectionOptions - the DeleteTransitGatewayConnectionOptions containing the options for the call
        Returns:
        a ServiceCall with a void result
      • createTransitGatewayConnectionActions

        public com.ibm.cloud.sdk.core.http.ServiceCall<Void> createTransitGatewayConnectionActions​(CreateTransitGatewayConnectionActionsOptions createTransitGatewayConnectionActionsOptions)
        Performs actions on a connection for a Transit Gateway. Allow a network owner to approve or reject a cross-account connection request.
        Parameters:
        createTransitGatewayConnectionActionsOptions - the CreateTransitGatewayConnectionActionsOptions containing the options for the call
        Returns:
        a ServiceCall with a void result
      • deleteTransitGatewayConnectionTunnels

        public com.ibm.cloud.sdk.core.http.ServiceCall<Void> deleteTransitGatewayConnectionTunnels​(DeleteTransitGatewayConnectionTunnelsOptions deleteTransitGatewayConnectionTunnelsOptions)
        Deletes a specified Transit Gateway redundant GRE tunnel. Remove a tunnel from a redundant GRE connection.
        Parameters:
        deleteTransitGatewayConnectionTunnelsOptions - the DeleteTransitGatewayConnectionTunnelsOptions containing the options for the call
        Returns:
        a ServiceCall with a void result
      • listGatewayLocations

        public com.ibm.cloud.sdk.core.http.ServiceCall<TSCollection> listGatewayLocations​(ListGatewayLocationsOptions listGatewayLocationsOptions)
        Lists all locations that support Transit Gateways. List all locations that support Transit Gateways.
        Parameters:
        listGatewayLocationsOptions - the ListGatewayLocationsOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type TSCollection
      • listGatewayLocations

        public com.ibm.cloud.sdk.core.http.ServiceCall<TSCollection> listGatewayLocations()
        Lists all locations that support Transit Gateways. List all locations that support Transit Gateways.
        Returns:
        a ServiceCall with a result of type TSCollection
      • getGatewayLocation

        public com.ibm.cloud.sdk.core.http.ServiceCall<TSLocation> getGatewayLocation​(GetGatewayLocationOptions getGatewayLocationOptions)
        Shows the details of a given Transit Gateway location. Get the details of a Transit Gateway Location.
        Parameters:
        getGatewayLocationOptions - the GetGatewayLocationOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type TSLocation
      • createTransitGatewayConnectionPrefixFilter

        public com.ibm.cloud.sdk.core.http.ServiceCall<PrefixFilterCust> createTransitGatewayConnectionPrefixFilter​(CreateTransitGatewayConnectionPrefixFilterOptions createTransitGatewayConnectionPrefixFilterOptions)
        Add a prefix filter to a Transit Gateway connection. Add a Prefix Filter to a Transit Gateway Connection. Prefix Filters can be added to `vpc`, `classic`, `directlink`, and `power_virtual_server` Connection types. Prefix Filters cannot be added to `gre_tunnel`, `unbound_gre_tunnel`, `redundant_gre` or `vpn_gateway` Connection types.
        Parameters:
        createTransitGatewayConnectionPrefixFilterOptions - the CreateTransitGatewayConnectionPrefixFilterOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type PrefixFilterCust
      • deleteTransitGatewayConnectionPrefixFilter

        public com.ibm.cloud.sdk.core.http.ServiceCall<Void> deleteTransitGatewayConnectionPrefixFilter​(DeleteTransitGatewayConnectionPrefixFilterOptions deleteTransitGatewayConnectionPrefixFilterOptions)
        Remove prefix filter from Transit Gateway connection. Delete a prefix filter.
        Parameters:
        deleteTransitGatewayConnectionPrefixFilterOptions - the DeleteTransitGatewayConnectionPrefixFilterOptions containing the options for the call
        Returns:
        a ServiceCall with a void result
      • listTransitGatewayRouteReports

        public com.ibm.cloud.sdk.core.http.ServiceCall<RouteReportCollection> listTransitGatewayRouteReports​(ListTransitGatewayRouteReportsOptions listTransitGatewayRouteReportsOptions)
        Lists route reports. Retrieve all route reports for the specified Transit Gateway. There will normally be at most one completed report and one pending report. Additionally, completed route reports are written to IBM Cloud Activity Tracker.
        Parameters:
        listTransitGatewayRouteReportsOptions - the ListTransitGatewayRouteReportsOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type RouteReportCollection
      • createTransitGatewayRouteReport

        public com.ibm.cloud.sdk.core.http.ServiceCall<RouteReport> createTransitGatewayRouteReport​(CreateTransitGatewayRouteReportOptions createTransitGatewayRouteReportOptions)
        Requests a route report. Request route report generation. While report generation is in progress, additional requests to generate a report are ignored and return the current pending report.
        Parameters:
        createTransitGatewayRouteReportOptions - the CreateTransitGatewayRouteReportOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type RouteReport
      • deleteTransitGatewayRouteReport

        public com.ibm.cloud.sdk.core.http.ServiceCall<Void> deleteTransitGatewayRouteReport​(DeleteTransitGatewayRouteReportOptions deleteTransitGatewayRouteReportOptions)
        Deletes a route report. Delete a route report.
        Parameters:
        deleteTransitGatewayRouteReportOptions - the DeleteTransitGatewayRouteReportOptions containing the options for the call
        Returns:
        a ServiceCall with a void result
      • listRedundancyGroups

        public com.ibm.cloud.sdk.core.http.ServiceCall<RedundancyGroupCollection> listRedundancyGroups()
        Lists all redundancy groups in the account. List all redundancy groups for the account.
        Returns:
        a ServiceCall with a result of type RedundancyGroupCollection
      • getRedundancyGroup

        public com.ibm.cloud.sdk.core.http.ServiceCall<RedundancyGroup> getRedundancyGroup​(GetRedundancyGroupOptions getRedundancyGroupOptions)
        Retrieves specified redundancy group. Retrieves a single redundancy group specified by the identifier in the URL.
        Parameters:
        getRedundancyGroupOptions - the GetRedundancyGroupOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type RedundancyGroup