Class DnsSvcs


  • public class DnsSvcs
    extends com.ibm.cloud.sdk.core.service.BaseService
    DNS Services API. API Version: 1.0.0
    • Field Detail

      • DEFAULT_SERVICE_NAME

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

      • DnsSvcs

        public DnsSvcs​(String serviceName,
                       com.ibm.cloud.sdk.core.security.Authenticator authenticator)
        Constructs an instance of the `DnsSvcs` client. The specified service name and authenticator are used to configure the client instance.
        Parameters:
        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 DnsSvcs newInstance()
        Class method which constructs an instance of the `DnsSvcs` client. The default service name is used to configure the client instance.
        Returns:
        an instance of the `DnsSvcs` client using external configuration
      • newInstance

        public static DnsSvcs newInstance​(String serviceName)
        Class method which constructs an instance of the `DnsSvcs` client. The specified service name is used to configure the client instance.
        Parameters:
        serviceName - the service name to be used when configuring the client instance
        Returns:
        an instance of the `DnsSvcs` client using external configuration
      • listDnszones

        public com.ibm.cloud.sdk.core.http.ServiceCall<ListDnszones> listDnszones​(ListDnszonesOptions listDnszonesOptions)
        List DNS zones. List the DNS zones for a given service instance.
        Parameters:
        listDnszonesOptions - the ListDnszonesOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type ListDnszones
      • createDnszone

        public com.ibm.cloud.sdk.core.http.ServiceCall<Dnszone> createDnszone​(CreateDnszoneOptions createDnszoneOptions)
        Create DNS zone. Create a DNS zone for a given service instance.
        Parameters:
        createDnszoneOptions - the CreateDnszoneOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type Dnszone
      • deleteDnszone

        public com.ibm.cloud.sdk.core.http.ServiceCall<Void> deleteDnszone​(DeleteDnszoneOptions deleteDnszoneOptions)
        Delete DNS zone. Delete a DNS zone.
        Parameters:
        deleteDnszoneOptions - the DeleteDnszoneOptions containing the options for the call
        Returns:
        a ServiceCall with a void result
      • getDnszone

        public com.ibm.cloud.sdk.core.http.ServiceCall<Dnszone> getDnszone​(GetDnszoneOptions getDnszoneOptions)
        Get DNS zone. Get details of a DNS zone.
        Parameters:
        getDnszoneOptions - the GetDnszoneOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type Dnszone
      • updateDnszone

        public com.ibm.cloud.sdk.core.http.ServiceCall<Dnszone> updateDnszone​(UpdateDnszoneOptions updateDnszoneOptions)
        Update DNS zone. Update the properties of a DNS zone.
        Parameters:
        updateDnszoneOptions - the UpdateDnszoneOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type Dnszone
      • createResourceRecord

        public com.ibm.cloud.sdk.core.http.ServiceCall<ResourceRecord> createResourceRecord​(CreateResourceRecordOptions createResourceRecordOptions)
        Create resource record. Create a resource record for a given DNS zone.
        Parameters:
        createResourceRecordOptions - the CreateResourceRecordOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type ResourceRecord
      • deleteResourceRecord

        public com.ibm.cloud.sdk.core.http.ServiceCall<Void> deleteResourceRecord​(DeleteResourceRecordOptions deleteResourceRecordOptions)
        Delete resource record. Delete a resource record.
        Parameters:
        deleteResourceRecordOptions - the DeleteResourceRecordOptions containing the options for the call
        Returns:
        a ServiceCall with a void result
      • exportResourceRecords

        public com.ibm.cloud.sdk.core.http.ServiceCall<InputStream> exportResourceRecords​(ExportResourceRecordsOptions exportResourceRecordsOptions)
        Export resource records to a zone file. Export resource records to a zone file.
        Parameters:
        exportResourceRecordsOptions - the ExportResourceRecordsOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type InputStream
      • createLoadBalancer

        public com.ibm.cloud.sdk.core.http.ServiceCall<LoadBalancer> createLoadBalancer​(CreateLoadBalancerOptions createLoadBalancerOptions)
        Create load balancer. Create a load balancer for a given DNS zone.
        Parameters:
        createLoadBalancerOptions - the CreateLoadBalancerOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type LoadBalancer
      • deleteLoadBalancer

        public com.ibm.cloud.sdk.core.http.ServiceCall<Void> deleteLoadBalancer​(DeleteLoadBalancerOptions deleteLoadBalancerOptions)
        Delete load balancer. Delete a load balancer.
        Parameters:
        deleteLoadBalancerOptions - the DeleteLoadBalancerOptions containing the options for the call
        Returns:
        a ServiceCall with a void result
      • getLoadBalancer

        public com.ibm.cloud.sdk.core.http.ServiceCall<LoadBalancer> getLoadBalancer​(GetLoadBalancerOptions getLoadBalancerOptions)
        Get load balancer. Get details of a load balancer.
        Parameters:
        getLoadBalancerOptions - the GetLoadBalancerOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type LoadBalancer
      • updateLoadBalancer

        public com.ibm.cloud.sdk.core.http.ServiceCall<LoadBalancer> updateLoadBalancer​(UpdateLoadBalancerOptions updateLoadBalancerOptions)
        Update load balancer. Update the properties of a load balancer.
        Parameters:
        updateLoadBalancerOptions - the UpdateLoadBalancerOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type LoadBalancer
      • listPools

        public com.ibm.cloud.sdk.core.http.ServiceCall<ListPools> listPools​(ListPoolsOptions listPoolsOptions)
        List load balancer pools. List the load balancer pools.
        Parameters:
        listPoolsOptions - the ListPoolsOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type ListPools
      • createPool

        public com.ibm.cloud.sdk.core.http.ServiceCall<Pool> createPool​(CreatePoolOptions createPoolOptions)
        Create load balancer pool. Create a load balancer pool.
        Parameters:
        createPoolOptions - the CreatePoolOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type Pool
      • deletePool

        public com.ibm.cloud.sdk.core.http.ServiceCall<Void> deletePool​(DeletePoolOptions deletePoolOptions)
        Delete load balancer pool. Delete a load balancer pool.
        Parameters:
        deletePoolOptions - the DeletePoolOptions containing the options for the call
        Returns:
        a ServiceCall with a void result
      • getPool

        public com.ibm.cloud.sdk.core.http.ServiceCall<Pool> getPool​(GetPoolOptions getPoolOptions)
        Get load balancer pool. Get details of a load balancer pool.
        Parameters:
        getPoolOptions - the GetPoolOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type Pool
      • updatePool

        public com.ibm.cloud.sdk.core.http.ServiceCall<Pool> updatePool​(UpdatePoolOptions updatePoolOptions)
        Update load balancer pool. Update the properties of a load balancer pool.
        Parameters:
        updatePoolOptions - the UpdatePoolOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type Pool
      • listMonitors

        public com.ibm.cloud.sdk.core.http.ServiceCall<ListMonitors> listMonitors​(ListMonitorsOptions listMonitorsOptions)
        List load balancer monitors. List the load balancer monitors.
        Parameters:
        listMonitorsOptions - the ListMonitorsOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type ListMonitors
      • createMonitor

        public com.ibm.cloud.sdk.core.http.ServiceCall<Monitor> createMonitor​(CreateMonitorOptions createMonitorOptions)
        Create load balancer monitor. Create a load balancer monitor.
        Parameters:
        createMonitorOptions - the CreateMonitorOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type Monitor
      • deleteMonitor

        public com.ibm.cloud.sdk.core.http.ServiceCall<Void> deleteMonitor​(DeleteMonitorOptions deleteMonitorOptions)
        Delete load balancer monitor. Delete a load balancer monitor.
        Parameters:
        deleteMonitorOptions - the DeleteMonitorOptions containing the options for the call
        Returns:
        a ServiceCall with a void result
      • getMonitor

        public com.ibm.cloud.sdk.core.http.ServiceCall<Monitor> getMonitor​(GetMonitorOptions getMonitorOptions)
        Get load balancer monitor. Get details of a load balancer monitor.
        Parameters:
        getMonitorOptions - the GetMonitorOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type Monitor
      • updateMonitor

        public com.ibm.cloud.sdk.core.http.ServiceCall<Monitor> updateMonitor​(UpdateMonitorOptions updateMonitorOptions)
        Update load balancer monitor. Update the properties of a load balancer monitor.
        Parameters:
        updateMonitorOptions - the UpdateMonitorOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type Monitor
      • deleteCustomResolver

        public com.ibm.cloud.sdk.core.http.ServiceCall<Void> deleteCustomResolver​(DeleteCustomResolverOptions deleteCustomResolverOptions)
        Delete a custom resolver. Delete a custom resolver.
        Parameters:
        deleteCustomResolverOptions - the DeleteCustomResolverOptions containing the options for the call
        Returns:
        a ServiceCall with a void result
      • updateCrLocationsOrder

        public com.ibm.cloud.sdk.core.http.ServiceCall<CustomResolver> updateCrLocationsOrder​(UpdateCrLocationsOrderOptions updateCrLocationsOrderOptions)
        Update the locations order of a custom resolver. Update the locations order of a custom resolver.
        Parameters:
        updateCrLocationsOrderOptions - the UpdateCrLocationsOrderOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type CustomResolver
      • addCustomResolverLocation

        public com.ibm.cloud.sdk.core.http.ServiceCall<Location> addCustomResolverLocation​(AddCustomResolverLocationOptions addCustomResolverLocationOptions)
        Add custom resolver location. Add custom resolver location.
        Parameters:
        addCustomResolverLocationOptions - the AddCustomResolverLocationOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type Location
      • updateCustomResolverLocation

        public com.ibm.cloud.sdk.core.http.ServiceCall<Location> updateCustomResolverLocation​(UpdateCustomResolverLocationOptions updateCustomResolverLocationOptions)
        Update custom resolver location. Update custom resolver location.
        Parameters:
        updateCustomResolverLocationOptions - the UpdateCustomResolverLocationOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type Location
      • deleteCustomResolverLocation

        public com.ibm.cloud.sdk.core.http.ServiceCall<Void> deleteCustomResolverLocation​(DeleteCustomResolverLocationOptions deleteCustomResolverLocationOptions)
        Delete custom resolver location. Delete custom resolver location.
        Parameters:
        deleteCustomResolverLocationOptions - the DeleteCustomResolverLocationOptions containing the options for the call
        Returns:
        a ServiceCall with a void result
      • createForwardingRule

        public com.ibm.cloud.sdk.core.http.ServiceCall<ForwardingRule> createForwardingRule​(CreateForwardingRuleOptions createForwardingRuleOptions)
        Create a forwarding rule. Create a forwarding rule for the given custom resolver.
        Parameters:
        createForwardingRuleOptions - the CreateForwardingRuleOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type ForwardingRule
      • deleteForwardingRule

        public com.ibm.cloud.sdk.core.http.ServiceCall<Void> deleteForwardingRule​(DeleteForwardingRuleOptions deleteForwardingRuleOptions)
        Delete a forwarding rule. Delete a forwarding rule on the given custom resolver.
        Parameters:
        deleteForwardingRuleOptions - the DeleteForwardingRuleOptions containing the options for the call
        Returns:
        a ServiceCall with a void result
      • getForwardingRule

        public com.ibm.cloud.sdk.core.http.ServiceCall<ForwardingRule> getForwardingRule​(GetForwardingRuleOptions getForwardingRuleOptions)
        Get a forwarding rule. Get details of a forwarding rule on the given custom resolver.
        Parameters:
        getForwardingRuleOptions - the GetForwardingRuleOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type ForwardingRule
      • updateForwardingRule

        public com.ibm.cloud.sdk.core.http.ServiceCall<ForwardingRule> updateForwardingRule​(UpdateForwardingRuleOptions updateForwardingRuleOptions)
        Update a forwarding rule. Update the properties of a forwarding rule on the given custom resolver.
        Parameters:
        updateForwardingRuleOptions - the UpdateForwardingRuleOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type ForwardingRule
      • createSecondaryZone

        public com.ibm.cloud.sdk.core.http.ServiceCall<SecondaryZone> createSecondaryZone​(CreateSecondaryZoneOptions createSecondaryZoneOptions)
        Create a secondary zone. Create a secondary zone for the custom resolver.
        Parameters:
        createSecondaryZoneOptions - the CreateSecondaryZoneOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type SecondaryZone
      • getSecondaryZone

        public com.ibm.cloud.sdk.core.http.ServiceCall<SecondaryZone> getSecondaryZone​(GetSecondaryZoneOptions getSecondaryZoneOptions)
        Get a secondary zone. Get details of a secondary zone for the custom resolver.
        Parameters:
        getSecondaryZoneOptions - the GetSecondaryZoneOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type SecondaryZone
      • updateSecondaryZone

        public com.ibm.cloud.sdk.core.http.ServiceCall<SecondaryZone> updateSecondaryZone​(UpdateSecondaryZoneOptions updateSecondaryZoneOptions)
        Update a secondary zone. Update a secondary zone for the custom resolver.
        Parameters:
        updateSecondaryZoneOptions - the UpdateSecondaryZoneOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type SecondaryZone
      • deleteSecondaryZone

        public com.ibm.cloud.sdk.core.http.ServiceCall<Void> deleteSecondaryZone​(DeleteSecondaryZoneOptions deleteSecondaryZoneOptions)
        Delete a secondary zone. Delete a secondary zone for the custom resolver.
        Parameters:
        deleteSecondaryZoneOptions - the DeleteSecondaryZoneOptions containing the options for the call
        Returns:
        a ServiceCall with a void result
      • getLinkedZone

        public com.ibm.cloud.sdk.core.http.ServiceCall<LinkedDnszone> getLinkedZone​(GetLinkedZoneOptions getLinkedZoneOptions)
        Get a linked zone. Get details of a linked zone.
        Parameters:
        getLinkedZoneOptions - the GetLinkedZoneOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type LinkedDnszone
      • updateLinkedZone

        public com.ibm.cloud.sdk.core.http.ServiceCall<LinkedDnszone> updateLinkedZone​(UpdateLinkedZoneOptions updateLinkedZoneOptions)
        Update the properties of a linked zone. Update the properties of a linked zone.
        Parameters:
        updateLinkedZoneOptions - the UpdateLinkedZoneOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type LinkedDnszone
      • deleteLinkedZone

        public com.ibm.cloud.sdk.core.http.ServiceCall<Void> deleteLinkedZone​(DeleteLinkedZoneOptions deleteLinkedZoneOptions)
        Delete a linked zone. Delete a linked zone.
        Parameters:
        deleteLinkedZoneOptions - the DeleteLinkedZoneOptions containing the options for the call
        Returns:
        a ServiceCall with a void result