Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add listRegistrationToken endpoint to latest stable and preview versions #29676

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3354,6 +3354,48 @@
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/listRegistrationTokens": {
"post": {
"tags": [
"HostPool"
],
"operationId": "HostPools_ListRegistrationTokens",
"description": "Operation to list the RegistrationTokens associated with the HostPool.",
"x-ms-examples": {
"HostPools_ListRegistrationToken_Post": {
"$ref": "./examples/HostPools_ListRegistrationToken_Post.json"
}
},
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/HostPoolNameParameter"
}
],
"responses": {
"200": {
"description": "Successfully retrieved host pool in resource group.",
"schema": {
"$ref": "#/definitions/RegistrationTokenList"
}
},
"default": {
"description": "Automation error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/userSessions": {
"get": {
"tags": [
Expand Down Expand Up @@ -7171,6 +7213,43 @@
}
}
},
"RegistrationTokenList": {
"type": "object",
"title": "RegistrationTokenList",
"description": "List of RegistrationToken definitions.",
"properties": {
ryanosh marked this conversation as resolved.
Show resolved Hide resolved
"value": {
"type": "array",
ryanosh marked this conversation as resolved.
Show resolved Hide resolved
"description": "List of RegistrationToken definitions.",
"items": {
"$ref": "#/definitions/RegistrationTokenMinimal"
},
"x-ms-identifiers": []
},
"nextLink": {
"type": "string",
"readOnly": true,
"description": "Link to the next page of results."
}
}
},
"RegistrationTokenMinimal": {
"description": "Represents a Minimal set of properties for RegistrationToken definition.",
"type": "object",
"properties": {
"expirationTime": {
"format": "date-time",
"type": "string",
"description": "Expiration time of registration token.",
"x-nullable": true
},
"token": {
"type": "string",
ryanosh marked this conversation as resolved.
Show resolved Hide resolved
"description": "The registration token base64 encoded string.",
"x-ms-secret": true
}
}
},
"AgentUpdateProperties": {
"description": "The session host configuration for updating agent, monitoring agent, and stack component.",
"type": "object",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"parameters": {
"subscriptionId": "daefabc0-95b4-48b3-b645-8a753a63c4fa",
"resourceGroupName": "resourceGroup1",
"hostPoolName": "hostPool1",
"api-version": "2024-04-08-preview"
},
"responses": {
"200": {
"body": {
"value": [
{
"expirationTime": "2008-09-22T14:01:54.9571247Z",
"token": "token"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2689,6 +2689,48 @@
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/listRegistrationTokens": {
ryanosh marked this conversation as resolved.
Show resolved Hide resolved
"post": {
"tags": [
"HostPool"
],
"operationId": "HostPools_ListRegistrationTokens",
"description": "Operation to list the RegistrationTokens associated with the HostPool",
"x-ms-examples": {
"HostPools_ListRegistrationToken_Post": {
"$ref": "./examples/HostPools_ListRegistrationToken_Post.json"
}
},
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v5/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "#/parameters/HostPoolNameParameter"
}
],
"responses": {
"200": {
"description": "Successfully retrieved host pool in resource group.",
"schema": {
"$ref": "#/definitions/RegistrationTokenList"
}
},
"default": {
"description": "Automation error response describing why the operation failed.",
"schema": {
"$ref": "#/definitions/CloudError"
}
}
}
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DesktopVirtualization/hostPools/{hostPoolName}/userSessions": {
"get": {
"tags": [
Expand Down Expand Up @@ -5052,6 +5094,43 @@
}
}
},
"RegistrationTokenList": {
"type": "object",
"title": "RegistrationTokenList",
"description": "List of RegistrationToken definitions.",
"properties": {
"value": {
"type": "array",
"description": "List of RegistrationToken definitions.",
"items": {
"$ref": "#/definitions/RegistrationTokenMinimal"
},
"x-ms-identifiers": []
},
"nextLink": {
"type": "string",
"readOnly": true,
"description": "Link to the next page of results."
}
}
},
"RegistrationTokenMinimal": {
"description": "Represents a Minimal set of properties for RegistrationToken definition.",
"type": "object",
"properties": {
"expirationTime": {
"format": "date-time",
"type": "string",
"description": "Expiration time of registration token.",
"x-nullable": true
},
"token": {
"type": "string",
"description": "The registration token base64 encoded string.",
"x-ms-secret": true
}
}
ryanosh marked this conversation as resolved.
Show resolved Hide resolved
},
"AgentUpdateProperties": {
"description": "The session host configuration for updating agent, monitoring agent, and stack component.",
"type": "object",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"parameters": {
"subscriptionId": "daefabc0-95b4-48b3-b645-8a753a63c4fa",
"resourceGroupName": "resourceGroup1",
"hostPoolName": "hostPool1",
"api-version": "2024-04-03"
},
"responses": {
"200": {
"body": {
"value": [
{
"expirationTime": "2008-09-22T14:01:54.9571247Z",
"token": "token"
}
]
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"value": [
{
"name": "hostpool1/expandmsiximage",
"id": "/subscriptions/daefabc0-95b4-48b3-b645-8a753a63c4fa/resourcegroups/resourceGroup1/providers/Microsoft.DesktopVirtualization/hostPools/hostpool1/expandMsixImage",
"id": "/subscriptions/daefabc0-95b4-48b3-b645-8a753a63c4fa/resourcegroups/resourceGroup1/providers/Microsoft.DesktopVirtualization/hostPools/hostpool1/expandMsixImage/msixImage",
ryanosh marked this conversation as resolved.
Show resolved Hide resolved
"type": "Microsoft.DesktopVirtualization/hostpools/expandmsiximage",
"properties": {
"packageAlias": "msixpackagealias",
Expand Down Expand Up @@ -44,7 +44,7 @@
},
{
"name": "hostpool1/expandmsiximage",
"id": "/subscriptions/daefabc0-95b4-48b3-b645-8a753a63c4fa/resourcegroups/resourceGroup1/providers/Microsoft.DesktopVirtualization/hostpools/hostpool1/expandmsiximage",
"id": "/subscriptions/daefabc0-95b4-48b3-b645-8a753a63c4fa/resourcegroups/resourceGroup1/providers/Microsoft.DesktopVirtualization/hostpools/hostpool1/expandmsiximage/msixImageURI",
"type": "Microsoft.DesktopVirtualization/hostpools/expandmsiximage",
"properties": {
"packageAlias": "msixpackagealias2",
Expand Down