Class DnsSvcs


  • public class DnsSvcs
    extends com.ibm.cloud.sdk.core.service.BaseService
    DNS Services API.
    Version:
    v1
    • 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 a 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 a 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 a 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 the properties of a 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 a 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 a resource record. Delete a resource record.
        Parameters:
        deleteResourceRecordOptions - the DeleteResourceRecordOptions containing the options for the call
        Returns:
        a ServiceCall with a void result
      • updateResourceRecord

        public com.ibm.cloud.sdk.core.http.ServiceCall<ResourceRecord> updateResourceRecord​(UpdateResourceRecordOptions updateResourceRecordOptions)
        Update the properties of a resource record. Update the properties of a resource record.
        Parameters:
        updateResourceRecordOptions - the UpdateResourceRecordOptions containing the options for the call
        Returns:
        a ServiceCall with a result of type ResourceRecord
      • 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 a 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 a 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 a 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 the properties of a 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 a 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 a 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 a 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 the properties of a 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 a 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 a 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 a 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 the properties of a 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
      • updateCustomResolver

        public com.ibm.cloud.sdk.core.http.ServiceCall<CustomResolver> updateCustomResolver​(UpdateCustomResolverOptions updateCustomResolverOptions)
        Update the properties of a custom resolver. Update the properties of a custom resolver.
        Parameters:
        updateCustomResolverOptions - the UpdateCustomResolverOptions 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 the properties of 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