제품 목록 가져오기(고객별)
적용 대상: 파트너 센터 | 21Vianet에서 운영되는 파트너 센터 | Microsoft Cloud for US Government 파트너 센터
다음 방법을 사용하여 기존 고객에 대한 제품 컬렉션을 가져올 수 있습니다.
필수 조건
자격 증명(파트너 센터 인증에서 설명). 이 시나리오는 독립 실행형 앱 및 App+사용자 자격 증명을 모두 사용하여 인증을 지원합니다.
고객 ID (
customer-tenant-id
). 고객의 ID를 모르는 경우 고객 작업 영역, 고객 목록에서 고객, 계정을 선택하여파트너 센터에서 조회할 수 있습니다. 고객 계정 페이지의 고객 계정 정보 섹션에서 Microsoft ID를 찾습니다. Microsoft ID는 고객 ID(customer-tenant-id
)와 동일합니다.
REST 요청
요청 구문
메서드 | 요청 URI |
---|---|
게시 | {baseURL}/v1/customers/{customer-tenant-id}/products?targetView={targetView} HTTP/1.1 |
요청 URI 매개 변수
이름 | Type | 필수 | 설명 |
---|---|---|---|
customer-tenant-id | GUID | 예 | 값은 GUID 형식의 customer-tenant-id이며, 이는 고객을 지정할 수 있는 식별자입니다. |
targetView | string | 예 | 카탈로그의 대상 뷰를 식별합니다. 지원되는 값은 다음과 같습니다. 모든 Azure 항목을 포함하는 Azure 모든 Azure 예약 항목을 포함하는 AzureReservations 모든 VM(가상 머신) 예약 항목을 포함하는 AzureReservationsVM 모든 SQL 예약 항목을 포함하는 AzureReservationsSQL 모든 Cosmos 데이터베이스 예약 항목을 포함하는 AzureReservationsCosmosDb Microsoft Azure 구독(MS-AZR-0145P) 및 Azure 플랜에 대한 항목이 포함된 MicrosoftAzure 모든 온라인 서비스 항목을 포함하는 OnlineServices. 이 targetView에는 상업용 마켓플레이스, 기존 라이선스 기반 서비스 및 새로운 상거래 라이선스 기반 서비스가 포함됩니다. 소프트웨어( 모든 소프트웨어 항목 포함) 모든 소프트웨어 SUSE Linux 항목을 포함하는 SoftwareSUSELinux 모든 영구 소프트웨어 항목을 포함하는 SoftwarePerpetual 모든 소프트웨어 구독 항목을 포함하는 SoftwareSubscriptions 일부 파트너가 사용할 수 있는 특수 제품이 포함된 SpecializedOffers |
요청 헤더
자세한 내용은 파트너 센터 REST 헤더를 참조하세요.
요청 본문
없음.
요청 예제
지정된 고객이 사용할 수 있는 Azure 사용량 기반 제품 목록을 요청합니다. Microsoft Azure(MS-AZR-0145P) 및 Azure 요금제 모두에 대한 제품은 퍼블릭 클라우드의 고객을 위해 반환됩니다.
GET https://api.partnercenter.microsoft.com/v1/customers/65543400-f8b0-4783-8530-6d35ab8c6801/products?targetView=MicrosoftAzure HTTP/1.1
Authorization: Bearer <token>
Accept: application/json
MS-RequestId: 83643f5e-5dfd-4375-88ed-054412460dc8
MS-CorrelationId: b1939cb2-e83d-4fb0-989f-514fb741b734
새 상거래 라이선스 기반 서비스
참고 항목
라이선스 기반 서비스에 대한 새로운 상거래 환경에는 많은 새로운 기능이 포함되며 모든 CSP(클라우드 솔루션 공급자)에서 사용할 수 있습니다. 자세한 내용은 새 상거래 환경 개요를 참조하세요.
이 예제에 따라 새 상거래 환경 기술 미리 보기의 일부로 새 상거래 라이선스 기반 서비스에 대한 국가/지역별 제품 목록을 가져옵니다. 새 상거래 라이선스 기반 서비스는 OnlineServicesNCE의 ID 및 displayNames 값으로 식별됩니다. 아래 응답 예제를 참조하세요.
GET https://api.partnercenter.microsoft.com/v1/customers/65543400-f8b0-4783-8530-6d35ab8c6801/products?targetView=OnlineServices HTTP/1.1
Authorization: Bearer
Accept: application/json
MS-RequestId: 031160b2-b0b0-4d40-b2b1-aaa9bb84211d
MS-CorrelationId: 7c1f6619-c176-4040-a88f-2c71f3ba4533
Rest 응답
응답 성공 및 오류 코드
각 응답에는 성공 또는 실패와 추가 디버깅 정보를 나타내는 HTTP 상태 코드가 함께 제공됩니다. 네트워크 추적 도구를 사용하여 이 코드, 오류 유형 및 추가 매개 변수를 읽을 수 있습니다. 전체 목록은 파트너 센터 오류 코드를 참조 하세요.
이 메서드는 다음 오류 코드를 반환합니다.
HTTP 상태 코드 | 오류 코드 | 설명 |
---|---|---|
403 | 400036 | 요청된 targetView에 대한 액세스는 허용되지 않습니다. |
Microsoft Azure 및 Azure 계획에 대한 응답 예제
HTTP/1.1 200 OK
Content-Length: 1909
Content-Type: application/json; charset=utf-8
MS-CorrelationId: cad955c2-8efc-47fe-b112-548ff002ba18
MS-RequestId: ae7288e2-2673-4ad4-8c12-7aad818d5949
{
"totalCount": 2,
"items": [
{
"id": "MS-AZR-0145P",
"productId": "9DEA7946-EC2C-441E-9FFD-E3B275F7E838",
"title": "Microsoft Azure",
"description": "Azure Cloud Solution Provider offer for Partner and Resellers",
"minimumQuantity": 1,
"maximumQuantity": 1,
"isTrial": false,
"supportedBillingCycles": [
"monthly"
],
"purchasePrerequisites": [
"MicrosoftCloudAgreement"
],
"actions": [
"Refund"
],
"dynamicAttributes": {
"isMicrosoftProduct": true,
"billingType": "usage",
"category": "Enterprise",
"isAddon": false,
"prerequisiteSkus": [],
"rank": 1413,
"hasAddOns": false,
"isAutoRenewable": false,
"upgradeTargetOffers": null,
"conversionTargetOffers": [],
"unitType": "Usage-based",
"limitUnitOfMeasure": "None",
"limit": 0,
"reselleeQualifications": [],
"resellerQualifications": []
},
"links": {
"availabilities": {
"uri": "/products/9DEA7946-EC2C-441E-9FFD-E3B275F7E838/skus/MS-AZR-0145P/availabilities?country=US&targetSegment=Commercial",
"method": "GET",
"headers": []
},
"self": {
"uri": "/products/9DEA7946-EC2C-441E-9FFD-E3B275F7E838/skus/MS-AZR-0145P?country=US",
"method": "GET",
"headers": []
}
}
},
{
"id": "0001",
"productId": "DZH318Z0BPS6",
"title": "Microsoft Azure plan",
"description": "Microsoft Azure plan (MS-AZR-0017G)",
"minimumQuantity": 1,
"maximumQuantity": 1,
"isTrial": false,
"supportedBillingCycles": [
"one_time"
],
"purchasePrerequisites": [
"MicrosoftCustomerAgreement"
],
"inventoryVariables": [],
"provisioningVariables": [],
"actions": [
"Refund"
],
"dynamicAttributes": {
"isMicrosoftProduct": true,
"pilotProgram": "modernazurepilot"
},
"links": {
"availabilities": {
"uri": "/products/DZH318Z0BPS6/skus/0001/availabilities?country=US&targetSegment=Commercial",
"method": "GET",
"headers": []
},
"self": {
"uri": "/products/DZH318Z0BPS6/skus/0001?country=US",
"method": "GET",
"headers": []
}
}
}
],
"links": {
"self": {
"uri": "/customers/e2a0c0f3-0f74-4d1c-808c-dfa511481913/products/all/skus?targetView=MicrosoftAzure&targetSegment=Commercial",
"method": "GET",
"headers": []
}
},
"attributes": {
"objectType": "Collection"
}
}
새 상거래 라이선스 기반 서비스에 대한 응답 예제
참고 항목
라이선스 기반 서비스에 대한 새로운 상거래 환경에는 많은 새로운 기능이 포함되며 모든 CSP(클라우드 솔루션 공급자)에서 사용할 수 있습니다. 자세한 내용은 새 상거래 환경 개요를 참조하세요.
{
"totalCount": 19,
"items": [{
"id": "CFQ7TTC0LH18",
"title": "Microsoft 365 Business Basic",
"description": "Best for businesses that need professional email, cloud file storage, and online meetings & chat. Desktop versions of Office apps like Excel, Word, and PowerPoint not included. For businesses with up to 300 employees.",
"productType": {
"id": "OnlineServicesNCE",
"displayName": "OnlineServicesNCE"
},
"isMicrosoftProduct": true,
"publisherName": "Microsoft Corporation",
"links": {
"skus": {
"uri": "/products/CFQ7TTC0LH18/skus?country=US",
"method": "GET",
"headers": []
},
"self": {
"uri": "/products/CFQ7TTC0LH18?country=US",
"method": "GET",
"headers": []
}
}
},
...
],
"links": {
"self": {
"uri": "/products?country=US&targetView=OnlineServices",
"method": "GET",
"headers": []
}
},
"attributes": {
"objectType": "Collection"
}
}
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기