Skip to content

Commit bd18136

Browse files
committed
Add trustedAccessRoles and trustedAccessRoleBindings into Microsoft.ContainerService 2023-09-01 api
1 parent f06a380 commit bd18136

6 files changed

Lines changed: 571 additions & 0 deletions

File tree

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-09-01",
4+
"subscriptionId": "subid1",
5+
"resourceGroupName": "rg1",
6+
"resourceName": "clustername1",
7+
"trustedAccessRoleBindingName": "binding1",
8+
"trustedAccessRoleBinding": {
9+
"properties": {
10+
"sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/b/providers/Microsoft.MachineLearningServices/workspaces/c",
11+
"roles": [
12+
"Microsoft.MachineLearningServices/workspaces/reader",
13+
"Microsoft.MachineLearningServices/workspaces/writer"
14+
]
15+
}
16+
}
17+
},
18+
"responses": {
19+
"200": {
20+
"body": {
21+
"id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/trustedAccessRoleBindings/binding1",
22+
"type": "Microsoft.ContainerService/managedClusters/trustedAccessRoleBindings",
23+
"name": "binding1",
24+
"properties": {
25+
"sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/b/providers/Microsoft.MachineLearningServices/workspaces/c",
26+
"roles": [
27+
"Microsoft.MachineLearningServices/workspaces/reader",
28+
"Microsoft.MachineLearningServices/workspaces/writer"
29+
]
30+
}
31+
}
32+
},
33+
"201": {
34+
"body": {
35+
"id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/trustedAccessRoleBindings/binding1",
36+
"type": "Microsoft.ContainerService/managedClusters/trustedAccessRoleBindings",
37+
"name": "binding1",
38+
"properties": {
39+
"sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/b/providers/Microsoft.MachineLearningServices/workspaces/c",
40+
"roles": [
41+
"Microsoft.MachineLearningServices/workspaces/reader",
42+
"Microsoft.MachineLearningServices/workspaces/writer"
43+
]
44+
}
45+
}
46+
}
47+
}
48+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-09-01",
4+
"subscriptionId": "subid1",
5+
"resourceGroupName": "rg1",
6+
"resourceName": "clustername1",
7+
"trustedAccessRoleBindingName": "binding1"
8+
},
9+
"responses": {
10+
"202": {
11+
"headers": {
12+
"location": "https://management.azure.com/subscriptions/subid1/providers/Microsoft.ContainerService/locations/eastus/operationresults/00000000-0000-0000-0000-000000000000?api-version=2017-08-31"
13+
}
14+
},
15+
"204": {}
16+
}
17+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-09-01",
4+
"subscriptionId": "subid1",
5+
"resourceGroupName": "rg1",
6+
"resourceName": "clustername1",
7+
"trustedAccessRoleBindingName": "binding1"
8+
},
9+
"responses": {
10+
"200": {
11+
"body": {
12+
"id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/trustedAccessRoleBindings/binding1",
13+
"type": "Microsoft.ContainerService/managedClusters/trustedAccessRoleBindings",
14+
"name": "binding1",
15+
"properties": {
16+
"sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/b/providers/Microsoft.MachineLearningServices/workspaces/c",
17+
"roles": [
18+
"Microsoft.MachineLearningServices/workspaces/reader",
19+
"Microsoft.MachineLearningServices/workspaces/writer"
20+
]
21+
}
22+
}
23+
}
24+
}
25+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-09-01",
4+
"subscriptionId": "subid1",
5+
"resourceGroupName": "rg1",
6+
"resourceName": "clustername1"
7+
},
8+
"responses": {
9+
"200": {
10+
"body": {
11+
"value": [
12+
{
13+
"id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/trustedAccessRoleBindings/binding1",
14+
"type": "Microsoft.ContainerService/managedClusters/trustedAccessRoleBindings",
15+
"name": "binding1",
16+
"properties": {
17+
"sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/b/providers/Microsoft.MachineLearningServices/workspaces/c",
18+
"roles": [
19+
"Microsoft.MachineLearningServices/workspaces/reader",
20+
"Microsoft.MachineLearningServices/workspaces/writer"
21+
]
22+
}
23+
}
24+
]
25+
}
26+
}
27+
}
28+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"parameters": {
3+
"api-version": "2023-09-01",
4+
"subscriptionId": "subid1",
5+
"location": "westus2"
6+
},
7+
"responses": {
8+
"200": {
9+
"body": {
10+
"value": [
11+
{
12+
"sourceResourceType": "Microsoft.MachineLearningServices/workspaces",
13+
"name": "reader",
14+
"rules": [
15+
{
16+
"verbs": [
17+
"get"
18+
],
19+
"apiGroups": [
20+
""
21+
],
22+
"resources": [
23+
"pods"
24+
],
25+
"resourceNames": [],
26+
"nonResourceURLs": []
27+
}
28+
]
29+
}
30+
]
31+
}
32+
}
33+
}
34+
}

0 commit comments

Comments
 (0)