创建请求Create a request

重要提示 截至 2016 年 10 月底,将不再提供可使用的仪表板提交 REST API。Important The dashboard submission REST APIs will no longer be available for use as of the end of October 2016. 正在考虑为将来版本提供适用于驱动程序提交的 API。APIs for driver submissions are under consideration for a future release.

为文件签名、认证或驱动程序更新可接受 (DUA) 包创建请求。Creates a request for file signing, certification, or Driver Update Acceptable (DUA) package. 它将为提交创建设备元数据。It creates device metadata for submission.

请求Request

输入参数Input parameter

参数Parameter 说明Description 位置Location 是否为必需?Required? 如果未提供,则为默认值Default if not provided

仪表板提交对象Dashboard submission objects

一个 JSON 对象,用于描述设备签名、认证或 DUA 请求的详细元数据。A JSON object that describes the detailed metadata of the device signing, certification, or DUA request.

正文Body

Yes

不适用Not applicable

在任务栏的搜索框中键入Type

一个标志,可用于选择 Microsoft 应该用于请求的签名类型。A flag that you can use to select the type of signature that Microsoft should apply to the request.

查询字符串Query string

No

生产Production

示例请求Example request

方法Method 请求 URIRequest URI

POSTPOST

https://devicesigningservice.cloudapp.net/api/signing/deviceshttps://devicesigningservice.cloudapp.net/api/signing/devices

请求正文Request body

{
"ProductName" : "Testing Name",
"MarketingNames" : ["Localized Contoso Toaster"],
"AnnouncementDate" : "2015-01-01T00:00:00",
"PublishingDate" : "2015-11-11T00:00:00",
"OSSelections" : [{
"OS" : "Windows 8",
"ProductType" : "Printer",
"QualificationLevel" : "Signature Only"
}
],

"InitialUploadFileSize":1233334563
}

响应Response

响应包含提交的 URL 以及你针对设备请求上载程序包时所使用的 Microsoft Azure 存储安全 URI。The response contains the URL of the submission and the Microsoft Azure Storage secure URI where you upload your package for the device request.

响应参数Response parameter

参数Parameter 说明Description 位置Location 在任务栏的搜索框中键入Type

SharedAccessSignatureUriSharedAccessSignatureUri

Azure 存储安全 URI,用于针对设备请求上载程序包。The Azure Storage secure URI where you upload your package for the device request.

正文Body

GUIDGUID

位置Location

SigningRequest URL,其中包含此签名请求的唯一 ID。The SigningRequest URL, which contains the unique ID for this signing request. 例如,https://api.sysdev.microsoft.com/api/signing/devices/<RequestIDFor example, https://api.sysdev.microsoft.com/api/signing/devices/<RequestID>

位置标头Location header

URLURL

状态代码Status code

200.200
200 - 正常200 - OK

400.400
400 - 错误请求。400 – Bad Request.

404 - 未找到。404 – Not Found.

401 - 未授权。401 – Not Authorized.

示例响应Example response

"http://assetservice.blob.core.windows.net/functional17202312e9e54a5da5549d3a91b51119/contoso/Input/3aaf936f-fdd6-46ae-8378-1fb4e94b64bf.pfx?st=2014-07-25T16%3A58%3A49Z&se=2014-07-25T17%3A58%3A49Z&sr=c&sp=r&sig=K1LTkl2eZxaiR6SIhIj5Vqb7SIJGHHiC4R98s8jOYa0%3D"

相关主题Related topics

仪表板提交对象Dashboard submission objects

向 Microsoft 发送有关该主题的评论Send comments about this topic to Microsoft