Partilhar via


Device deployment - Uploaded Customer Devices

POST https://api.partnercenter.microsoft.com/v{version}/customers/{customer_id}/deviceBatches

Parâmetros do URI

Name Em Necessário Tipo Description
customer_id
path True

string

O ID do cliente.

version
path True

string

Cabeçalho do Pedido

Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"

Name Necessário Tipo Description
Authorization True

string

Token de portador de autorização

ms-correlationid

string

Usado para rastrear solicitações internamente. Se um ms-correlationid não for fornecido, o servidor gerará um novo para cada solicitação

ms-cv

string

Usado para rastrear solicitações internamente. Se um ms-cv não for fornecido, o servidor gerará um novo para cada solicitação

ms-requestid

string

Usado para idempotência de solicitações. Se um ms-requestid não for fornecido, o servidor gerará um novo para cada solicitação

Corpo do Pedido

Media Types: "application/json", "text/json", "application/xml", "text/xml", "application/x-www-form-urlencoded"

Name Tipo Description
batchId

string

devices

Microsoft.Partner.Providers.Contracts.V1.Device[]

Respostas

Name Tipo Description
200 OK

object

OK

Media Types: "application/json", "text/json", "application/xml", "text/xml"

202 Accepted

object

O pedido foi aceite com sucesso. O link para consultar o status dos dispositivos do cliente carregado é retornado no corpo da resposta.

Media Types: "application/json", "text/json", "application/xml", "text/xml"

Definições

Name Description
Microsoft.Partner.Core.Collections.Link
Microsoft.Partner.Core.Collections.ResourceAttributes
Microsoft.Partner.Core.Collections.ResourceLinks
Microsoft.Partner.Providers.Contracts.V1.Device
Microsoft.Partner.Providers.Contracts.V1.DeviceBatchCreationRequest
System.Collections.Generic.KeyValuePair[Microsoft.Partner.Providers.Contracts.V1.Enums.PolicyCategory,System.String]
System.Collections.Generic.KeyValuePair[System.String,System.String]
Name Tipo Description
body

string

headers

System.Collections.Generic.KeyValuePair[System.String,System.String][]

method

string

uri

string

Microsoft.Partner.Core.Collections.ResourceAttributes

Name Tipo Description
etag

string

objectType

string

Name Tipo Description
next

Microsoft.Partner.Core.Collections.Link

previous

Microsoft.Partner.Core.Collections.Link

self

Microsoft.Partner.Core.Collections.Link

Microsoft.Partner.Providers.Contracts.V1.Device

Name Tipo Description
allowedOperations

string[]

attributes

Microsoft.Partner.Core.Collections.ResourceAttributes

hardwareHash

string

id

string

links

Microsoft.Partner.Core.Collections.ResourceLinks

modelName

string

oemManufacturerName

string

policies

System.Collections.Generic.KeyValuePair[Microsoft.Partner.Providers.Contracts.V1.Enums.PolicyCategory,System.String][]

productKey

string

serialNumber

string

uploadedBy

string

uploadedDate

string

Microsoft.Partner.Providers.Contracts.V1.DeviceBatchCreationRequest

Name Tipo Description
attributes

Microsoft.Partner.Core.Collections.ResourceAttributes

batchId

string

devices

Microsoft.Partner.Providers.Contracts.V1.Device[]

System.Collections.Generic.KeyValuePair[Microsoft.Partner.Providers.Contracts.V1.Enums.PolicyCategory,System.String]

Name Tipo Description
key enum:
  • none
  • o_o_b_e
value

string

System.Collections.Generic.KeyValuePair[System.String,System.String]

Name Tipo Description
key

string

value

string