Phone Numbers - Get Operation
ID で操作を取得します。
GET {endpoint}/phoneNumbers/operations/{operationId}?api-version=2022-12-01
URI パラメーター
名前 | / | 必須 | 型 | 説明 |
---|---|---|---|---|
endpoint
|
path | True |
string url |
通信リソース (例: https://resourcename.communication.azure.com |
operation
|
path | True |
string |
操作の ID |
api-version
|
query | True |
string |
呼び出す API のバージョン |
応答
名前 | 型 | 説明 |
---|---|---|
200 OK |
操作が完了したら、応答ヘッダーの 'Location' 属性で指定された URL を使用して、操作の最終的な結果を照会します。 ヘッダー Location: string |
|
Other Status Codes |
失敗 |
例
Get long running operation status by operation id
要求のサンプル
GET https://resourcename.communication.azure.com//phoneNumbers/operations/search-my-operation-id?api-version=2022-12-01
応答のサンプル
Location: /availablePhoneNumbers/searchResults/378ddf60-81be-452a-ba4f-613198ea6c28
{
"status": "succeeded",
"resourceLocation": "/availablePhoneNumbers/searchResults/378ddf60-81be-452a-ba4f-613198ea6c28",
"createdDateTime": "2020-11-19T16:31:49.048Z",
"id": "search-my-operation-id",
"operationType": "search",
"lastActionDateTime": "2020-11-19T22:31:49.048Z"
}
定義
名前 | 説明 |
---|---|
Communication |
Communication Services エラー。 |
Communication |
Communication Services エラー。 |
Phone |
|
Phone |
操作の状態。 |
Phone |
操作の種類 (検索など) |
CommunicationError
Communication Services エラー。
名前 | 型 | 説明 |
---|---|---|
code |
string |
エラー コード。 |
details |
このエラーの原因となった特定のエラーの詳細。 |
|
innererror |
内部エラーがある場合。 |
|
message |
string |
エラー メッセージ。 |
target |
string |
エラーターゲット。 |
CommunicationErrorResponse
Communication Services エラー。
名前 | 型 | 説明 |
---|---|---|
error |
Communication Services エラー。 |
PhoneNumberOperation
名前 | 型 | 説明 |
---|---|---|
createdDateTime |
string |
操作が作成された日付。 |
error |
Communication Services エラー。 |
|
id |
string |
操作の ID。 |
lastActionDateTime |
string |
操作が変更された最新の日付。 |
operationType |
操作の種類 (検索など) |
|
resourceLocation |
string |
操作の結果を取得するための URL (ある場合)。 |
status |
操作の状態。 |
PhoneNumberOperationStatus
操作の状態。
名前 | 型 | 説明 |
---|---|---|
failed |
string |
|
notStarted |
string |
|
running |
string |
|
succeeded |
string |
PhoneNumberOperationType
操作の種類 (検索など)
名前 | 型 | 説明 |
---|---|---|
purchase |
string |
|
releasePhoneNumber |
string |
|
search |
string |
|
updatePhoneNumberCapabilities |
string |