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

  • HOME
  • 提供API一覧
  • listTags

listTags

処理概要

KCPS管理下のリソースに付与されているタグ情報を表示する

注意事項

特になし

リクエスト

・リクエストパラメータ

Parameter Name Description Required
isrecursive defaults to false, but if true, lists all resources from the parent specified by the domainId till leaves. false
key list by key false
keyword List by keyword false
listall If set to false, list only resources belonging to the command’s caller; if set to true – list resources that the caller is authorized to see. Default value is false false
resourceid list by resource id false
resourcetype list by resource type false
value list by value false

・リクエストサンプル

./kick_api.sh command=listTags

レスポンス

・レスポンスボディ

Response Name Description
key tag key name
value tag value
resourceid id of the resource
account the account associated with the tag
domainid the ID of the domain associated with the tag
domain the domain associated with the tag

・レスポンスサンプル

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
103 1135 103 1135 0 0 8349 0 –:–:– –:–:– –:–:– 24673
<?xml version=”1.0″ encoding=”UTF-8″?>
<listtagsresponse cloud-stack-version=”4.3.0.2″>
<count>4</count>
<tag>
<key>testkey</key>
<value>testvalue</value>
<resourcetype>VMSnapshot</resourcetype>
<resourceid>xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</resourceid>
<account>kenshou01</account>
<domainid>xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</domainid>
<domain>M00000001</domain>
</tag>
<tag>
<key>temp</key>
<value>10</value>
<resourcetype>Template</resourcetype>
<resourceid>xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</resourceid>
<account>kenshou01</account>
<domainid>xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</domainid>
<domain>ROOT</domain>
</tag>
</listtagsresponse>

提供API一覧

2024/09/15 2024/09/15