PolicyRequest
- Print
- PDF
PolicyRequest
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
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
|
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
|
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
|
protocol | String | - | Protocol
|
thresholdFail | Long | - | Failure threshold
|
thresholdNormal | Long | - | Normal threshold
|
Was this article helpful?