KDDIクラウドプラットフォームサービス ナレッジサイト

  • HOME
  • 提供API一覧
  • updateLoadBalancerRule

updateLoadBalancerRule

処理概要

標準ロードバランサー設定を更新

 

注意事項

・algorithmに誤った設定を行った場合は、設定は反映されません。(APIの実行結果は反映されたように見えます。)

 

リクエスト

・リクエストパラメータ

Parameter Name Description Required
id the ID of the load balancer rule to update true
algorithm load balancer algorithm (source, roundrobin, leastconn) true
name the name of the load balancer rule false

 

・リクエストサンプル

$ ./kick_api.sh    command=updateLoadBalancerRule id=10c00c09-8e47-499b-85c8-f6eb29f46c8e algorithm=leastconn

 

レスポンス

・レスポンスボディ

Response Name Description
id the load balancer rule ID
account the account of the load balancer rule
algorithm the load balancer algorithm (source, roundrobin, leastconn)
cidrlist the cidr list to forward traffic from
description the description of the load balancer
domain the domain of the load balancer rule
domainid the domain ID of the load balancer rule
fordisplay is rule for display to the regular user
name the name of the load balancer
networkid the id of the guest network the lb rule belongs to
privateport the private port
project the project name of the load balancer
projectid the project id of the load balancer
protocol the protocol of the loadbalanacer rule
publicip the public ip address
publicipid the public ip address id
publicport the public port
state the state of the rule
zoneid the id of the zone the rule belongs to
tags(*) the list of resource tags associated with load balancer
account the account associated with the tag
customer customer associated with the tag
domain the domain associated with the tag
domainid the ID of the domain associated with the tag
key tag key name
project the project name where tag belongs to
projectid the project id the tag belongs to
resourceid id of the resource
resourcetype resource type
value tag value

 

・レスポンスサンプル

【API実行結果】
<?xml version=”1.0″ encoding=”UTF-8″?>
<updateloadbalancerruleresponse cloud-stack-version=”4.3.0.2″>
<jobid>63b5c5ac-6cc3-41a2-8e6e-07eeec71750f</jobid>
</updateloadbalancerruleresponse>

 

【queryAsyncJobResultでの確認結果】
<?xml version=”1.0″ encoding=”UTF-8″?>
<queryasyncjobresultresponse cloud-stack-version=”4.3.0.2″>
<accountid>d344caf5-24dc-4194-ac5f-2d78d5e38039</accountid>
<userid>0212ea46-0529-4250-9e3e-bcb03c114002</userid>
<cmd>org.apache.cloudstack.api.command.user.loadbalancer.UpdateLoadBalancerRuleCmd</cmd>
<jobstatus>1</jobstatus>
<jobprocstatus>0</jobprocstatus>
<jobresultcode>0</jobresultcode>
<jobresulttype>object</jobresulttype>
<jobresult>
<loadbalancer>
<id>10c00c09-8e47-499b-85c8-f6eb29f46c8e</id>
<name>test1</name>
<publicipid>23897133-7ec2-4719-abec-a1990c183be0</publicipid>
<publicip>27.XXX.XXX.16</publicip>
<publicport>1002</publicport>
<privateport>1000</privateport>
<algorithm>leastconn</algorithm>
<networkid>dfab0cf8-c56f-437c-9816-14e47d127235</networkid>
<cidrlist/>
<account>xxxx</account>
<domainid>57edb9da-0279-45f0-842a-d768c4ed0d47</domainid>
<domain>MXXXXXXXX</domain>
<state>Add</state>
<zoneid>7d4b9647-356d-49a8-8e1a-28862b9c9082</zoneid>
</loadbalancer>
</jobresult>
<created>2016-09-22T11:45:16+0900</created>
<jobid>63b5c5ac-6cc3-41a2-8e6e-07eeec71750f</jobid>
</queryasyncjobresultresponse>

提供API一覧

2024/09/15 2024/09/15