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

  • HOME
  • 提供API一覧
  • assignToLoadBalancerRule

assignToLoadBalancerRule

処理概要

標準ロードバランサーに仮想サーバを割り当てます

 

注意事項

・任意のドメインのidとvirtualmachineidsを指定してください。
idは正しく指定してください。(誤ったidを指定してもエラー応答が返らず、設定は反映されません。)

 

リクエスト

・リクエストパラメータ

Parameter Name Description Required
id the ID of the load balancer rule true
virtualmachineids the list of IDs of the virtual machine that are being assigned to the load balancer rule(i.e. virtualMachineIds=1,2,3) true

 

・リクエストサンプル

$ ./kick_api.sh command=assignToLoadBalancerRule id=10c00c09-8e47-499b-85c8-f6eb29f46c8e virtualmachineids=14aa749d-bd33-4a55-a441-e1d4126f2633

 

レスポンス

・レスポンスボディ

Response Name Description
displaytext any text associated with the success or failure
success true if operation is executed successfully

 

・レスポンスサンプル

【API実行結果】
<?xml version=”1.0″ encoding=”UTF-8″?>
<assigntoloadbalancerruleresponse cloud-stack-version=”4.3.0.2″>
<jobid>2f2f156e-f628-4c8b-950c-b4ae6d7559ee</jobid>
</assigntoloadbalancerruleresponse>

 

【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.AssignToLoadBalancerRuleCmd</cmd>
<jobstatus>1</jobstatus>
<jobprocstatus>0</jobprocstatus>
<jobresultcode>0</jobresultcode>
<jobresulttype>object</jobresulttype>
<jobresult>
<success>true</success>
</jobresult>
<created>2016-08-22T10:32:27+0900</created>
<jobid>2f2f156e-f628-4c8b-950c-b4ae6d7559ee</jobid>
</queryasyncjobresultresponse>

提供API一覧

2024/04/23 2024/04/23