Deploymentgroups - Update
Update a deployment group.
PATCH https://dev.azure.com/{organization}/{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}?api-version=5.0-preview.1
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
deployment
|
path | True |
integer (int32) |
ID of the deployment group. |
|
organization
|
path | True |
string |
The name of the Azure DevOps organization. |
|
project
|
path | True |
string |
Project ID or project name |
|
api-version
|
query | True |
string |
Version of the API to use. This should be set to '5.0-preview.1' to use this version of the api. |
Request Body
| Name | Type | Description |
|---|---|---|
| description |
string |
Description of the deployment group. |
| name |
string |
Name of the deployment group. |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
successful operation |
Security
oauth2
Type:
oauth2
Flow:
accessCode
Authorization URL:
https://app.vssps.visualstudio.com/oauth2/authorize&response_type=Assertion
Token URL:
https://app.vssps.visualstudio.com/oauth2/token?client_assertion_type=urn:ietf:params:oauth:client-assertion-type:jwt-bearer&grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer
Scopes
| Name | Description |
|---|---|
| vso.machinegroup_manage | Provides ability to manage deployment group and agent pools |
Examples
Update a deployment group
Sample request
PATCH https://dev.azure.com/fabrikam/{project}/_apis/distributedtask/deploymentgroups/{deploymentGroupId}?api-version=5.0-preview.1
{
"name": "MyDeploymentGroup1-Update1",
"description": "Description of this deployment group is updated"
}
Sample response
{
"machineCount": 0,
"description": "Description of this deployment group is updated",
"id": 11,
"project": {
"id": "91879ed9-819b-46f3-9e0b-52ed4b20c04c",
"name": "DeploymentGroupRESTSample"
},
"name": "MyDeploymentGroup1-Update1",
"pool": {
"id": 6,
"isHosted": false,
"poolType": "deployment",
"size": 0
}
}
Definitions
| Name | Description |
|---|---|
| Demand | |
|
Deployment |
Deployment group. |
|
Deployment |
Deployment group update parameter. |
|
Deployment |
Deployment target. |
|
Identity |
|
| JObject | |
| JToken | |
|
Package |
|
|
Project |
|
|
Properties |
The class represents a property bag as a collection of key-value pairs. Values of all primitive types (any type with a |
|
Reference |
The class to represent a collection of REST reference links. |
|
Task |
|
|
Task |
Provides data necessary for authorizing the agent using OAuth 2.0 authentication flows. |
|
Task |
|
|
Task |
|
|
Task |
|
|
Task |
|
|
Task |
Gets or sets the type of the pool |
|
Task |
Represents the public key portion of an RSA asymmetric key. |
|
Task |
|
|
Task |
Gets the current connectivity status of the agent. |
|
Task |
|
|
Task |
|
|
Task |
|
|
Task |
|
|
Task |
Demand
| Name | Type | Description |
|---|---|---|
| name |
string |
|
| value |
string |
DeploymentGroup
Deployment group.
| Name | Type | Description |
|---|---|---|
| description |
string |
Description of the deployment group. |
| id |
integer (int32) |
Deployment group identifier. |
| machineCount |
integer (int32) |
Number of deployment targets in the deployment group. |
| machineTags |
string[] |
List of unique tags across all deployment targets in the deployment group. |
| machines |
List of deployment targets in the deployment group. |
|
| name |
string |
Name of the deployment group. |
| pool |
Deployment pool in which deployment agents are registered. |
|
| project |
Project to which the deployment group belongs. |
DeploymentGroupUpdateParameter
Deployment group update parameter.
| Name | Type | Description |
|---|---|---|
| description |
string |
Description of the deployment group. |
| name |
string |
Name of the deployment group. |
DeploymentMachine
Deployment target.
| Name | Type | Description |
|---|---|---|
| agent |
Deployment agent. |
|
| id |
integer (int32) |
Deployment target Identifier. |
| tags |
string[] |
Tags of the deployment target. |
IdentityRef
| Name | Type | Description |
|---|---|---|
| _links |
This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject. |
|
| descriptor |
string |
The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations. |
| directoryAlias |
string |
|
| displayName |
string |
This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider. |
| id |
string |
|
| imageUrl |
string |
|
| inactive |
boolean |
|
| isAadIdentity |
boolean |
|
| isContainer |
boolean |
|
| isDeletedInOrigin |
boolean |
|
| profileUrl |
string |
|
| uniqueName |
string |
|
| url |
string |
This url is the full route to the source resource of this graph subject. |
JObject
| Name | Type | Description |
|---|---|---|
| item | ||
| type |
string (JTokenType) |
JToken
| Name | Type | Description |
|---|---|---|
| first | ||
| hasValues |
boolean |
|
| item | ||
| last | ||
| next | ||
| parent |
string (JContainer) |
|
| path |
string |
|
| previous | ||
| root | ||
| type |
string (JTokenType) |
PackageVersion
| Name | Type | Description |
|---|---|---|
| major |
integer (int32) |
|
| minor |
integer (int32) |
|
| patch |
integer (int32) |
ProjectReference
| Name | Type | Description |
|---|---|---|
| id |
string (uuid) |
|
| name |
string |
PropertiesCollection
The class represents a property bag as a collection of key-value pairs. Values of all primitive types (any type with a TypeCode != TypeCode.Object) except for DBNull are accepted. Values of type Byte[], Int32, Double, DateType and String preserve their type, other primitives are retuned as a String. Byte[] expected as base64 encoded string.
| Name | Type | Description |
|---|---|---|
| count |
integer (int32) |
The count of properties in the collection. |
| item |
object |
|
| keys |
string[] |
The set of keys in the collection. |
| values |
string[] |
The set of values in the collection. |
ReferenceLinks
The class to represent a collection of REST reference links.
| Name | Type | Description |
|---|---|---|
| links |
object |
The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. |
TaskAgent
| Name | Type | Description |
|---|---|---|
| _links |
The class to represent a collection of REST reference links. |
|
| accessPoint |
string |
Gets the access point of the agent. |
| assignedAgentCloudRequest |
Gets the Agent Cloud Request that's currently associated with this agent |
|
| assignedRequest |
Gets the request which is currently assigned to this agent. |
|
| authorization |
Gets or sets the authorization information for this agent. |
|
| createdOn |
string (date-time) |
Gets the date on which this agent was created. |
| enabled |
boolean |
Gets or sets a value indicating whether or not this agent should be enabled for job execution. |
| id |
integer (int32) |
Gets the identifier of the agent. |
| lastCompletedRequest |
Gets the last request which was completed by this agent. |
|
| maxParallelism |
integer (int32) |
Gets or sets the maximum job parallelism allowed on this host. |
| name |
string |
Gets the name of the agent. |
| oSDescription |
string |
Gets the OS of the agent. |
| pendingUpdate |
Gets the pending update for this agent. |
|
| properties |
The class represents a property bag as a collection of key-value pairs. Values of all primitive types (any type with a |
|
| provisioningState |
string |
Gets or sets the current provisioning state of this agent |
| status |
Gets the current connectivity status of the agent. |
|
| statusChangedOn |
string (date-time) |
Gets the date on which the last connectivity status change occurred. |
| systemCapabilities |
object |
|
| userCapabilities |
object |
|
| version |
string |
Gets the version of the agent. |
TaskAgentAuthorization
Provides data necessary for authorizing the agent using OAuth 2.0 authentication flows.
| Name | Type | Description |
|---|---|---|
| authorizationUrl |
string |
Gets or sets the endpoint used to obtain access tokens from the configured token service. |
| clientId |
string (uuid) |
Gets or sets the client identifier for this agent. |
| publicKey |
Gets or sets the public key used to verify the identity of this agent. |
TaskAgentCloudRequest
| Name | Type | Description |
|---|---|---|
| agent | ||
| agentCloudId |
integer (int32) |
|
| agentConnectedTime |
string (date-time) |
|
| agentData | ||
| agentSpecification | ||
| pool | ||
| provisionRequestTime |
string (date-time) |
|
| provisionedTime |
string (date-time) |
|
| releaseRequestTime |
string (date-time) |
|
| requestId |
string (uuid) |
TaskAgentDelaySource
| Name | Type | Description |
|---|---|---|
| delays |
string[] (TimeSpan) |
|
| taskAgent |
TaskAgentJobRequest
| Name | Type | Description |
|---|---|---|
| agentDelays | ||
| agentSpecification | ||
| assignTime |
string (date-time) |
|
| data |
object |
|
| definition | ||
| demands |
Demand[] |
|
| expectedDuration |
string (TimeSpan) |
|
| finishTime |
string (date-time) |
|
| hostId |
string (uuid) |
|
| jobId |
string (uuid) |
|
| jobName |
string |
|
| lockedUntil |
string (date-time) |
|
| matchedAgents | ||
| orchestrationId |
string |
|
| owner | ||
| planGroup |
string |
|
| planId |
string (uuid) |
|
| planType |
string |
|
| poolId |
integer (int32) |
|
| queueId |
integer (int32) |
|
| queueTime |
string (date-time) |
|
| receiveTime |
string (date-time) |
|
| requestId |
integer (int64) |
|
| reservedAgent | ||
| result | ||
| scopeId |
string (uuid) |
|
| serviceOwner |
string (uuid) |
TaskAgentPoolReference
| Name | Type | Description |
|---|---|---|
| id |
integer (int32) |
|
| isHosted |
boolean |
Gets or sets a value indicating whether or not this pool is managed by the service. |
| name |
string |
|
| poolType |
Gets or sets the type of the pool |
|
| scope |
string (uuid) |
|
| size |
integer (int32) |
Gets the current size of the pool. |
TaskAgentPoolType
Gets or sets the type of the pool
| Value | Description |
|---|---|
| automation | |
| deployment |
TaskAgentPublicKey
Represents the public key portion of an RSA asymmetric key.
| Name | Type | Description |
|---|---|---|
| exponent |
string[] (byte) |
Gets or sets the exponent for the public key. |
| modulus |
string[] (byte) |
Gets or sets the modulus for the public key. |
TaskAgentReference
| Name | Type | Description |
|---|---|---|
| _links |
The class to represent a collection of REST reference links. |
|
| accessPoint |
string |
Gets the access point of the agent. |
| enabled |
boolean |
Gets or sets a value indicating whether or not this agent should be enabled for job execution. |
| id |
integer (int32) |
Gets the identifier of the agent. |
| name |
string |
Gets the name of the agent. |
| oSDescription |
string |
Gets the OS of the agent. |
| provisioningState |
string |
Gets or sets the current provisioning state of this agent |
| status |
Gets the current connectivity status of the agent. |
|
| version |
string |
Gets the version of the agent. |
TaskAgentStatus
Gets the current connectivity status of the agent.
| Value | Description |
|---|---|
| offline | |
| online |
TaskAgentUpdate
| Name | Type | Description |
|---|---|---|
| currentState |
string |
The current state of this agent update |
| reason |
The reason of this agent update |
|
| requestTime |
string (date-time) |
Gets the date on which this agent update was requested. |
| requestedBy |
The identity that request the agent update |
|
| sourceVersion |
Gets or sets the source agent version of the agent update |
|
| targetVersion |
Gets or sets the target agent version of the agent update |
TaskAgentUpdateReason
| Name | Type | Description |
|---|---|---|
| code |
TaskAgentUpdateReasonType
| Value | Description |
|---|---|
| manual | |
| minAgentVersionRequired |
TaskOrchestrationOwner
| Name | Type | Description |
|---|---|---|
| _links |
The class to represent a collection of REST reference links. |
|
| id |
integer (int32) |
|
| name |
string |
TaskResult
| Value | Description |
|---|---|
| succeeded | |
| succeededWithIssues | |
| failed | |
| canceled | |
| skipped | |
| abandoned |