Skip to content

Commit 7b47689

Browse files
Azure Purview Policy Store Self-service Policies Spec (#21750)
* Specs for Self Service Policies * Fix Prettier * readme file changes * Resolving lint issues * Modify next link value * Address API review comments 1) Changed workflowRunId parameter to policyId 2) Changed expiryDate to expiresAt 3) ApiVerion changed from method to get from client. * Address API review comments 1) Make "principal" and "principalGroup" an array rather than a single value to be consistent with Devops policies. 2) Remove System.string from policyId to make it language agnostic.
1 parent 9eb9c45 commit 7b47689

File tree

5 files changed

+481
-0
lines changed

5 files changed

+481
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"parameters": {
3+
"Endpoint": "{endpoint}",
4+
"policyId": "0cd9373a-ca0e-43c0-81f0-b538c70109fa",
5+
"api-version": "2022-12-01-preview"
6+
},
7+
"responses": {
8+
"204": {}
9+
}
10+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"parameters": {
3+
"Endpoint": "{endpoint}",
4+
"policyId": "f218d802-81e5-482b-8e8a-e4dc1d5248da",
5+
"api-version": "2022-12-01-preview"
6+
},
7+
"responses": {
8+
"200": {
9+
"headers": {
10+
"x-ms-request-id": "8e58266a-de42-40d5-b3c4-c6a7e159cfba"
11+
},
12+
"body": {
13+
"policyId": "5b3a30f8-dee3-4a5e-bf48-feddbdf174b1",
14+
"requestor": "9cfdc02d-8af0-4061-b9c3-d117458b9c99",
15+
"decisionRule": {
16+
"effect": "Permit",
17+
"purviewRoleName": "purviewdatarole_builtin_read",
18+
"principals": [
19+
"5b3a30f8-dee3-4a5e-bf48-feddbdf174b1"
20+
],
21+
"resourceAzurePath": "/subscriptions/56bb0a7b-861d-44b0-9220-9db0dd88e798/resourceGroups/chcarpen-rg/providers/Microsoft.Sql/servers/policytestserver/databases/testDb/**"
22+
},
23+
"expiresAt": "2022-12-11T11:14:31.206941Z",
24+
"systemData": {
25+
"createdBy": "c1a5e351-772b-4c9c-b90c-1813670726d0",
26+
"createdAt": "2022-12-01T07:13:50.7253813Z",
27+
"lastModifiedBy": "c1a5e351-772b-4c9c-b90c-1813670726d0",
28+
"lastModifiedAt": "2022-12-01T07:13:50.7253813Z"
29+
}
30+
}
31+
}
32+
}
33+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{
2+
"parameters": {
3+
"Endpoint": "{endpoint}",
4+
"api-version": "2022-12-01-preview"
5+
},
6+
"responses": {
7+
"200": {
8+
"headers": {
9+
"x-ms-request-id": "8e58266a-de42-40d5-b3c4-c6a7e159cfba"
10+
},
11+
"body": {
12+
"value": [
13+
{
14+
"policyId": "64ec38a8-2c75-4aa5-89eb-b3ce3a8b27f4",
15+
"requestor": "e5cb4dde-d039-4db5-bc30-1cb4ee6cc16c",
16+
"decisionRule": {
17+
"effect": "Permit",
18+
"purviewRoleName": "purviewdatarole_builtin_read",
19+
"principals": [
20+
"5b3a30f8-dee3-4a5e-bf48-feddbdf174b1"
21+
],
22+
"resourceAzurePath": "/subscriptions/56bb0a7b-861d-44b0-9220-9db0dd88e798/resourceGroups/chcarpen-rg/providers/Microsoft.Sql/servers/policytestserver/databases/testDb/**"
23+
},
24+
"expiresAt": "2022-12-30T11:14:31.206941Z",
25+
"systemData": {
26+
"createdBy": "c1a5e351-772b-4c9c-b90c-1813670726d0",
27+
"createdAt": "2022-12-01T07:13:50.7253813Z",
28+
"lastModifiedBy": "c1a5e351-772b-4c9c-b90c-1813670726d0",
29+
"lastModifiedAt": "2022-12-01T07:13:50.7253813Z"
30+
}
31+
},
32+
{
33+
"policyId": "f218d802-81e5-482b-8e8a-e4dc1d5248da",
34+
"requestor": "9cfdc02d-8af0-4061-b9c3-d117458b9c99",
35+
"decisionRule": {
36+
"effect": "Permit",
37+
"purviewRoleName": "purviewdatarole_builtin_read",
38+
"principalGroups": [
39+
"76035d9f-b5f4-4fa0-b68f-c847b5e831e7"
40+
],
41+
"resourceAzurePath": "/subscriptions/24d273df-8743-42fe-b46b-a74c558e3045/resourceGroups/ssaranya-rg/providers/Microsoft.Storage/storageAccounts/ssaranyastorageacct/**"
42+
},
43+
"expiresAt": "2022-12-30T11:14:31.206941Z",
44+
"systemData": {
45+
"createdBy": "9cfdc02d-8af0-4061-b9c3-d117458b9c99",
46+
"createdAt": "2022-12-01T07:13:50.7253813Z",
47+
"lastModifiedBy": "9cfdc02d-8af0-4061-b9c3-d117458b9c99",
48+
"lastModifiedAt": "2022-12-01T07:13:50.7253813Z"
49+
}
50+
},
51+
{
52+
"policyId": "27da67b1-651f-4d4d-b2ed-a182d6e42880",
53+
"requestor": "9cfdc02d-8af0-4061-b9c3-d117458b9c99",
54+
"decisionRule": {
55+
"effect": "Permit",
56+
"purviewRoleName": "purviewdatarole_builtin_read",
57+
"principals": [
58+
"5b3a30f8-dee3-4a5e-bf48-feddbdf174b1"
59+
],
60+
"resourceAzurePath": "/subscriptions/56bb0a7b-861d-44b0-9220-9db0dd88e798/resourceGroups/chcarpen-rg/providers/Microsoft.Sql/servers/policytestserver/databases/testDb/**"
61+
},
62+
"expiresAt": "2022-12-30T11:14:31.206941Z",
63+
"systemData": {
64+
"createdBy": "c1a5e351-772b-4c9c-b90c-1813670726d0",
65+
"createdAt": "2022-12-01T07:13:50.7253813Z",
66+
"lastModifiedBy": "c1a5e351-772b-4c9c-b90c-1813670726d0",
67+
"lastModifiedAt": "2022-12-01T07:13:50.7253813Z"
68+
}
69+
}
70+
]
71+
}
72+
}
73+
}
74+
}

0 commit comments

Comments
 (0)