Manage Product Submissions
Use the following methods in Microsoft Hardware APIs to manage submissions for your products and for getting them signed by Microsoft. For an introduction to Microsoft Hardware APIs, including prerequisites for using the API, see Hardware dashboard API.
Methods for managing product submissions
||Get status/data for a specific product|
||Get status/data for a specific submission of a product|
||Create a new product|
||Create a new submission for a product|
||Commit a product submission|
Create and submit a product for signing
If you have not done so already, complete all the prerequisites for the Microsoft Hardware APIs.
Obtain an Azure AD access token. You must pass this access token to the methods in the Microsoft Store submission API. After you obtain an access token, you have 60 minutes to use it before it expires. After the token expires, you can obtain a new one.
Create a new product by executing the following method in the Microsoft Hardware API. This creates a new in-progress product and allows you to submit packages for this product.
The response body contains a Product resource that includes the ID of this product.
Create a submission for this product by executing the following method in the Microsoft Hardware API. Use the ProductID created in the step above.
The response body contains a Submission resource which includes the ID of the submission, the shared access signature (SAS) URI for uploading the product (driver) package for the submission to Azure Blob storage. [!NOTE] > A SAS URI provides access to a secure resource in Azure storage without requiring account keys. For background information about SAS URIs and their use with Azure Blob storage, see Shared Access Signatures, Part 1: Understanding the SAS model and Shared Access Signatures, Part 2: Create and use a SAS with Blob storage .
Upload your package to the Azure Blob storage at the location specified by the SAS URI in the previous step. The following C# code example demonstrates how to upload a package to Azure Blob storage using the CloudBlockBlob class in the Azure Storage Client Library for .NET. This example assumes that the package has already been written to a stream object.
string sasUrl = "https://productingestionbin1.blob.core.windows.net/ingestion/26920f66-b592-4439-9a9d-fb0f014902ec?sv=2014-02-14&sr=b&sig=usAN0kNFNnYE2tGQBI%2BARQWejX1Guiz7hdFtRhyK%2Bog%3D&se=2016-06-17T20:45:51Z&sp=rwl"; Microsoft.WindowsAzure.Storage.Blob.CloudBlockBlob blockBob = new Microsoft.WindowsAzure.Storage.Blob.CloudBlockBlob(new System.Uri(sasUrl)); await blockBob.UploadFromStreamAsync(stream);
Commit the product submission by executing the following method. This will alert Hardware Dev Center that you are done with your product submission and validation will be started for the submission.
Check on the commit status by executing the following method to get the status of the product submission.
To confirm the submission status, review the commitStatus value in the response body. This value should change from commitReceived to commitCompleted if the request succeeds or to commitFailed if there are errors in the request. If there are errors, the error field contains further details about the error.
The main Search page refreshes about every 10 minutes. To view all of your results as you create them, click Driver List Page (all), at the top of the Drivers page of the Partner Center. Although the page takes some time to process and load if you have a lot of submissions, both successful and unsuccessful submissions should be listed when it does load. For more info, see Find a hardware submission.
The following code examples demonstrates how to use the Microsoft Hardware API:
The Microsoft Hardware APIs methods for creating and managing product data use the following JSON data resources: