Wymuń zatwierdź zadanie naprawyForce Approve Repair Task
Wymusza zatwierdzenie danego zadania naprawczego.Forces the approval of the given repair task.
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 |
---|---|
POSTPOST | /$/ForceApproveRepairTask?api-version=6.0 |
ParametryParameters
NazwaName | TypType | WymaganyRequired | LokalizacjaLocation |
---|---|---|---|
api-version |
ciągstring | TakYes | ZapytanieQuery |
RepairTaskApproveDescription |
NaprawaTaskApproveDescriptionRepairTaskApproveDescription | TakYes | TreśćBody |
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.
RepairTaskApproveDescription
Typ: RepairTaskApproveDescriptionType: RepairTaskApproveDescription
Wymagane: TakRequired: Yes
Opisuje zadanie naprawy, które ma zostać zatwierdzone.Describes the repair task to be approved.
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 informacje o zaktualizowanym zadaniu naprawy.The response body provides information about the updated repair task. |
NaprawaTaskUpdateInfoRepairTaskUpdateInfo |
Wszystkie inne kody stanuAll other status codes | Szczegółowa odpowiedź na błąd.The detailed error response. |
Producent tkaninFabricError |