작업 검색
참고 항목
Cloud 파트너 포털 API는 파트너 센터와 통합되었으며, 계속 파트너 센터에서 작동합니다. 전환에는 작은 변경 내용이 도입됩니다. 파트너 센터로 전환한 후에도 코드가 계속 작동하도록 Cloud 파트너 포털 API 참조에 나열된 변경 내용을 검토합니다. CPP API는 파트너 센터로 전환하기 전에 이미 통합된 기존 제품에만 사용해야 합니다. 새 제품은 파트너 센터 제출 API를 사용해야 합니다.
제품에 대한 모든 작업을 검색하거나 지정된 operationId에 대한 특정 작업을 가져옵니다. 클라이언트는 쿼리 매개 변수를 사용하여 실행 중인 작업을 필터링할 수 있습니다.
GET https://cloudpartner.azure.com/api/publishers/<publisherId>/offers/<offerId>/operations/<operationId>?api-version=2017-10-31
URI 매개 변수
이름 | 설명 | 데이터 형식 |
---|---|---|
publisherId | 게시자 식별자(예: Contoso |
문자열 |
offerId | 제안 식별자입니다. | 문자열 |
operationId | 제품에 대한 작업을 고유하게 식별하는 GUID입니다. operationId는 이 API를 사용하여 검색될 수 있으며 게시 제품 API와 같은 장기 실행 작업에 대한 응답의 HTTP 헤더에도 반환됩니다. | GUID |
api-version | 최신 버전의 API | 날짜 |
헤더
이름 | 값 |
---|---|
콘텐츠-형식 | application/json |
Authorization | Bearer YOUR_TOKEN |
본문 예제
응답
GET 작업
[
{
"id": "5a63deb5-925b-4ee0-938b-7c86fbf287c5",
"offerId": "56615b67-2185-49fe-80d2-c4ddf77bb2e8",
"offerVersion": 1,
"offerTypeId": "microsoft-azure-virtualmachines",
"publisherId": "contoso",
"submissionType": "publish",
"submissionState": "running",
"publishingVersion": 2,
"slot": "staging",
"version": 636576975611768314,
"definition": {
"metadata": {
"emails": "jdoe@contoso.com"
}
},
"changedTime": "2018-03-26T21:46:01.179948Z"
}
]
GET 작업
[
{
"status" : "running",
"messages" : [],
"publishingVersion" : 2,
"offerVersion" : 1,
"cancellationRequestState": "canCancel",
"steps": [
{
"estimatedTimeFrame": "< 15 min",
"id": "displaydummycertify",
"stepName": "Validate Pre-Requisites",
"description": "Offer settings provided are validated",
"status": "complete",
"messages":
[
{
"messageHtml": "Step completed.",
"level": "information",
"timestamp": "2017-03-28T19:50:36.500052Z"
}
],
"progressPercentage": 100
},
{
"estimatedTimeFrame": "< 5 day",
"id": "displaycertify",
"stepName": "Certification",
"description": "Your offer is analyzed by our certification systems for issues.",
"status": "blocked",
"messages":
[
{
"messageHtml": "No virtual machine image was found for the plan contoso.",
"level": "error",
"timestamp": "2017-03-28T19:50:39.5506018Z"
},
{
"messageHtml": "This step has not started yet.",
"level": "information",
"timestamp": "2017-03-28T19:50:39.5506018Z"
}
],
"progressPercentage": 0
},
{
"estimatedTimeFrame": "< 1 day",
"id": "displayprovision",
"stepName": "Provisioning",
"description": "Your virtual machine is being replicated in our production systems.",
"status": "notStarted",
"messages": [],
"progressPercentage": 0
},
{
"estimatedTimeFrame": "< 1 hour",
"id": "displaypackage",
"stepName": "Packaging and Lead Generation Registration",
"description": "Your virtual machine is packaged for being shown to your customers. Additionally, we hookup our lead generation systems to send leads for your offer.",
"status": "notStarted",
"messages": [],
"progressPercentage": 0
},
{
"id": "publisher-signoff",
"stepName": "Publisher signoff",
"description": "Offer is available to preview. Ensure that everything looks good before making your offer live.",
"status": "notStarted",
"messages": [],
"progressPercentage": 0
},
{
"estimatedTimeFrame": "~2-5 days",
"id": "live",
"stepName": "Live",
"description": "Offer is publicly visible and is available for purchase.",
"status": "notStarted",
"messages": [],
"progressPercentage": 0
}
],
"previewLinks": [],
"liveLinks": [],
}
}
]
응답 본문 속성
이름 | 설명 |
---|---|
id | 작업을 고유하게 식별하는 GUID입니다. |
submissionType | 제품에 대해 보고되는 작업의 유형을 식별합니다(예: ). Publish/GoLive |
createdDateTime | 작업이 만들어진 UTC 날짜/시간 |
lastActionDateTime | 작업에 대한 마지막 업데이트가 수행된 UTC 날짜/시간입니다. |
status | 작업의 상태(둘 중 하나)입니다not started failed | completed running | | . 한 번에 하나의 작업만 상태 running 수 있습니다. |
error | 실패한 작업에 대한 오류 메시지입니다. |
응답 단계 속성
이름 | 설명 |
---|---|
estimatedTimeFrame | 이 작업의 예상 기간 |
id | 단계 프로세스의 고유 식별자입니다. |
description | 단계에 대한 설명 |
stepName | 단계의 이름 |
status | 단계의 상태로, notStarted | running | failed | completed 중 하나입니다. |
messages | 단계 중에 발생한 알림 또는 경고입니다. 문자열 배열 |
progressPercentage | 단계 진행률을 나타내는 0에서 100 사이의 정수입니다. |
응답 상태 코드
코드 | 설명 |
---|---|
200 | OK - 요청이 성공적으로 처리되었고 요청된 작업이 반환되었습니다. |
400 | Bad/Malformed request - 오류 응답 본문에 자세한 정보가 포함될 수 있습니다. |
403 | Forbidden - 클라이언트가 지정된 네임스페이스에 액세스할 수 없습니다. |
404 | Not found - 지정한 엔터티가 없습니다. |
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기