Updates - Get File
Sürümden belirli bir güncelleştirme dosyası alın.
GET https://{accountEndpoint}/deviceupdate/{instanceId}/v2/updates/providers/{provider}/names/{name}/versions/{version}/files/{fileId}
URI Parametreleri
Name | İçinde | Gerekli | Tür | Description |
---|---|---|---|---|
account
|
path | True |
string |
Hesap uç noktası. |
file
|
path | True |
string |
Dosya tanımlayıcısı. |
instance
|
path | True |
string |
Hesap örneği tanımlayıcısı. |
name
|
path | True |
string |
Adı güncelleştirin. |
provider
|
path | True |
string |
Sağlayıcıyı güncelleştirin. |
version
|
path | True |
string |
Sürümü güncelleştirin. |
İstek Başlığı
Name | Gerekli | Tür | Description |
---|---|---|---|
If-None-Match |
string |
If-None-Match koşulunu tanımlar. İşlem yalnızca sunucudaki ETag bu değerle eşleşmiyorsa gerçekleştirilir. |
Yanıtlar
Name | Tür | Description |
---|---|---|
200 OK |
İstenen dosya varlığı. |
|
404 Not Found |
Bulunamadı. |
|
429 Too Many Requests |
Çok fazla istek var; bir süre içinde kaç işlemin yürütülebileceğine ilişkin bir hız sınırı vardır. |
|
Other Status Codes |
Değiştirilmedi. |
Güvenlik
azure_auth_implicit
Azure Active Directory OAuth2 Örtük Akışı
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/v2.0/authorize
Scopes
Name | Description |
---|---|
user_impersonation | kullanıcı hesabınızın kimliğine bürünme |
azure_auth_code
Azure Active Directory OAuth2 AccessCode Akışı
Type:
oauth2
Flow:
accessCode
Authorization URL:
https://login.microsoftonline.com/common/oauth2/v2.0/authorize
Token URL:
https://login.microsoftonline.com/common/oauth2/v2.0/token
Scopes
Name | Description |
---|---|
user_impersonation | kullanıcı hesabınızın kimliğine bürünme |
azure_auth_application
Azure Active Directory OAuth2 Uygulama Akışı
Type:
oauth2
Flow:
application
Token URL:
https://login.microsoftonline.com/common/oauth2/v2.0/token
Scopes
Name | Description |
---|---|
.default | istemci kimlik bilgisi kapsamı |
azure_auth_password
Azure Active Directory OAuth2 Parola Akışı
Type:
oauth2
Flow:
password
Token URL:
https://login.microsoftonline.com/common/oauth2/v2.0/token
Scopes
Name | Description |
---|---|
user_impersonation | kullanıcı hesabınızın kimliğine bürünme |
Örnekler
Updates_GetFile
Sample Request
GET https://contoso.api.adu.microsoft.com/deviceupdate/blue/v2/updates/providers/microsoft/names/adu/versions/1.0.0.0/files/abc123
Sample Response
{
"fileId": "abc123",
"fileName": "1v5uww1q.my2",
"sizeInBytes": 1862311,
"hashes": {
"sha256": "OVokcktf61lQXs17MzJCsM98lk48H1Wu1hy7Sp6lLfI="
},
"mimeType": "application/BuildAsync-s4jwikgq.44h",
"etag": "\"26bd8eba-4bb2-4960-a357-ca4d60b5fb4b\""
}
Tanımlar
File
Dosya meta verilerini güncelleştirin.
Name | Tür | Description |
---|---|---|
etag |
string |
Dosya ETag'i. |
fileId |
string |
İçeri aktarma zamanında sunucu tarafından oluşturulan dosya kimliği. |
fileName |
string |
Dosya adı. |
hashes |
object |
Karma algoritmasının base64 kodlanmış karma değerlerine eşlenmesi. |
mimeType |
string |
Dosya MIME türü. |
sizeInBytes |
integer |
Bayt sayısı cinsinden dosya boyutu. |