Pobierz listę zadań naprawyGet Repair Task List
Pobiera listę zadań naprawy pasujących do danego filtrów.Gets a list of repair tasks matching the given filters.
Ten interfejs API obsługuje platformę sieci szkieletowej usług; nie jest przeznaczony do użycia bezpośrednio z kodu.This API supports the Service Fabric platform; it is not meant to be used directly from your code.
ŻądanieRequest
MetodaMethod | Identyfikator URI żądaniaRequest URI |
---|---|
GETGET | /$/GetRepairTaskList?api-version=6.0&TaskIdFilter={TaskIdFilter}&StateFilter={StateFilter}&ExecutorFilter={ExecutorFilter} |
ParametryParameters
NazwaName | TypType | WymaganyRequired | LokalizacjaLocation |
---|---|---|---|
api-version |
ciągstring | TakYes | ZapytanieQuery |
TaskIdFilter |
ciągstring | NieNo | ZapytanieQuery |
StateFilter |
liczba całkowitainteger | NieNo | ZapytanieQuery |
ExecutorFilter |
ciągstring | NieNo | ZapytanieQuery |
api-version
Typ: ciąg znakówType: string
Wymagane: TakRequired: Yes
Domyślnie:6.0
Default: 6.0
Wersja interfejsu API.The version of the API. Ten parametr jest wymagany, a jego wartość musi wynosić "6.0".This parameter is required and its value must be '6.0'.
Wersja interfejsu API REST sieci szkieletowej usług jest oparta na wersji środowiska wykonawczego, w której interfejs API został wprowadzony lub został zmieniony.Service Fabric REST API version is based on the runtime version in which the API was introduced or was changed. Środowisko uruchomieniowe sieci szkieletowej usług obsługuje więcej niż jedną wersję interfejsu API.Service Fabric runtime supports more than one version of the API. Jest to najnowsza obsługiwana wersja interfejsu API.This is the latest supported version of the API. Jeśli niższa wersja interfejsu API jest przekazywana, zwrócona odpowiedź może się różnić od tej, która została udokumentowana w tej specyfikacji.If a lower API version is passed, the returned response may be different from the one documented in this specification.
Ponadto środowisko wykonawcze akceptuje dowolną wersję, która jest wyższa niż najnowsza obsługiwana wersja do bieżącej wersji środowiska wykonawczego.Additionally the runtime accept any version that is higher than the latest supported version up to the current version of the runtime. Więc jeśli najnowsza wersja interfejsu API jest 6.0, ale jeśli środowisko wykonawcze jest 6.1, aby ułatwić zapisywanie klientów, środowisko wykonawcze zaakceptuje wersję 6.1 dla tego interfejsu API.So if the latest API version is 6.0, but if the runtime is 6.1, in order to make it easier to write the clients, the runtime will accept version 6.1 for that API. Jednak zachowanie interfejsu API będzie zgodnie z udokumentowaną wersją 6.0.However the behavior of the API will be as per the documented 6.0 version.
TaskIdFilter
Typ: ciąg znakówType: string
Wymagane: NieRequired: No
Prefiks identyfikatora zadania naprawy, który ma być dopasowany.The repair task ID prefix to be matched.
StateFilter
Typ: całkowitaType: integer
Wymagane: NieRequired: No
Bitowy-OR z następujących wartości, określając, które stany zadań powinny być uwzględnione na liście wyników.A bitwise-OR of the following values, specifying which task states should be included in the result list.
- 1 - Utworzono1 - Created
- 2 - Zgłoszone2 - Claimed
- 4 - Przygotowanie4 - Preparing
- 8 - Zatwierdzone8 - Approved
- 16 - Wykonanie16 - Executing
- 32 - Przywracanie32 - Restoring
- 64 - Zakończono64 - Completed
ExecutorFilter
Typ: ciąg znakówType: string
Wymagane: NieRequired: No
Nazwa wykonawcy naprawy, którego zadania roszczenia powinny być zawarte na liście.The name of the repair executor whose claimed tasks should be included in the list.
OdpowiedziResponses
Kod stanu HTTPHTTP Status Code | OpisDescription | Response SchemaResponse Schema |
---|---|---|
200 (OK)200 (OK) | Pomyślna operacja zwróci kod stanu 200.A successful operation will return 200 status code. Treść odpowiedzi zawiera listę zadań naprawy pasujących do wszystkich podanych filtrów.The response body provides a list of repair tasks matching all of the given filters. |
tablica NaprawaZadaniearray of RepairTask |
Wszystkie inne kody stanuAll other status codes | Szczegółowa odpowiedź na błąd.The detailed error response. |
Producent tkaninFabricError |