Image - Get Url
取得可下載指定影像的 URL。
GET https://prod.core.sphere.azure.net/v2/tenants/{tenantId}/images/{imageId}
URI 參數
名稱 | 位於 | 必要 | 類型 | Description |
---|---|---|---|---|
image
|
path | True |
string uuid |
影像識別碼。 |
tenant
|
path | True |
string uuid |
Azure Sphere 租使用者識別碼。 |
回應
名稱 | 類型 | Description |
---|---|---|
200 OK |
成功。 |
範例
Get the URL of an image's download site
Sample Request
GET https://prod.core.sphere.azure.net/v2/tenants/768c2cd6-1bf0-4521-9f53-084a331d81cb/images/985453bb-eb5c-4ff2-8e06-aef4786ac445
Sample Response
{
"IsSuccess": true,
"Uri": "https://prodptimg.blob.core.windows.net/768c2cd6-1bf0-4521-9f53-084a331d81cb/images/985453bb-eb5c-4ff2-8e06-aef4786ac445?remaining-part-of-URL",
"UriMessage": null
}
定義
ImageDownloadInfo
名稱 | 類型 | Description |
---|---|---|
IsSuccess |
boolean |
取得或設定值,指出取得影像 URI 的要求是否成功。 |
Uri |
string |
取得或設定 SAS 映射 URI。 |
UriMessage |
string |
如果取得 URI 的要求失敗,取得或設定映射 URI 訊息 |