我'm trying to create snapshots of my vm instance on google cloud platform with a custom tag, but it'目前没有按预期工作 . 我将以下Post请求正文发送给参考此文档的API Google docs

{
    "name":"<SnapshotName>",
    "labels": {
        "<LabelKey>":"<LabelValue>"
    }
}

这给了我一个积极的回应,但没有标签出现 .

{
 "kind": "compute#operation",
 "id": "<id>",
 "name": "<name>",
 "zone": "<Zone Link>",
 "operationType": "createSnapshot",
 "targetLink": "<Target Link>",
 "targetId": "<Target ID>",
 "status": "PENDING",
 "user": "<User>",
 "progress": 0,
 "insertTime": "<Time>",
 "selfLink": "<Self Link>"
}

另外我尝试使用"Labeling Resources" documentation Google Labeling Resources中描述的语法

{
    "name":"<SnapshotName>",
    "labels": [{
        "<Key>":"<LabelKey>"
        "<Value>":"<LabelValue>"
    }]
}

这给了我同样的结果 .

在Web界面中,可以创建快照并手动标记它,但我想通过API使用自定义标签创建它们 .

我做错了什么,还是只是坏了?