取得所有出貨標籤
在 Microsoft 硬體 API 中使用此方法,擷取特定產品提交之所有出貨標籤的資料。
必要條件
如果您尚未這麼做,請先完成 Microsoft 硬體 API 的所有 必要條件 ,再嘗試使用這些方法。 您必須先在開發人員中心帳戶中存在產品與提交,才能使用這些方法。 若要建立或管理產品的提交,請參閱 管理產品提交中的方法。
要求
這個方法的語法如下。 請參閱下列各小節了解標頭和要求主體的使用範例和描述。
方法 | 要求 URI |
---|---|
GET | https://manage.devcenter.microsoft.com/v2.0/my/hardware/products/{productId}/submissions/{submissionId}/shippingLabels/ |
要求標頭
標頭 | 類型 | 描述 |
---|---|---|
授權 | 字串 | 必要。 Microsoft Entra識別碼存取權杖格式為Bearer * < token > *。 |
accept | 字串 | 選擇性。 指定內容類型。 允許的值為 「application/json」 |
要求參數
請勿提供這個方法的要求參數。
要求本文
不提供此方法的要求主體。
要求範例
下列範例示範如何擷取所有已註冊至您帳戶的產品相關資訊。
GET https://manage.devcenter.microsoft.com/v2.0/my/hardware/products/14461751976964157/submissions/1152921504621467613/shippingLabels/ HTTP/1.1
Authorization: Bearer <your access token>
回應
下列範例示範成功要求針對註冊至開發人員帳戶之產品之特定提交產品的所有出貨標籤所傳回的 JSON 回應本文。 為了簡潔起見,此範例只會顯示要求所傳回的前三個出貨標籤資料。 回應本文中值的詳細資料會出現在下列範例的表格中。
{
"value": [
{
"id": 1152921504606980300,
"productId": 14461751976964156,
"submissionId": 1152921504621467600,
"publishingSpecifications": {
"goLiveDate": "2018-04-04T16:11:27.2965057+00:00",
"visibleToAccounts": [],
"isAutoInstallDuringOSUpgrade": true,
"isAutoInstallOnApplicableSystems": true,
"isDisclosureRestricted": false,
"publishToWindows10s": false,
"additionalInfoForMsApproval": {
"microsoftContact": "abc@mcirosoft.com",
"validationsPerformed": "Validation 1",
"affectedOems": [
"OEM1",
"OEM2"
],
"isRebootRequired": false,
"isCoEngineered": true,
"isForUnreleasedHardware": true,
"hasUiSoftware": false,
"businessJustification": "This is a business justification"
}
},
"workflowStatus": {
"currentStep": "microsoftApproval",
"state": "started",
"messages": []
},
"links": [
{
"href": "https://manage.devcenter.microsoft.com/v2.0/my/hardware/products/14461751976964157/submissions/1152921504621467613/shippingLabels/1152921504606980231",
"rel": "self",
"method": "GET"
},
{
"href": "https://manage.devcenter.microsoft.com/v2.0/my/hardware/products/14461751976964157/submissions/1152921504621467613/shippingLabels/1152921504606980231",
"rel": "update_shippinglabel",
"method": "PATCH"
}
],
"name": "Publish to Windows Update with promotions",
"destination": "windowsUpdate"
},
{
"id": 1152921504606978500,
"productId": 14461751976964156,
"submissionId": 1152921504621467600,
"recipientSpecifications": {
"receiverPublisherId": "27691110",
"enforceChidTargeting": false
},
"workflowStatus": {
"currentStep": "finalizeSharing",
"state": "completed",
"messages": []
},
"links": [
{
"href": "https://manage.devcenter.microsoft.com/v2.0/my/hardware/products/14461751976964157/submissions/1152921504621467613/shippingLabels/1152921504606978460",
"rel": "self",
"method": "GET"
},
{
"href": "https://manage.devcenter.microsoft.com/v2.0/my/hardware/products/14461751976964157/submissions/1152921504621467613/shippingLabels/1152921504606978460",
"rel": "update_shippinglabel",
"method": "PATCH"
}
],
"name": "Share submission with another Partner",
"destination": "anotherPartner"
},
{
"id": 1152921504606978500,
"productId": 14461751976964156,
"submissionId": 1152921504621467600,
"publishingSpecifications": {
"goLiveDate": "2018-04-03T04:50:52.2293001+00:00",
"visibleToAccounts": [],
"isAutoInstallDuringOSUpgrade": false,
"isAutoInstallOnApplicableSystems": false,
"isDisclosureRestricted": false,
"publishToWindows10s": false
},
"workflowStatus": {
"currentStep": "finalizePublishing",
"state": "completed",
"messages": []
},
"links": [
{
"href": "https://manage.devcenter.microsoft.com/v2.0/my/hardware/products/14461751976964157/submissions/1152921504621467613/shippingLabels/1152921504606978538",
"rel": "self",
"method": "GET"
},
{
"href": "https://manage.devcenter.microsoft.com/v2.0/my/hardware/products/14461751976964157/submissions/1152921504621467613/shippingLabels/1152921504606978538",
"rel": "update_shippinglabel",
"method": "PATCH"
}
],
"name": "Publish to Windows Update without promotions",
"destination": "windowsUpdate"
}
],
"links": [
{
"href": "https://manage.devcenter.microsoft.com/v2.0/my/hardware/products?pageSize=50",
"rel": "self",
"method": "GET"
}
]
}
此資源具有下列值
值 | 類型 | 描述 |
---|---|---|
value | array | 物件的陣列,其中包含每個出貨標籤的相關資訊。 如需每個物件中資料的詳細資訊,請參閱 出貨標籤資源。 |
連結 | array | 物件的陣列,其中包含包含實體的相關實用連結。 如需詳細資訊,請參閱 Link 物件 。 |
錯誤碼
如需錯誤碼的相關資訊,請參閱 錯誤碼。