你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

用于创建存储帐户的 JSON 有效负载

请求正文 (HTTP 200) (版本 2016-01-01 及更高版本)

{
    "location": "account geo region",
    "tags": {
        "key1": "value1", 
        "key2": "value2"
    },
    "properties": {
        "customDomain": {
                "name": "user domain",
                "useSubDomainName": "true"
        },
        "encryption": {
                "services": {
                         "blob": {
                                 "enabled": true
                         }
                },
                "keySource": "Microsoft.Storage"    
        },
        "accessTier": "Cool|Hot"
    }
    "sku": {
        "name": "Standard_LRS|Standard_ZRS|Standard_GRS|Standard_RAGRS|Premium_LRS"
    },   
    "kind": "Storage|BlobStorage"
}

请求正文 (HTTP 200) (版本 2015-06-15 及更早版本)

{
    "location": "account geo region",
    "tags": {
        "key1": "value1", 
        "key2": "value2"
    },
    "properties": {
        "accountType": "Standard_LRS|Standard_ZRS|Standard_GRS|Standard_RAGRS|Premium_LRS"
    }
}

响应正文 (HTTP 200) (版本 2016-01-01 及更高版本)

对于 HTTP 200,如果使用 API 版本 2016-01-01 或更高版本,响应正文将包含完整的帐户属性。 有关完整的属性和说明集,请参阅“获取存储帐户属性”操作的“响应”部分。

{
    "id": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}",
    "name": "accountName",
    "location": "account geo region",
    "tags": {
        "key1": "value1", 
        "key2": "value2"
    },
    "type": "Microsoft.Storage/storageAccounts",
    "properties": {
        "provisioningState": "status",
        "encryption": {
	           "services": {
                "blob": {
                    "enabled": true,
                    "lastEnabledTime": dateTime
                }
            },
	           "keySource": "Microsoft.Storage"
        },
        "primaryEndpoints": {
            "blob": "blob endpoint",
            "queue": "queue endpoint",
            "table": "table endpoint",
            "file": "file endpoint"
         },
         "primaryLocation": "primary geo region",
         "statusOfPrimary": "available|unavailable",
         "lastGeoFailoverTime": "dateTime",
         "secondaryLocation": "secondary geo region",
         "statusOfSecondary": "available|unavailable",
         "secondaryEndpoints": {
            "blob": "secondary blob endpoint",
            "queue": "secondary queue endpoint",
            "table": "secondary table endpoint",
         },
         "creationTime": "dateTime",
         "customDomain": {
             "name": "user domain”
         },
         "accessTier": "Cool|Hot"
    }
    "sku": {
        "name": "Standard_LRS|Standard_ZRS|Standard_GRS|Standard_RAGRS|Premium_LRS"
        "tier": "Standard|Premium" 
    }, 
    "kind": "Storage|BlobStorage"
}

对于 HTTP 202,响应正文将为空。

响应正文 (HTTP 200) (版本 2015-06-15 及更早版本)

对于 HTTP 200,如果使用 API 版本 2015-06-15 或更早版本,响应正文将仅包含按 Azure REST 准则放置的原始请求。

{
    "location": "account geo region",
    "tags": {
      "key1": "value1", 
      "key2": "value2"
    },
    "properties": {
      "accountType": "Standard_LRS|Standard_ZRS|Standard_GRS|Standard_RAGRS|Premium_LRS"
    }
}

对于 HTTP 202,响应正文将为空。