-
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.
[Storage] Add object replication policy (#8864)
* [Storage] Add object replication policy * Fix spellcheck and prettier check
- Loading branch information
Showing
8 changed files
with
648 additions
and
0 deletions.
There are no files selected for viewing
55 changes: 55 additions & 0 deletions
55
.../stable/2019-06-01/examples/StorageAccountCreateObjectReplicationPolicyOnDestination.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,55 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "res7687", | ||
"accountName": "dst112", | ||
"objectReplicationPolicyId": "default", | ||
"api-version": "2019-06-01", | ||
"monitor": "true", | ||
"properties": { | ||
"properties": { | ||
"sourceAccount": "src1122", | ||
"destinationAccount": "dst112", | ||
"rules": [ | ||
{ | ||
"sourceContainer": "scont139", | ||
"destinationContainer": "dcont139", | ||
"filters": { | ||
"prefixMatch": [ | ||
"blobA", | ||
"blobB" | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/res7687/providers/Microsoft.Storage/storageAccounts/dst112/objectReplicationPolicies/2a20bb73-5717-4635-985a-5d4cf777438f", | ||
"name": "2a20bb73-5717-4635-985a-5d4cf777438f", | ||
"type": "Microsoft.Storage/storageAccounts/objectReplicationPolicies", | ||
"properties": { | ||
"policyId": "2a20bb73-5717-4635-985a-5d4cf777438f", | ||
"sourceAccount": "src1122", | ||
"destinationAccount": "dst112", | ||
"rules": [ | ||
{ | ||
"ruleId": "d5d18a48-8801-4554-aeaa-74faf65f5ef9", | ||
"sourceContainer": "sourceContainer1", | ||
"destinationContainer": "destContainer1", | ||
"filters": { | ||
"prefixMatch": [ | ||
"blobA", | ||
"blobB" | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
59 changes: 59 additions & 0 deletions
59
...orage/stable/2019-06-01/examples/StorageAccountCreateObjectReplicationPolicyOnSource.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,59 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "res7687", | ||
"accountName": "src1122", | ||
"objectReplicationPolicyId": "2a20bb73-5717-4635-985a-5d4cf777438f", | ||
"api-version": "2019-06-01", | ||
"monitor": "true", | ||
"properties": { | ||
"properties": { | ||
"sourceAccount": "src1122", | ||
"destinationAccount": "dst112", | ||
"rules": [ | ||
{ | ||
"ruleId": "d5d18a48-8801-4554-aeaa-74faf65f5ef9", | ||
"sourceContainer": "scont139", | ||
"destinationContainer": "dcont139", | ||
"filters": { | ||
"prefixMatch": [ | ||
"blobA", | ||
"blobB" | ||
], | ||
"minCreationTime": "2020-02-19T16:05:00Z" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/res7687/providers/Microsoft.Storage/storageAccounts/src1122/objectReplicationPolicies/2a20bb73-5717-4635-985a-5d4cf777438f", | ||
"name": "2a20bb73-5717-4635-985a-5d4cf777438f", | ||
"type": "Microsoft.Storage/storageAccounts/objectReplicationPolicies", | ||
"properties": { | ||
"policyId": "2a20bb73-5717-4635-985a-5d4cf777438f", | ||
"enabledTime": "2019-06-08T03:01:55.7168089Z", | ||
"sourceAccount": "src1122", | ||
"destinationAccount": "dst112", | ||
"rules": [ | ||
{ | ||
"ruleId": "d5d18a48-8801-4554-aeaa-74faf65f5ef9", | ||
"sourceContainer": "sourceContainer1", | ||
"destinationContainer": "destContainer1", | ||
"filters": { | ||
"prefixMatch": [ | ||
"blobA", | ||
"blobB" | ||
], | ||
"minCreationTime": "2020-02-19T16:05:00Z" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
...osoft.Storage/stable/2019-06-01/examples/StorageAccountDeleteObjectReplicationPolicy.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": "res6977", | ||
"accountName": "sto2527", | ||
"objectReplicationPolicyId": "{objectReplicationPolicy-Id}", | ||
"api-version": "2019-06-01", | ||
"monitor": "true" | ||
}, | ||
"responses": { | ||
"200": {}, | ||
"204": {} | ||
} | ||
} |
47 changes: 47 additions & 0 deletions
47
...icrosoft.Storage/stable/2019-06-01/examples/StorageAccountGetObjectReplicationPolicy.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,47 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "res6977", | ||
"accountName": "sto2527", | ||
"objectReplicationPolicyId": "{objectReplicationPolicy-Id}", | ||
"api-version": "2019-06-01", | ||
"monitor": "true" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/res6977/providers/Microsoft.Storage/storageAccounts/sto2527/objectReplicationPolicies/{objectReplicationPolicy-Id}", | ||
"name": "{objectReplicationPolicy-Id}", | ||
"type": "Microsoft.Storage/storageAccounts/objectReplicationPolicies", | ||
"properties": { | ||
"policyId": "{objectReplicationPolicy-Id}", | ||
"enabledTime": "2019-06-08T03:01:55.7168089Z", | ||
"sourceAccount": "sto2527", | ||
"destinationAccount": "destAccount1", | ||
"rules": [ | ||
{ | ||
"sourceContainer": "sourceContainer1", | ||
"destinationContainer": "destContainer1", | ||
"filters": { | ||
"prefixMatch": [ | ||
"blobA", | ||
"blobB" | ||
] | ||
} | ||
}, | ||
{ | ||
"sourceContainer": "sourceContainer1", | ||
"destinationContainer": "destContainer1", | ||
"filters": { | ||
"prefixMatch": [ | ||
"blobC", | ||
"blobD" | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
35 changes: 35 additions & 0 deletions
35
...osoft.Storage/stable/2019-06-01/examples/StorageAccountListObjectReplicationPolicies.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,35 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "res6977", | ||
"accountName": "sto2527", | ||
"api-version": "2019-06-01", | ||
"monitor": "true" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ | ||
{ | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/res6977/providers/Microsoft.Storage/storageAccounts/sto2527/objectReplicationPolicies/c6c23999-fd4e-433a-bcf9-1db69d27cd8a", | ||
"name": "c6c23999-fd4e-433a-bcf9-1db69d27cd8a", | ||
"type": "Microsoft.Storage/storageAccounts/objectReplicationPolicies", | ||
"properties": { | ||
"sourceAccount": "sto2527", | ||
"destinationAccount": "destAccount1" | ||
} | ||
}, | ||
{ | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/res9290/providers/Microsoft.Storage/storageAccounts/sto1590/objectReplicationPolicies/141d23dc-8958-4b48-b6e6-5a40bf1af116", | ||
"name": "141d23dc-8958-4b48-b6e6-5a40bf1af116", | ||
"type": "Microsoft.Storage/storageAccounts/objectReplicationPolicies", | ||
"properties": { | ||
"sourceAccount": "sto2527", | ||
"destinationAccount": "destAccount2" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} |
65 changes: 65 additions & 0 deletions
65
.../stable/2019-06-01/examples/StorageAccountUpdateObjectReplicationPolicyOnDestination.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,65 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "res7687", | ||
"accountName": "dst112", | ||
"objectReplicationPolicyId": "2a20bb73-5717-4635-985a-5d4cf777438f", | ||
"api-version": "2019-06-01", | ||
"monitor": "true", | ||
"properties": { | ||
"properties": { | ||
"sourceAccount": "src1122", | ||
"destinationAccount": "dst112", | ||
"rules": [ | ||
{ | ||
"ruleId": "d5d18a48-8801-4554-aeaa-74faf65f5ef9", | ||
"sourceContainer": "scont139", | ||
"destinationContainer": "dcont139", | ||
"filters": { | ||
"prefixMatch": [ | ||
"blobA", | ||
"blobB" | ||
] | ||
} | ||
}, | ||
{ | ||
"sourceContainer": "scont179", | ||
"destinationContainer": "dcont179" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/res7687/providers/Microsoft.Storage/storageAccounts/dst112/objectReplicationPolicies/2a20bb73-5717-4635-985a-5d4cf777438f", | ||
"name": "2a20bb73-5717-4635-985a-5d4cf777438f", | ||
"type": "Microsoft.Storage/storageAccounts/objectReplicationPolicies", | ||
"properties": { | ||
"policyId": "2a20bb73-5717-4635-985a-5d4cf777438f", | ||
"sourceAccount": "src1122", | ||
"destinationAccount": "dst112", | ||
"rules": [ | ||
{ | ||
"ruleId": "d5d18a48-8801-4554-aeaa-74faf65f5ef9", | ||
"sourceContainer": "sourceContainer1", | ||
"destinationContainer": "destContainer1", | ||
"filters": { | ||
"prefixMatch": [ | ||
"blobA", | ||
"blobB" | ||
] | ||
} | ||
}, | ||
{ | ||
"ruleId": "cfbb4bc2-8b60-429f-b05a-d1e0942b33b2", | ||
"sourceContainer": "scont179", | ||
"destinationContainer": "dcont179" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
67 changes: 67 additions & 0 deletions
67
...orage/stable/2019-06-01/examples/StorageAccountUpdateObjectReplicationPolicyOnSource.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,67 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "{subscription-id}", | ||
"resourceGroupName": "res7687", | ||
"accountName": "src1122", | ||
"objectReplicationPolicyId": "2a20bb73-5717-4635-985a-5d4cf777438f", | ||
"api-version": "2019-06-01", | ||
"monitor": "true", | ||
"properties": { | ||
"properties": { | ||
"sourceAccount": "src1122", | ||
"destinationAccount": "dst112", | ||
"rules": [ | ||
{ | ||
"ruleId": "d5d18a48-8801-4554-aeaa-74faf65f5ef9", | ||
"sourceContainer": "scont139", | ||
"destinationContainer": "dcont139", | ||
"filters": { | ||
"prefixMatch": [ | ||
"blobA", | ||
"blobB" | ||
] | ||
} | ||
}, | ||
{ | ||
"ruleId": "cfbb4bc2-8b60-429f-b05a-d1e0942b33b2", | ||
"sourceContainer": "scont179", | ||
"destinationContainer": "dcont179" | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"id": "/subscriptions/{subscription-id}/resourceGroups/res7687/providers/Microsoft.Storage/storageAccounts/src1122/objectReplicationPolicies/2a20bb73-5717-4635-985a-5d4cf777438f", | ||
"name": "2a20bb73-5717-4635-985a-5d4cf777438f", | ||
"type": "Microsoft.Storage/storageAccounts/objectReplicationPolicies", | ||
"properties": { | ||
"policyId": "2a20bb73-5717-4635-985a-5d4cf777438f", | ||
"enabledTime": "2019-06-08T03:01:55.7168089Z", | ||
"sourceAccount": "src1122", | ||
"destinationAccount": "dst112", | ||
"rules": [ | ||
{ | ||
"ruleId": "d5d18a48-8801-4554-aeaa-74faf65f5ef9", | ||
"sourceContainer": "sourceContainer1", | ||
"destinationContainer": "destContainer1", | ||
"filters": { | ||
"prefixMatch": [ | ||
"blobA", | ||
"blobB" | ||
] | ||
} | ||
}, | ||
{ | ||
"ruleId": "cfbb4bc2-8b60-429f-b05a-d1e0942b33b2", | ||
"sourceContainer": "scont179", | ||
"destinationContainer": "dcont179" | ||
} | ||
] | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.