检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
request = StopSnapshotRequest() request.cluster_id = "{cluster_id}" response = client.stop_snapshot(request)
UpdateInstanceRequest request = new UpdateInstanceRequest(); request.withClusterId("{cluster_id}"); request.withInstanceId("{instance_id}");
"number_of_shards": 1, # 索引分片数,根据实际需求设置 "number_of_replicas": 0, # 索引副本数,根据实际需求设置 } }, "mappings":
"number_of_shards": 1, # 索引分片数,根据实际需求设置 "number_of_replicas": 0, # 索引副本数,根据实际需求设置 } }, "mappings":
request = ShowElbDetailRequest() request.cluster_id = "{cluster_id}" response = client.show_elb_detail(request)
build(); UpdateExtendClusterRequest request = new UpdateExtendClusterRequest(); request.withClusterId("{cluster_id}"); ExtendClusterReq
build() try: request = ChangeModeRequest() request.cluster_id = "{cluster_id}" request.body = ChangeModeReq(
Length的请求信息。 412 Precondition Failed 未满足前提条件,服务器未满足请求者在请求中设置的其中一个前提条件。 413 Request Entity Too Large 由于请求的实体过大,服务器无法处理,因此拒绝请求。为防止客户端的连续请求,服务器
request = DeleteClusterRequest() request.cluster_id = "{cluster_id}" response = client.delete_cluster(request)
try: request = UpdateOndemandClusterToPeriodRequest() request.cluster_id = "{cluster_id}" request.body = PeriodReq(
request = UpgradeDetailRequest() request.cluster_id = "{cluster_id}" response = client.upgrade_detail(request)
build(); ListClustersTagsRequest request = new ListClustersTagsRequest(); request.withResourceType("{resource_type}");
request = RestartClusterRequest() request.cluster_id = "{cluster_id}" response = client.restart_cluster(request)
request = ShowIkThesaurusRequest() request.cluster_id = "{cluster_id}" response = client.show_ik_thesaurus(request)
bandwidthSize Integer 公网带宽大小。单位:Mbit/s httpsEnable Boolean 通信加密状态。 false:未设置通信加密。 true:已设置通信加密。 authorityEnable Boolean 是否开启认证。 true:表示集群开启认证。 false:表示集群不开启认证。
request = ListSnapshotsRequest() request.cluster_id = "{cluster_id}" response = client.list_snapshots(request)
DownloadCertRequest request = new DownloadCertRequest(); try { DownloadCertResponse response = client.downloadCert(request);
RestHighLevelClient(builder); 单个请求修改:request.timeout(TimeValue.timeValueSeconds(60))。 方法二 设置RestHighLevelClient keepalive时间,建议设置到15分钟。 方法三 针对代码层面捕获异常情况,建议重试请求。
ListFlavorsRequest request = new ListFlavorsRequest(); try { ListFlavorsResponse response = client.listFlavors(request);
4及之后版本支持。 httpsEnable 否 Boolean 设置是否进行通信加密。取值范围为true或false。默认关闭通信加密功能。当httpsEnable设置为true时,authorityEnable字段需要设置为true。- true:表示集群进行通信加密。- fals