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

  • HOME
  • 提供API一覧
  • createLBStickinessPolicy

createLBStickinessPolicy

処理概要

標準ロードバランサーのスティッキー設定を作成

 

注意事項

・なし

 

リクエスト

・リクエストパラメータ

 

Parameter Name Description Required
lbruleid the ID of the load balancer rule true
methodname name of the load balancer stickiness policy method, possible values can be obtained from listNetworks API true
name name of the load balancer stickiness policy true
param param list. Example: param[0].name=cookiename&param[0].value=LBCookie false

 

・リクエストサンプル

$ ./kick_api.sh command=createLBStickinessPolicy lbruleid=10c00c09-8e47-499b-85c8-f6eb29f46c8e methodname=LbCookie name=test20

 

レスポンス

・レスポンスボディ

Response Name Description
account the account of the Stickiness policy
description the description of the Stickiness policy
domain the domain of the Stickiness policy
domainid the domain ID of the Stickiness policy
lbruleid the LB rule ID
name the name of the Stickiness policy
state the state of the policy
zoneid the id of the zone the Stickiness policy belongs to
stickinesspolicy(*) the list of stickinesspolicies
id the LB Stickiness policy ID
description the description of the Stickiness policy
fordisplay is policy for display to the regular user
methodname the method name of the Stickiness policy
name the name of the Stickiness policy
params the params of the policy
state the state of the policy

 

・レスポンスサンプル

【API実行結果】
<?xml version=”1.0″ encoding=”UTF-8″?>
<createLBStickinessPolicy cloud-stack-version=”4.3.0.2″>
<id>86671343-8481-4724-9a28-4e8bfed1115f</id>
<jobid>e0470589-cf4c-49bb-9b9d-8636741ea1dd</jobid>
</createLBStickinessPolicy>

 

【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.CreateLBStickinessPolicyCmd</cmd>
<jobstatus>1</jobstatus>
<jobprocstatus>0</jobprocstatus>
<jobresultcode>0</jobresultcode>
<jobresulttype>object</jobresulttype>
<jobresult>
<stickinesspolicies>
<lbruleid>10c00c09-8e47-499b-85c8-f6eb29f46c8e</lbruleid>
<account>kenshou02</account>
<domainid>57edb9da-0279-45f0-842a-d768c4ed0d47</domainid>
<domain>M00000002</domain>
<stickinesspolicy>
<id>86671343-8481-4724-9a28-4e8bfed1115f</id>
<name>test20</name>
<methodname>LbCookie</methodname>
<params>{}</params>
</stickinesspolicy>
</stickinesspolicies>
</jobresult>
<created>2016-09-22T11:02:15+0900</created>
<jobid>e0470589-cf4c-49bb-9b9d-8636741ea1dd</jobid>
</queryasyncjobresultresponse>

提供API一覧

2022/07/05 2022/07/05