Azure / Azure/azure-rest-api-specs

Storage Table Service can not be set

Open
#11,319 4 comments 0 reactions 1 assignee Claimed by @zfchen95 View on GitHub
Service Attention Storage
Dominant language
TypeSpec
Stars
3.1k
Forks
5.9k
Avg merge
2d 22h
Merged PRs (30d)
444

Description

1. set table service:
PUT /subscriptions/.../resourceGroups/acctestAzureRMSA-201022094141182146/providers/Microsoft.Storage/storageAccounts/unlikely23exst2acct7sevj/tableServices/default?api-version=2019-06-01 HTTP/1.1
{"properties":{"cors":{"corsRules":[{"allowedOrigins":["http://www.example.com"],"allowedMethods":["GET","PUT","PATCH"],"maxAgeInSeconds":500,"exposedHeaders":["x-tempo-*"],"allowedHeaders":["x-tempo-*"]}]}}}

Response:
**Date: Thu, 22 Oct 2020 01:42:22 GMT**
Expires: -1
Pragma: no-cache
Server: Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0
Strict-Transport-Security: max-age=31536000; includeSubDomains
Vary: Accept-Encoding
X-Content-Type-Options: nosniff
X-Ms-Correlation-Request-Id: ac6d8d1a-7372-0d9f-666c-5b381ef215eb
X-Ms-Ratelimit-Remaining-Subscription-Writes: 1199
X-Ms-Request-Id: 3862f3dc-04a3-4d46-8737-cb8038f6bcd8
X-Ms-Routing-Request-Id: SOUTHEASTASIA:20201022T014222Z:aca526e7-37fa-45ee-bde1-60f63cbb2463

{"id":"/subscriptions/.../resourceGroups/acctestAzureRMSA-201022094141182146/providers/Microsoft.Storage/storageAccounts/unlikely23exst2acct7sevj/tableServices/default","name":"default","type":"Microsoft.Storage/storageAccounts/tableServices","properties":{"cors":{"corsRules":[{"allowedOrigins":["http://www.example.com"],"allowedMethods":["GET","PUT","PATCH"],"maxAgeInSeconds":500,"exposedHeaders":["x-tempo-*"],"allowedHeaders":["x-tempo-*"]}]}}}

2. Then get the service:
GET /subscriptions/.../resourceGroups/acctestAzureRMSA-201022094141182146/providers/Microsoft.Storage/storageAccounts/unlikely23exst2acct7sevj/tableServices/default?api-version=2019-06-01 HTTP/1.1

Response:
**Date: Thu, 22 Oct 2020 01:42:30 GMT**
Expires: -1
Pragma: no-cache
Server: Microsoft-Azure-Storage-Resource-Provider/1.0,Microsoft-HTTPAPI/2.0 Microsoft-HTTPAPI/2.0
Strict-Transport-Security: max-age=31536000; includeSubDomains
Vary: Accept-Encoding
X-Content-Type-Options: nosniff
X-Ms-Correlation-Request-Id: ac6d8d1a-7372-0d9f-666c-5b381ef215eb
X-Ms-Ratelimit-Remaining-Subscription-Reads: 11994
X-Ms-Request-Id: b48aa60b-98f3-41af-9a71-a4fec59e7f2b
X-Ms-Routing-Request-Id: SOUTHEASTASIA:20201022T014230Z:43c41f27-a35f-4506-ab40-27bcfbe87e17

{"id":"/subscriptions/.../resourceGroups/acctestAzureRMSA-201022094141182146/providers/Microsoft.Storage/storageAccounts/unlikely23exst2acct7sevj/tableServices/default","name":"default","type":"Microsoft.Storage/storageAccounts/tableServices","properties":{"cors":{"corsRules":[]}}}

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.