Share via


Endpoints - Resume

Verilen kimlik tarafından tanımlanan uç noktayı sürdürür.

POST {endpoint}/customvoice/endpoints/{id}:resume?api-version=2023-12-01-preview

URI Parametreleri

Name İçinde Gerekli Tür Description
endpoint
path True

string

Desteklenen Bilişsel Hizmetler uç noktaları (protokol ve konak adı, örneğin: https://eastus.api.cognitive.microsoft.com).

id
path True

string

uuid

UUID olması gereken kaynak kimliği.

api-version
query True

string

Bu işlem için kullanılacak API sürümü.

İstek Başlığı

Name Gerekli Tür Description
Ocp-Apim-Subscription-Key True

string

Konuşma kaynak anahtarınızı burada belirtin.

Operation-Id

string

İşlem için durum izleyicisinin kimliği. Operation-Id üst bilgisi mevcut bir işlemle eşleşiyorsa ve istek önceki istekle aynı değilse, 400 Hatalı İstek ile başarısız olur.

Regex pattern: ^[a-zA-Z0-9][a-zA-Z0-9._-]{1,62}[a-zA-Z0-9]$

Yanıtlar

Name Tür Description
202 Accepted

Endpoint

Kabul edildi

Headers

  • Operation-Id: string
  • Operation-Location: string
Other Status Codes

ErrorResponse

Bir hata oluşmuştur.

Güvenlik

Ocp-Apim-Subscription-Key

Konuşma kaynak anahtarınızı burada belirtin.

Type: apiKey
In: header

Örnekler

Resume an endpoint

Sample Request

POST {endpoint}/customvoice/endpoints/9f50c644-2121-40e9-9ea7-544e48bfe3cb:resume?api-version=2023-12-01-preview


Sample Response

Operation-Location: https://eastus.api.cognitive.microsoft.com/customvoice/operations/15cc4e23-3cc7-4811-adcc-75e5804765cc?api-version=2023-12-01-preview
Operation-Id: 15cc4e23-3cc7-4811-adcc-75e5804765cc
{
  "id": "9f50c644-2121-40e9-9ea7-544e48bfe3cb",
  "description": "Endpoint for Jessica voice",
  "projectId": "Jessica",
  "modelId": "Jessica",
  "properties": {
    "kind": "HighPerformance"
  },
  "status": "Running",
  "createdDateTime": "2023-04-01T05:30:00.000Z",
  "lastActionDateTime": "2023-04-02T10:15:30.000Z"
}

Tanımlar

Name Description
Endpoint

Uç nokta nesnesi

EndpointKind

Uç nokta türü

EndpointProperties

Uç nokta özellikleri

Error

Üst düzey hata, adresinde https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errorsbulunan Microsoft Azure REST API Yönergeleri'ni izler. Bu, hata kodu, ileti, ayrıntılar, hedef ve daha açıklayıcı ayrıntılar içeren bir iç hata içeren üst düzey bir hata içerir.

ErrorCode

Üst düzey hata kodu

ErrorResponse

Hata yanıtı, adresinde https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errorsbulunan Microsoft Azure REST API Yönergeleri'ni izler.

InnerError

İç hata, adresinde https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errorsbulunan Microsoft Azure REST API Yönergeleri'ni izler. Bu, gerekli özellikler hata kodunu, ileti ve isteğe bağlı özelliklerin hedef, iç hata (iç içe yerleştirilmiş olabilir) içerir.

Status

Kaynağın durumu.

Endpoint

Uç nokta nesnesi

Name Tür Description
createdDateTime

string

Nesnenin oluşturulduğu zaman damgası. Zaman damgası ISO 8601 tarih ve saat biçimi olarak kodlanmıştır ("YYYY-AA-GGThh:mm:ssZ", bkz https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations. ).

description

string

Uç nokta açıklaması

displayName

string

Uç nokta adı

id

string

Uç Nokta Kimliği

lastActionDateTime

string

Geçerli durumun girildiği zaman damgası. Zaman damgası ISO 8601 tarih ve saat biçimi olarak kodlanmıştır ("YYYY-AA-GGThh:mm:ssZ", bkz https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations. ).

modelId

string

Kaynak kimliği

projectId

string

Kaynak kimliği

properties

EndpointProperties

Uç nokta özellikleri

status

Status

Kaynağın durumu.

EndpointKind

Uç nokta türü

Name Tür Description
FastResume

string

HighPerformance

string

EndpointProperties

Uç nokta özellikleri

Name Tür Description
kind

EndpointKind

Uç nokta türü

Error

Üst düzey hata, adresinde https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errorsbulunan Microsoft Azure REST API Yönergeleri'ni izler. Bu, hata kodu, ileti, ayrıntılar, hedef ve daha açıklayıcı ayrıntılar içeren bir iç hata içeren üst düzey bir hata içerir.

Name Tür Description
code

ErrorCode

Üst düzey hata kodu

details

Error[]

Hata ve/veya beklenen ilkelerle ilgili ek destek ayrıntıları.

innererror

InnerError

İç hata, adresinde https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errorsbulunan Microsoft Azure REST API Yönergeleri'ni izler. Bu, gerekli özellikler hata kodunu, ileti ve isteğe bağlı özelliklerin hedef, iç hata (iç içe yerleştirilmiş olabilir) içerir.

message

string

Üst düzey hata iletisi.

target

string

Hatanın kaynağı. Örneğin, geçersiz model olması durumunda "model" veya "model kimliği" olabilir.

ErrorCode

Üst düzey hata kodu

Name Tür Description
BadArgument

string

BadRequest

string

Forbidden

string

InternalServerError

string

NotFound

string

ServiceUnavailable

string

TooManyRequests

string

Unauthorized

string

UnsupportedMediaType

string

ErrorResponse

Hata yanıtı, adresinde https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errorsbulunan Microsoft Azure REST API Yönergeleri'ni izler.

Name Tür Description
error

Error

Üst düzey hata, adresinde https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errorsbulunan Microsoft Azure REST API Yönergeleri'ni izler. Bu, hata kodu, ileti, ayrıntılar, hedef ve daha açıklayıcı ayrıntılar içeren bir iç hata içeren üst düzey bir hata içerir.

InnerError

İç hata, adresinde https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errorsbulunan Microsoft Azure REST API Yönergeleri'ni izler. Bu, gerekli özellikler hata kodunu, ileti ve isteğe bağlı özelliklerin hedef, iç hata (iç içe yerleştirilmiş olabilir) içerir.

Name Tür Description
code

string

Tanılamaya yardımcı olmak için ayrıntılı hata kodu.

innererror

InnerError

İç hata, adresinde https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errorsbulunan Microsoft Azure REST API Yönergeleri'ni izler. Bu, gerekli özellikler hata kodunu, ileti ve isteğe bağlı özelliklerin hedef, iç hata (iç içe yerleştirilmiş olabilir) içerir.

message

string

Ayrıntılı hata iletisi.

target

string

Hatanın kaynağı. Örneğin, geçersiz model olması durumunda "model" veya "model kimliği" olabilir.

Status

Kaynağın durumu.

Name Tür Description
Disabled

string

Disabling

string

Failed

string

NotStarted

string

Running

string

Succeeded

string