Επεξεργασία

Update cloudPcPool

Namespace: microsoft.graph

Important

APIs under the /beta version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.

Update the properties of a cloudPcPool object.

Permissions

Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.

Permission type Least privileged permissions Higher privileged permissions
Delegated (work or school account) CloudPC.ReadWrite.All Not available.
Delegated (personal Microsoft account) Not supported. Not supported.
Application CloudPC.ReadWrite.All Not available.

HTTP request

PATCH /deviceManagement/virtualEndpoint/cloudPcPools/{cloudPcPool-id}

Request headers

Name Description
Authorization Bearer {token}. Required. Learn more about authentication and authorization.
Content-Type application/json. Required.

Request body

You must specify the @odata.type property and the value of the cloudPcPool object type to update. For example, "@odata.type": "#microsoft.graph.cloudPcAgentPool".

The following table lists the properties that can be updated for a cloudPcPool.

Property Type Description
@odata.type String The type of the cloud PC pool to update. Required.
billingConfiguration cloudPcAgentPoolBillingConfiguration The billing configuration for the agent pool, including billing type and billing plan identifier.
capabilities cloudPcPoolCapabilityConfiguration The capabilities configuration for the pool, including single sign-on settings.
cloudPcConfiguration cloudPcConfiguration The Cloud PC specification, including image and operating system locale settings for provisioning.
description String The description of the pool. The maximum length is 512 characters.
displayName String The display name of the pool. The name is unique across Cloud PC pools in an organization. The maximum length is 60 characters.
scalingPolicy cloudPcAgentPoolScalingPolicy The scaling policy defining minimum and maximum Cloud PC counts for the pool.

Response

If successful, this method returns a 204 No Content response code.

Examples

Request

The following example shows a request.

PATCH https://graph.microsoft.com/beta/deviceManagement/virtualEndpoint/cloudPcPools/a1b2c3d4-e5f6-7890-abcd-ef1234567890
Content-Type: application/json

{
  "@odata.type": "#microsoft.graph.cloudPcAgentPool",
  "displayName": "Contoso Development Pool Updated",
  "description": "Contoso Development Pool Description Updated"
}

Response

The following example shows the response.

HTTP/1.1 204 No Content