Deploymentgroups - Add
배포 그룹을 만듭니다.
POST https://dev.azure.com/{organization}/{project}/_apis/distributedtask/deploymentgroups?api-version=5.0-preview.1
URI 매개 변수
| Name | In(다음 안에) | 필수 | 형식 | Description |
|---|---|---|---|---|
|
organization
|
path | True |
string |
Azure DevOps 조직의 이름입니다. |
|
project
|
path | True |
string |
프로젝트 ID 또는 프로젝트 이름 |
|
api-version
|
query | True |
string |
사용할 API의 버전입니다. 이 버전의 api를 사용하려면 '5.0-preview.1'로 설정해야 합니다. |
요청 본문
| Name | 형식 | Description |
|---|---|---|
| description |
string |
배포 그룹에 대한 설명입니다. |
| name |
string |
배포 그룹의 이름입니다. |
| poolId |
integer |
배포 에이전트가 등록된 배포 풀의 식별자입니다. |
응답
| Name | 형식 | Description |
|---|---|---|
| 200 OK |
성공한 작업 |
보안
oauth2
형식:
oauth2
Flow:
accessCode
권한 부여 URL:
https://app.vssps.visualstudio.com/oauth2/authorize&response_type=Assertion
토큰 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
범위
| Name | Description |
|---|---|
| vso.machinegroup_manage | 배포 그룹 및 에이전트 풀을 관리하는 기능을 제공합니다. |
예제
Create a deployment group
샘플 요청
POST https://dev.azure.com/fabrikam/{project}/_apis/distributedtask/deploymentgroups?api-version=5.0-preview.1
{
"name": "MyDeploymentGroup1",
"description": "This deployment group is created to demnostrate the client usage"
}
샘플 응답
{
"machineCount": 0,
"description": "This deployment group is created to demnostrate the client usage",
"id": 11,
"project": {
"id": "91879ed9-819b-46f3-9e0b-52ed4b20c04c",
"name": "DeploymentGroupRESTSample"
},
"name": "MyDeploymentGroup1",
"pool": {
"id": 6,
"scope": "86088ab1-30d8-4526-9663-3406752b8bc6",
"name": "DeploymentGroupRESTSample-MyDeploymentGroup1",
"isHosted": false,
"poolType": "deployment",
"size": 0
}
}
정의
| Name | Description |
|---|---|
| Demand | |
|
Deployment |
배포 그룹. |
|
Deployment |
배포 그룹을 만드는 속성입니다. |
|
Deployment |
배포 대상입니다. |
|
Identity |
|
| JObject | |
| JToken | |
|
Package |
|
|
Project |
|
|
Properties |
클래스는 속성 모음을 키-값 쌍의 컬렉션으로 나타냅니다. 를 제외한 |
|
Reference |
REST 참조 링크의 컬렉션을 나타내는 클래스입니다. |
|
Task |
|
|
Task |
OAuth 2.0 인증 흐름을 사용하여 에이전트에 권한을 부여하는 데 필요한 데이터를 제공합니다. |
|
Task |
|
|
Task |
|
|
Task |
|
|
Task |
|
|
Task |
풀의 형식을 가져오거나 설정합니다. |
|
Task |
RSA 비대칭 키의 공개 키 부분을 나타냅니다. |
|
Task |
|
|
Task |
에이전트의 현재 연결 상태 가져옵니다. |
|
Task |
|
|
Task |
|
|
Task |
|
|
Task |
|
|
Task |
Demand
| Name | 형식 | Description |
|---|---|---|
| name |
string |
|
| value |
string |
DeploymentGroup
배포 그룹.
| Name | 형식 | Description |
|---|---|---|
| description |
string |
배포 그룹에 대한 설명입니다. |
| id |
integer |
배포 그룹 식별자입니다. |
| machineCount |
integer |
배포 그룹의 배포 대상 수입니다. |
| machineTags |
string[] |
배포 그룹의 모든 배포 대상에 대한 고유 태그 목록입니다. |
| machines |
배포 그룹의 배포 대상 목록입니다. |
|
| name |
string |
배포 그룹의 이름입니다. |
| pool |
배포 에이전트가 등록된 배포 풀입니다. |
|
| project |
배포 그룹이 속한 프로젝트입니다. |
DeploymentGroupCreateParameter
배포 그룹을 만드는 속성입니다.
| Name | 형식 | Description |
|---|---|---|
| description |
string |
배포 그룹에 대한 설명입니다. |
| name |
string |
배포 그룹의 이름입니다. |
| poolId |
integer |
배포 에이전트가 등록된 배포 풀의 식별자입니다. |
DeploymentMachine
배포 대상입니다.
| Name | 형식 | Description |
|---|---|---|
| agent |
배포 에이전트. |
|
| id |
integer |
배포 대상 식별자입니다. |
| tags |
string[] |
배포 대상의 태그입니다. |
IdentityRef
| Name | 형식 | Description |
|---|---|---|
| _links |
이 필드에는 그래프 제목에 대한 0개 이상의 흥미로운 링크가 포함되어 있습니다. 이러한 링크를 호출하여 이 그래프 제목에 대한 추가 관계 또는 자세한 정보를 얻을 수 있습니다. |
|
| descriptor |
string |
설명자는 시스템이 실행되는 동안 그래프 제목을 참조하는 기본 방법입니다. 이 필드는 계정과 조직 모두에서 동일한 그래프 제목을 고유하게 식별합니다. |
| directoryAlias |
string |
|
| displayName |
string |
그래프 주체의 고유하지 않은 표시 이름입니다. 이 필드를 변경하려면 원본 공급자에서 해당 값을 변경해야 합니다. |
| id |
string |
|
| imageUrl |
string |
|
| inactive |
boolean |
|
| isAadIdentity |
boolean |
|
| isContainer |
boolean |
|
| isDeletedInOrigin |
boolean |
|
| profileUrl |
string |
|
| uniqueName |
string |
|
| url |
string |
이 URL은 이 그래프 주체의 원본 리소스에 대한 전체 경로입니다. |
JObject
| Name | 형식 | Description |
|---|---|---|
| item | ||
| type |
string |
JToken
| Name | 형식 | Description |
|---|---|---|
| first | ||
| hasValues |
boolean |
|
| item | ||
| last | ||
| next | ||
| parent |
string |
|
| path |
string |
|
| previous | ||
| root | ||
| type |
string |
PackageVersion
| Name | 형식 | Description |
|---|---|---|
| major |
integer |
|
| minor |
integer |
|
| patch |
integer |
ProjectReference
| Name | 형식 | Description |
|---|---|---|
| id |
string |
|
| name |
string |
PropertiesCollection
클래스는 속성 모음을 키-값 쌍의 컬렉션으로 나타냅니다. 를 제외한 DBNull 모든 기본 형식의 값(가 있는 TypeCode != TypeCode.Object모든 형식)이 허용됩니다. Byte[], Int32, Double, DateType 및 String 형식의 값은 해당 형식을 유지하며, 다른 기본 형식은 String으로 다시 조정됩니다. base64로 인코딩된 문자열로 예상되는 바이트[]
| Name | 형식 | Description |
|---|---|---|
| count |
integer |
컬렉션의 속성 수입니다. |
| item |
object |
|
| keys |
string[] |
컬렉션의 키 집합입니다. |
| values |
string[] |
컬렉션의 값 집합입니다. |
ReferenceLinks
REST 참조 링크의 컬렉션을 나타내는 클래스입니다.
| Name | 형식 | Description |
|---|---|---|
| links |
object |
링크의 읽기 전용 보기입니다. 참조 링크는 읽기 전용이므로 읽기 전용으로만 노출하려고 합니다. |
TaskAgent
| Name | 형식 | Description |
|---|---|---|
| _links |
REST 참조 링크의 컬렉션을 나타내는 클래스입니다. |
|
| accessPoint |
string |
에이전트의 액세스 지점을 가져옵니다. |
| assignedAgentCloudRequest |
현재 이 에이전트와 연결된 에이전트 클라우드 요청을 가져옵니다. |
|
| assignedRequest |
현재 이 에이전트에 할당된 요청을 가져옵니다. |
|
| authorization |
이 에이전트에 대한 권한 부여 정보를 가져오거나 설정합니다. |
|
| createdOn |
string |
이 에이전트가 만들어진 날짜를 가져옵니다. |
| enabled |
boolean |
이 에이전트를 작업 실행에 사용하도록 설정해야 하는지 여부를 나타내는 값을 가져오거나 설정합니다. |
| id |
integer |
에이전트의 식별자를 가져옵니다. |
| lastCompletedRequest |
이 에이전트가 완료한 마지막 요청을 가져옵니다. |
|
| maxParallelism |
integer |
이 호스트에 허용되는 최대 작업 병렬 처리를 가져오거나 설정합니다. |
| name |
string |
에이전트의 이름을 가져옵니다. |
| oSDescription |
string |
에이전트의 OS를 가져옵니다. |
| pendingUpdate |
이 에이전트에 대한 보류 중인 업데이트를 가져옵니다. |
|
| properties |
클래스는 속성 모음을 키-값 쌍의 컬렉션으로 나타냅니다. 를 제외한 |
|
| provisioningState |
string |
이 에이전트의 현재 프로비저닝 상태를 가져오거나 설정합니다. |
| status |
에이전트의 현재 연결 상태 가져옵니다. |
|
| statusChangedOn |
string |
마지막 연결 상태 변경이 발생한 날짜를 가져옵니다. |
| systemCapabilities |
object |
|
| userCapabilities |
object |
|
| version |
string |
에이전트의 버전을 가져옵니다. |
TaskAgentAuthorization
OAuth 2.0 인증 흐름을 사용하여 에이전트에 권한을 부여하는 데 필요한 데이터를 제공합니다.
| Name | 형식 | Description |
|---|---|---|
| authorizationUrl |
string |
구성된 토큰 서비스에서 액세스 토큰을 가져오는 데 사용되는 엔드포인트를 가져오거나 설정합니다. |
| clientId |
string |
이 에이전트의 클라이언트 식별자를 가져오거나 설정합니다. |
| publicKey |
이 에이전트의 ID를 확인하는 데 사용되는 공개 키를 가져오거나 설정합니다. |
TaskAgentCloudRequest
| Name | 형식 | Description |
|---|---|---|
| agent | ||
| agentCloudId |
integer |
|
| agentConnectedTime |
string |
|
| agentData | ||
| agentSpecification | ||
| pool | ||
| provisionRequestTime |
string |
|
| provisionedTime |
string |
|
| releaseRequestTime |
string |
|
| requestId |
string |
TaskAgentDelaySource
| Name | 형식 | Description |
|---|---|---|
| delays |
string[] |
|
| taskAgent |
TaskAgentJobRequest
| Name | 형식 | Description |
|---|---|---|
| agentDelays | ||
| agentSpecification | ||
| assignTime |
string |
|
| data |
object |
|
| definition | ||
| demands |
Demand[] |
|
| expectedDuration |
string |
|
| finishTime |
string |
|
| hostId |
string |
|
| jobId |
string |
|
| jobName |
string |
|
| lockedUntil |
string |
|
| matchedAgents | ||
| orchestrationId |
string |
|
| owner | ||
| planGroup |
string |
|
| planId |
string |
|
| planType |
string |
|
| poolId |
integer |
|
| queueId |
integer |
|
| queueTime |
string |
|
| receiveTime |
string |
|
| requestId |
integer |
|
| reservedAgent | ||
| result | ||
| scopeId |
string |
|
| serviceOwner |
string |
TaskAgentPoolReference
| Name | 형식 | Description |
|---|---|---|
| id |
integer |
|
| isHosted |
boolean |
서비스에서 이 풀을 관리하는지 여부를 나타내는 값을 가져오거나 설정합니다. |
| name |
string |
|
| poolType |
풀의 형식을 가져오거나 설정합니다. |
|
| scope |
string |
|
| size |
integer |
풀의 현재 크기를 가져옵니다. |
TaskAgentPoolType
풀의 형식을 가져오거나 설정합니다.
| 값 | Description |
|---|---|
| automation | |
| deployment |
TaskAgentPublicKey
RSA 비대칭 키의 공개 키 부분을 나타냅니다.
| Name | 형식 | Description |
|---|---|---|
| exponent |
string[] |
공개 키의 지수를 가져오거나 설정합니다. |
| modulus |
string[] |
공개 키의 모듈러스를 가져오거나 설정합니다. |
TaskAgentReference
| Name | 형식 | Description |
|---|---|---|
| _links |
REST 참조 링크의 컬렉션을 나타내는 클래스입니다. |
|
| accessPoint |
string |
에이전트의 액세스 지점을 가져옵니다. |
| enabled |
boolean |
이 에이전트를 작업 실행에 사용하도록 설정해야 하는지 여부를 나타내는 값을 가져오거나 설정합니다. |
| id |
integer |
에이전트의 식별자를 가져옵니다. |
| name |
string |
에이전트의 이름을 가져옵니다. |
| oSDescription |
string |
에이전트의 OS를 가져옵니다. |
| provisioningState |
string |
이 에이전트의 현재 프로비저닝 상태를 가져오거나 설정합니다. |
| status |
에이전트의 현재 연결 상태 가져옵니다. |
|
| version |
string |
에이전트의 버전을 가져옵니다. |
TaskAgentStatus
에이전트의 현재 연결 상태 가져옵니다.
| 값 | Description |
|---|---|
| offline | |
| online |
TaskAgentUpdate
| Name | 형식 | Description |
|---|---|---|
| currentState |
string |
이 에이전트 업데이트의 현재 상태 |
| reason |
이 에이전트 업데이트의 이유 |
|
| requestTime |
string |
이 에이전트 업데이트가 요청된 날짜를 가져옵니다. |
| requestedBy |
에이전트 업데이트를 요청하는 ID |
|
| sourceVersion |
에이전트 업데이트의 원본 에이전트 버전을 가져오거나 설정합니다. |
|
| targetVersion |
에이전트 업데이트의 대상 에이전트 버전을 가져오거나 설정합니다. |
TaskAgentUpdateReason
| Name | 형식 | Description |
|---|---|---|
| code |
TaskAgentUpdateReasonType
| 값 | Description |
|---|---|
| manual | |
| minAgentVersionRequired |
TaskOrchestrationOwner
| Name | 형식 | Description |
|---|---|---|
| _links |
REST 참조 링크의 컬렉션을 나타내는 클래스입니다. |
|
| id |
integer |
|
| name |
string |
TaskResult
| 값 | Description |
|---|---|
| abandoned | |
| canceled | |
| failed | |
| skipped | |
| succeeded | |
| succeededWithIssues |