MENU
      PolicyRequest

        PolicyRequest


        Article summary

        Available in VPC

        This is a data type required when creating and editing a policy.

        Syntax

        The syntax is as follows.

        public class PolicyRequest {
            private Long sid;
            private String name;
            private Long geoMapId;
            private LoadBalancerType lbType;
            private Long geoMapId;
            private List<ResourceGroup> resourceGroups;
            private Monitor monitor;
        }
        
        
        public class ResourceGroup {
            private Long sid;
            private Long geoMapDetailId;
            private Long weighted;
            private List<Resource> active;
            private List<Resource> standby;
        }
        
        public class Resource {
            private String content;
            private Long healthCheckRegionId;
            private ResourceType type;
        }
        
        public class Monitor {
            private String hostHeader;
            private String path;
            private Long period;
            private Long port;
            private String protocol;
            private Long thresholdFail;
            private Long thresholdNormal;
        }
        Java

        Field

        The following describes the fields.

        PolicyRequest

        Parameter nameTypeRequiredDescription
        sidLong-Policy ID
        nameString-Policy Name
        geoMapIdLong-Geo/CIDR Map ID
        lbTypeEnum-Load balancer type
        • ROUND_ROBIN | WEIGHTED_ROUND_ROBIN | GEOLOCATION | CIDR
        resourceGroupsList<ResourceGroups>-Resource group information
        monitorMonitor-Health check monitoring information

        ResourceGroup

        Parameter nameTypeRequiredDescription
        sidLong-Resource group ID
        geoMapDetailIdLong-Geo/CIDR map details ID
        weightedLong-Weights used when LBType is WEIGHTED_ROUND_ROBIN
        activeList<Resource>-Active resource information
        standbyList<Resource>-Backup resource information
        monitorMonitor-Health check monitoring information

        Resource

        Parameter nameTypeRequiredDescription
        contentString-Resource value
        typeEnum-Resource type
        • PUBLIC_IP | EXTERNAL_DOMAIN
        healthCheckRegionIdLong-Health check Region ID

        Monitor

        Parameter nameTypeRequiredDescription
        hostHeaderString-Host header
        pathString-Path
        periodLong-Health check interval
        portLong-Port
        • 0 - 65535
        protocolString-Protocol
        • HTTP | HTTPS | TCP
        thresholdFailLong-Failure threshold
        • 1 (default)
        thresholdNormalLong-Normal threshold
        • 1 (default)

        Was this article helpful?

        Changing your password will log you out immediately. Use the new password to log back in.
        First name must have atleast 2 characters. Numbers and special characters are not allowed.
        Last name must have atleast 1 characters. Numbers and special characters are not allowed.
        Enter a valid email
        Enter a valid password
        Your profile has been successfully updated.