createInstanceTags
    • PDF

    createInstanceTags

    • PDF

    Article Summary

    概要

    インスタンスタグ作成

    説明

    インスタンスタグを作成します。

    リクエストパラメータ

    パラメータ名必須タイプ制約事項説明
    instanceNoList.NYesList<String>重複不可インスタンスタグを作成するインスタンス番号リスト(サーバ限定)
    instanceTagList.N.tagKeyYesString作成する インスタンスタグリスト、タグキー
    instanceTagList.N.tagValueYesString作成する インスタンスタグリスト、タグ値

    レスポンスデータタイプ

    • InstanceTagList type
    InstanceTagList extends CommonResponse
    private Integer totalRows;
    private List instanceTagList = new ArrayList();
    InstanceTag
    private String instanceNo;
    private CommonCode instanceType;
    private String tagKey;
    private String tagValue;

    例示

    呼び出し

    ncloud server createInstanceTags --instanceNoList 712342 --instanceTagList "tagKey=penguin, tagValue=999999"
    

    レスポンス

    {
      "createInstanceTagsResponse": {
        "requestId": "2f77f4b0-86c8-49d9-8bf9-0c4988f51a47",
        "returnCode": "0",
        "returnMessage": "success",
        "totalRows": 1,
        "instanceTagList": [
          {
            "instanceNo": "712342",
            "instanceType": {
              "code": "SVR",
              "codeName": "Server"
            },
            "tagKey": "penguin2",
            "tagValue": "aaaa"
          }
        ]
      }
    }
    
    <?xml version="1.0" encoding="UTF-8" ?>
    <createInstanceTagsResponse>
      <requestId>2f77f4b0-86c8-49d9-8bf9-0c4988f51a47</requestId>
      <returnCode>0</returnCode>
      <returnMessage>success</returnMessage>
      <totalRows>1</totalRows>
      <instanceTagList>
        <instanceNo>712342</instanceNo>
        <instanceType>
          <code>SVR</code>
          <codeName>Server</codeName>
        </instanceType>
        <tagKey>penguin2</tagKey>
        <tagValue>aaaa</tagValue>
      </instanceTagList>
    </createInstanceTagsResponse>
    

    この記事は役に立ちましたか?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.