Dapatkan Konten Penyimpanan Citra
Mendapatkan informasi konten penyimpanan citra.
Mengembalikan informasi tentang konten penyimpanan citra pada contentPath yang ditentukan. ContentPath dibandingkan akar penyimpanan citra.
Minta
Metode | URI Permintaan |
---|---|
GET | /ImageStore/{contentPath}?api-version=6.2&timeout={timeout} |
Parameter
Nama | Jenis | Diperlukan | Lokasi |
---|---|---|---|
contentPath |
string | Ya | Jalur |
api-version |
string | Ya | Kueri |
timeout |
bilangan bulat (int64) | Tidak | Kueri |
contentPath
Jenis: string
Diperlukan: Ya
Jalur relatif ke file atau folder di penyimpanan citra dari akarnya.
api-version
Jenis: string
Diperlukan: Ya
Default: 6.2
Versi API. Parameter ini diperlukan dan nilainya harus '6.2'.
Versi REST API Service Fabric didasarkan pada versi runtime tempat API diperkenalkan atau diubah. Runtime Service Fabric mendukung lebih dari satu versi API. Versi ini adalah versi API terbaru yang didukung. Jika versi API yang lebih rendah diteruskan, respons yang dikembalikan mungkin berbeda dari yang di dokumentasikan dalam spesifikasi ini.
Selain itu, runtime menerima versi apa pun yang lebih tinggi dari versi terbaru yang didukung hingga versi runtime saat ini. Jadi, jika versi API terbaru adalah 6.0 dan runtime adalah 6.1, runtime akan menerima versi 6.1 untuk API tersebut. Namun perilaku API akan sesuai dengan versi 6.0 yang di dokumentasikan.
timeout
Jenis: bilangan bulat (int64)
Diperlukan: Tidak
Default: 60
InclusiveMaximum: 4294967295
InclusiveMinimum: 1
Batas waktu server untuk melakukan operasi dalam hitungan detik. Batas waktu ini menentukan durasi waktu klien bersedia menunggu operasi yang diminta selesai. Nilai default untuk parameter ini adalah 60 detik.
Respons
Kode Status HTTP | Deskripsi | Skema Respons |
---|---|---|
200 (OK) | Operasi yang berhasil akan mengembalikan kode status 200 dan informasi konten penyimpanan gambar yang diminta. |
ImageStoreContent |
Semua kode status lainnya | Respons kesalahan terperinci. |
FabricError |
Contoh
Mendapatkan informasi tentang konten penyimpanan gambar di bawah jalur relatif tertentu
Contoh ini menunjukkan cara mendapatkan konten penyimpanan gambar di bawah jalur relatif yang diberikan.
Minta
GET http://localhost:19080/ImageStore/Store\CalcServiceApp?api-version=6.2
Respons 200
Isi
{
"StoreFiles": [
{
"StoreRelativePath": "Store\\CalcServiceApp\\ApplicationManifest.2.0.xml",
"FileVersion": {
"EpochDataLossNumber": "131510254310497004",
"VersionNumber": "23",
"EpochConfigurationNumber": "25769803776"
},
"FileSize": "897",
"ModifiedDate": "2017-09-28T17:44:22.609Z"
},
{
"StoreRelativePath": "Store\\CalcServiceApp\\CalcService.Code.2.0.checksum",
"FileVersion": {
"EpochDataLossNumber": "131510254310497004",
"VersionNumber": "25",
"EpochConfigurationNumber": "25769803776"
},
"FileSize": "66",
"ModifiedDate": "2017-09-28T17:44:22.468Z"
},
{
"StoreRelativePath": "Store\\CalcServiceApp\\CalcService.Config.1.0.checksum",
"FileVersion": {
"EpochDataLossNumber": "131510254310497004",
"VersionNumber": "26",
"EpochConfigurationNumber": "25769803776"
},
"FileSize": "66",
"ModifiedDate": "2017-09-28T17:44:22.468Z"
},
{
"StoreRelativePath": "Store\\CalcServiceApp\\CalcService.Data.2.0.checksum",
"FileVersion": {
"EpochDataLossNumber": "131510254310497004",
"VersionNumber": "27",
"EpochConfigurationNumber": "25769803776"
},
"FileSize": "66",
"ModifiedDate": "2017-09-28T17:44:22.468Z"
},
{
"StoreRelativePath": "Store\\CalcServiceApp\\CalcService.Manifest.2.0.xml",
"FileVersion": {
"EpochDataLossNumber": "131510254310497004",
"VersionNumber": "19",
"EpochConfigurationNumber": "25769803776"
},
"FileSize": "744",
"ModifiedDate": "2017-09-28T17:44:22.578Z"
},
{
"StoreRelativePath": "Store\\CalcServiceApp\\CalcService.Manifest.2.0.xml.checksum",
"FileVersion": {
"EpochDataLossNumber": "131510254310497004",
"VersionNumber": "24",
"EpochConfigurationNumber": "25769803776"
},
"FileSize": "66",
"ModifiedDate": "2017-09-28T17:44:22.484Z"
}
],
"StoreFolders": [
{
"StoreRelativePath": "Store\\CalcServiceApp\\CalcService.Code.2.0",
"FileCount": "2"
},
{
"StoreRelativePath": "Store\\CalcServiceApp\\CalcService.Config.1.0",
"FileCount": "2"
},
{
"StoreRelativePath": "Store\\CalcServiceApp\\CalcService.Data.2.0",
"FileCount": "2"
}
]
}