Container Registry Blob - Get Chunk
Recuperare il BLOB dal Registro di sistema identificato da digest. Questo endpoint può anche supportare richieste di intervallo conformi RFC7233. Il supporto può essere rilevato emettendo una richiesta HEAD. Se viene restituita l'intestazione Accept-Range: bytes , le richieste di intervallo possono essere utilizzate per recuperare il contenuto parziale.
GET {endpoint}/v2/{name}/blobs/{digest}?_overload=getChunk&api-version=2021-07-01
Parametri dell'URI
| Nome | In | Necessario | Tipo | Descrizione |
|---|---|---|---|---|
|
digest
|
path | True |
string |
Digest di un BLOB |
|
endpoint
|
path | True |
string (uri) |
|
|
name
|
path | True |
string |
Nome dell'immagine (incluso il namespace) |
|
api-version
|
query | True |
string minLength: 1 |
Versione dell'API da usare per questa operazione. |
Intestazione della richiesta
| Nome | Necessario | Tipo | Descrizione |
|---|---|---|---|
| range | True |
string |
Formato: bytes=<start-end><>, intestazione dell'intervallo HTTP che specifica il blocco blob. |
Risposte
| Nome | Tipo | Descrizione |
|---|---|---|
| Other Status Codes |
file |
Operazione completata Media Types: "application/octet-stream", "application/json" Intestazioni
|
| Other Status Codes |
Risposta di errore imprevista. Media Types: "application/octet-stream", "application/json" |
Sicurezza
OAuth2Auth
Tipo:
oauth2
Flow:
implicit
URL di autorizzazione:
https://login.microsoftonline.com/common/oauth2/authorize
Ambiti
| Nome | Descrizione |
|---|---|
| https://containerregistry.azure.net/.default |
Esempio
Get a blob Chunk
Esempio di richiesta
GET {endpoint}/v2/prod/bash/blobs/sha256:16463e0c481e161aabb735437d30b3c9c7391c2747cc564bb927e843b73dcb39?_overload=getChunk&api-version=2021-07-01
Risposta di esempio
Content-Length: 300
Content-Range: bytes 0-299/5635
"eyJhcmNoaXRlY3R1cmUiOiJhbWQ2NCIsImNvbmZpZyI6eyJIb3N0bmFtZSI6IiIsIkRvbWFpbm5hbWUiOiIiLCJVc2VyIjoiIiwiQXR0YWNoU3RkaW4iOmZhbHNlLCJBdHRhY2hTdGRvdXQiOmZhbHNlLCJBdHRhY2hTdGRlcnIiOmZhbHNlLCJUdHkiOmZhbHNlLCJPcGVuU3RkaW4iOmZhbHNlLCJTdGRpbk9uY2UiOmZhbHNlLCJFbnYiOlsiUEFUSD0vdXNyL2xvY2FsL3NiaW46L3Vzci9sb2NhbC9iaW46L3Vzci9zYmluOi91c3IvYmluOi9zYmluOi9iaW4iLCJfQkFTSF9HUEdfS0VZPTdDMDEzNUZCMDg4QUFGNkM2NkM2NTBCOUJC"
Definizioni
| Nome | Descrizione |
|---|---|
|
Acr |
Informazioni sugli errori |
|
Acr |
Risposta di errore ACR che descrive il motivo per cui l'operazione non è riuscita |
AcrErrorInfo
Informazioni sugli errori
| Nome | Tipo | Descrizione |
|---|---|---|
| code |
string |
Codice di errore |
| detail |
object |
Dettagli errore |
| message |
string |
Messaggio di errore |
AcrErrors
Risposta di errore ACR che descrive il motivo per cui l'operazione non è riuscita
| Nome | Tipo | Descrizione |
|---|---|---|
| errors |
Matrice di errori dettagliati |