PolicyRequest

Prev Next

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;
}

Field

The following describes the fields.

PolicyRequest

Parameter name Type Required Description
sid Long - Policy ID
name String - Policy Name
geoMapId Long - Geo/CIDR Map ID
lbType Enum - Load balancer type
  • ROUND_ROBIN | WEIGHTED_ROUND_ROBIN | GEOLOCATION | CIDR
resourceGroups List<ResourceGroups> - Resource group information
monitor Monitor - Health check monitoring information

ResourceGroup

Parameter name Type Required Description
sid Long - Resource group ID
geoMapDetailId Long - Geo/CIDR map details ID
weighted Long - Weights used when LBType is WEIGHTED_ROUND_ROBIN
active List<Resource> - Active resource information
standby List<Resource> - Backup resource information
monitor Monitor - Health check monitoring information

Resource

Parameter name Type Required Description
content String - Resource value
type Enum - Resource type
  • PUBLIC_IP | EXTERNAL_DOMAIN
healthCheckRegionId Long - Health check Region ID

Monitor

Parameter name Type Required Description
hostHeader String - Host header
path String - Path
period Long - Health check interval
port Long - Port
  • 0 - 65535
protocol String - Protocol
  • HTTP | HTTPS | TCP
thresholdFail Long - Failure threshold
  • 1 (default)
thresholdNormal Long - Normal threshold
  • 1 (default)