-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SRP] Add Support for File Service and File Shares (#6892)
* copy from private repo * fix responses * fix readme * fix list fileservices * Use cors definition from blob.json
- Loading branch information
1 parent
1cf8be8
commit 153962d
Showing
10 changed files
with
1,047 additions
and
0 deletions.
There are no files selected for viewing
81 changes: 81 additions & 0 deletions
81
...torage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/FileServicesGet.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "res4410", | ||
"accountName": "sto8607", | ||
"FileServicesName": "default", | ||
"api-version": "2019-04-01", | ||
"monitor": "true" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/res4410/providers/Microsoft.Storage/storageAccounts/sto8607/fileServices/default", | ||
"name": "default", | ||
"type": "Microsoft.Storage/storageAccounts/fileServices", | ||
"properties": { | ||
"cors": { | ||
"corsRules": [{ | ||
"allowedOrigins": [ | ||
"http://www.contoso.com", | ||
"http://www.fabrikam.com" | ||
], | ||
"allowedMethods": [ | ||
"GET", | ||
"HEAD", | ||
"POST", | ||
"OPTIONS", | ||
"MERGE", | ||
"PUT" | ||
], | ||
"maxAgeInSeconds": 100, | ||
"exposedHeaders": [ | ||
"x-ms-meta-*" | ||
], | ||
"allowedHeaders": [ | ||
"x-ms-meta-abc", | ||
"x-ms-meta-data*", | ||
"x-ms-meta-target*" | ||
] | ||
}, | ||
{ | ||
"allowedOrigins": [ | ||
"*" | ||
], | ||
"allowedMethods": [ | ||
"GET" | ||
], | ||
"maxAgeInSeconds": 2, | ||
"exposedHeaders": [ | ||
"*" | ||
], | ||
"allowedHeaders": [ | ||
"*" | ||
] | ||
}, | ||
{ | ||
"allowedOrigins": [ | ||
"http://www.abc23.com", | ||
"https://www.fabrikam.com/*" | ||
], | ||
"allowedMethods": [ | ||
"GET", | ||
"PUT" | ||
], | ||
"maxAgeInSeconds": 2000, | ||
"exposedHeaders": [ | ||
"x-ms-meta-abc", | ||
"x-ms-meta-data*", | ||
"x-ms-meta-target*" | ||
], | ||
"allowedHeaders": [ | ||
"x-ms-meta-12345675754564*" | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
85 changes: 85 additions & 0 deletions
85
...orage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/FileServicesList.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "res9290", | ||
"accountName": "sto1590", | ||
"api-version": "2019-04-01", | ||
"monitor": "true" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/res4410/providers/Microsoft.Storage/storageAccounts/sto8607/fileServices/default", | ||
"name": "default", | ||
"type": "Microsoft.Storage/storageAccounts/fileServices", | ||
"properties": { | ||
"cors": { | ||
"corsRules": [ | ||
{ | ||
"allowedOrigins": [ | ||
"http://www.contoso.com", | ||
"http://www.fabrikam.com" | ||
], | ||
"allowedMethods": [ | ||
"GET", | ||
"HEAD", | ||
"POST", | ||
"OPTIONS", | ||
"MERGE", | ||
"PUT" | ||
], | ||
"maxAgeInSeconds": 100, | ||
"exposedHeaders": [ | ||
"x-ms-meta-*" | ||
], | ||
"allowedHeaders": [ | ||
"x-ms-meta-abc", | ||
"x-ms-meta-data*", | ||
"x-ms-meta-target*" | ||
] | ||
}, | ||
{ | ||
"allowedOrigins": [ | ||
"*" | ||
], | ||
"allowedMethods": [ | ||
"GET" | ||
], | ||
"maxAgeInSeconds": 2, | ||
"exposedHeaders": [ | ||
"*" | ||
], | ||
"allowedHeaders": [ | ||
"*" | ||
] | ||
}, | ||
{ | ||
"allowedOrigins": [ | ||
"http://www.abc23.com", | ||
"https://www.fabrikam.com/*" | ||
], | ||
"allowedMethods": [ | ||
"GET", | ||
"PUT" | ||
], | ||
"maxAgeInSeconds": 2000, | ||
"exposedHeaders": [ | ||
"x-ms-meta-abc", | ||
"x-ms-meta-data*", | ||
"x-ms-meta-target*" | ||
], | ||
"allowedHeaders": [ | ||
"x-ms-meta-12345675754564*" | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
145 changes: 145 additions & 0 deletions
145
...torage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/FileServicesPut.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,145 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "res4410", | ||
"accountName": "sto8607", | ||
"FileServicesName": "default", | ||
"api-version": "2019-04-01", | ||
"monitor": "true", | ||
"parameters": { | ||
"properties": { | ||
"cors": { | ||
"corsRules": [{ | ||
"allowedOrigins": [ | ||
"http://www.contoso.com", | ||
"http://www.fabrikam.com" | ||
], | ||
"allowedMethods": [ | ||
"GET", | ||
"HEAD", | ||
"POST", | ||
"OPTIONS", | ||
"MERGE", | ||
"PUT" | ||
], | ||
"maxAgeInSeconds": 100, | ||
"exposedHeaders": [ | ||
"x-ms-meta-*" | ||
], | ||
"allowedHeaders": [ | ||
"x-ms-meta-abc", | ||
"x-ms-meta-data*", | ||
"x-ms-meta-target*" | ||
] | ||
}, | ||
{ | ||
"allowedOrigins": [ | ||
"*" | ||
], | ||
"allowedMethods": [ | ||
"GET" | ||
], | ||
"maxAgeInSeconds": 2, | ||
"exposedHeaders": [ | ||
"*" | ||
], | ||
"allowedHeaders": [ | ||
"*" | ||
] | ||
}, | ||
{ | ||
"allowedOrigins": [ | ||
"http://www.abc23.com", | ||
"https://www.fabrikam.com/*" | ||
], | ||
"allowedMethods": [ | ||
"GET", | ||
"PUT" | ||
], | ||
"maxAgeInSeconds": 2000, | ||
"exposedHeaders": [ | ||
"x-ms-meta-abc", | ||
"x-ms-meta-data*", | ||
"x-ms-meta-target*" | ||
], | ||
"allowedHeaders": [ | ||
"x-ms-meta-12345675754564*" | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/res4410/providers/Microsoft.Storage/storageAccounts/sto8607/fileServices/default", | ||
"name": "default", | ||
"type": "Microsoft.Storage/storageAccounts/fileServices", | ||
"properties": { | ||
"cors": { | ||
"corsRules": [{ | ||
"allowedOrigins": [ | ||
"http://www.contoso.com", | ||
"http://www.fabrikam.com" | ||
], | ||
"allowedMethods": [ | ||
"GET", | ||
"HEAD", | ||
"POST", | ||
"OPTIONS", | ||
"MERGE", | ||
"PUT" | ||
], | ||
"maxAgeInSeconds": 100, | ||
"exposedHeaders": [ | ||
"x-ms-meta-*" | ||
], | ||
"allowedHeaders": [ | ||
"x-ms-meta-abc", | ||
"x-ms-meta-data*", | ||
"x-ms-meta-target*" | ||
] | ||
}, | ||
{ | ||
"allowedOrigins": [ | ||
"*" | ||
], | ||
"allowedMethods": [ | ||
"GET" | ||
], | ||
"maxAgeInSeconds": 2, | ||
"exposedHeaders": [ | ||
"*" | ||
], | ||
"allowedHeaders": [ | ||
"*" | ||
] | ||
}, | ||
{ | ||
"allowedOrigins": [ | ||
"http://www.abc23.com", | ||
"https://www.fabrikam.com/*" | ||
], | ||
"allowedMethods": [ | ||
"GET", | ||
"PUT" | ||
], | ||
"maxAgeInSeconds": 2000, | ||
"exposedHeaders": [ | ||
"x-ms-meta-abc", | ||
"x-ms-meta-data*", | ||
"x-ms-meta-target*" | ||
], | ||
"allowedHeaders": [ | ||
"x-ms-meta-12345675754564*" | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...orage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/FileSharesDelete.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "res4079", | ||
"accountName": "sto4506", | ||
"shareName": "share9689", | ||
"api-version": "2019-04-01", | ||
"monitor": "true" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
.../storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/FileSharesGet.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "res9871", | ||
"accountName": "sto6217", | ||
"shareName": "share1634", | ||
"api-version": "2019-04-01", | ||
"monitor": "true" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/res9871/providers/Microsoft.Storage/storageAccounts/sto6217/fileServices/default/shares/share1634", | ||
"name": "share1634", | ||
"type": "Microsoft.Storage/storageAccounts/fileServices/shares", | ||
"etag": "\"0x8D592D74CC20EBA\"", | ||
"properties": { | ||
"lastModifiedTime": "2019-05-26T05:06:14Z", | ||
"shareQuota": 1024 | ||
} | ||
} | ||
} | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
...storage/resource-manager/Microsoft.Storage/stable/2019-04-01/examples/FileSharesList.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "res9290", | ||
"accountName": "sto1590", | ||
"api-version": "2019-04-01", | ||
"monitor": "true" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/res9290/providers/Microsoft.Storage/storageAccounts/sto1590/fileServices/default/shares/share1644", | ||
"name": "share1644", | ||
"type": "Microsoft.Storage/storageAccounts/fileServices/shares", | ||
"etag": "\"0x8D589847D51C7DE\"", | ||
"properties": { | ||
"lastModifiedTime": "2019-05-14T08:20:47Z", | ||
"shareQuota": 1024 | ||
} | ||
}, | ||
{ | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/res9290/providers/Microsoft.Storage/storageAccounts/sto1590/fileServices/default/shares/share4052", | ||
"name": "share4052", | ||
"type": "Microsoft.Storage/storageAccounts/fileServices/shares", | ||
"etag": "\"0x8D589847DAB5AF9\"", | ||
"properties": { | ||
"lastModifiedTime": "2019-05-14T08:20:47Z", | ||
"shareQuota": 1024 | ||
} | ||
} | ||
], | ||
"nextLink": "https://sto1590endpoint/subscriptions/{subscription-id}/resourceGroups/res9290/providers/Microsoft.Storage/storageAccounts/sto1590/fileServices/default/shares?api-version=2019-04-01&$maxpagesize=2&$skipToken=/sto1590/share5103" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.