Skip to content

Commit

Permalink
[AKS] Add trustedAccessRoles and trustedAccessRoleBindings into Micro…
Browse files Browse the repository at this point in the history
…soft.ContainerService 2023-09-01 api (#26043)

* Add trustedAccessRoles and trustedAccessRoleBindings into Microsoft.ContainerService 2023-09-01 api

* fixup! Add trustedAccessRoles and trustedAccessRoleBindings into Microsoft.ContainerService 2023-09-01 api
  • Loading branch information
karataliu authored Oct 10, 2023
1 parent 1e35884 commit 5c8c670
Show file tree
Hide file tree
Showing 6 changed files with 572 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"parameters": {
"api-version": "2023-09-01",
"subscriptionId": "subid1",
"resourceGroupName": "rg1",
"resourceName": "clustername1",
"trustedAccessRoleBindingName": "binding1",
"trustedAccessRoleBinding": {
"properties": {
"sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/b/providers/Microsoft.MachineLearningServices/workspaces/c",
"roles": [
"Microsoft.MachineLearningServices/workspaces/reader",
"Microsoft.MachineLearningServices/workspaces/writer"
]
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/trustedAccessRoleBindings/binding1",
"type": "Microsoft.ContainerService/managedClusters/trustedAccessRoleBindings",
"name": "binding1",
"properties": {
"sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/b/providers/Microsoft.MachineLearningServices/workspaces/c",
"roles": [
"Microsoft.MachineLearningServices/workspaces/reader",
"Microsoft.MachineLearningServices/workspaces/writer"
]
}
}
},
"201": {
"body": {
"id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/trustedAccessRoleBindings/binding1",
"type": "Microsoft.ContainerService/managedClusters/trustedAccessRoleBindings",
"name": "binding1",
"properties": {
"sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/b/providers/Microsoft.MachineLearningServices/workspaces/c",
"roles": [
"Microsoft.MachineLearningServices/workspaces/reader",
"Microsoft.MachineLearningServices/workspaces/writer"
]
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"parameters": {
"api-version": "2023-09-01",
"subscriptionId": "subid1",
"resourceGroupName": "rg1",
"resourceName": "clustername1",
"trustedAccessRoleBindingName": "binding1"
},
"responses": {
"202": {
"headers": {
"location": "https://management.azure.com/subscriptions/subid1/providers/Microsoft.ContainerService/locations/eastus/operationresults/00000000-0000-0000-0000-000000000000?api-version=2017-08-31"
}
},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"parameters": {
"api-version": "2023-09-01",
"subscriptionId": "subid1",
"resourceGroupName": "rg1",
"resourceName": "clustername1",
"trustedAccessRoleBindingName": "binding1"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/trustedAccessRoleBindings/binding1",
"type": "Microsoft.ContainerService/managedClusters/trustedAccessRoleBindings",
"name": "binding1",
"properties": {
"sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/b/providers/Microsoft.MachineLearningServices/workspaces/c",
"roles": [
"Microsoft.MachineLearningServices/workspaces/reader",
"Microsoft.MachineLearningServices/workspaces/writer"
]
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"parameters": {
"api-version": "2023-09-01",
"subscriptionId": "subid1",
"resourceGroupName": "rg1",
"resourceName": "clustername1"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/subid1/resourcegroups/rg1/providers/Microsoft.ContainerService/managedClusters/clustername1/trustedAccessRoleBindings/binding1",
"type": "Microsoft.ContainerService/managedClusters/trustedAccessRoleBindings",
"name": "binding1",
"properties": {
"sourceResourceId": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/b/providers/Microsoft.MachineLearningServices/workspaces/c",
"roles": [
"Microsoft.MachineLearningServices/workspaces/reader",
"Microsoft.MachineLearningServices/workspaces/writer"
]
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"parameters": {
"api-version": "2023-09-01",
"subscriptionId": "subid1",
"location": "westus2"
},
"responses": {
"200": {
"body": {
"value": [
{
"sourceResourceType": "Microsoft.MachineLearningServices/workspaces",
"name": "reader",
"rules": [
{
"verbs": [
"get"
],
"apiGroups": [
""
],
"resources": [
"pods"
],
"resourceNames": [],
"nonResourceURLs": []
}
]
}
]
}
}
}
}
Loading

0 comments on commit 5c8c670

Please sign in to comment.