Phone Numbers - Purchase Phone Numbers
電話番号を購入します。
POST {endpoint}/availablePhoneNumbers/:purchase?api-version=2022-12-01
URI パラメーター
名前 | / | 必須 | 型 | 説明 |
---|---|---|---|---|
endpoint
|
path | True |
string url |
通信リソース (例: https://resourcename.communication.azure.com |
api-version
|
query | True |
string |
呼び出す API のバージョン |
要求本文
名前 | 型 | 説明 |
---|---|---|
searchId |
string |
検索 ID。 |
応答
名前 | 型 | 説明 |
---|---|---|
202 Accepted |
サービスは要求を受け入れ、後で処理を開始します。 すぐに 'Accepted' が返され、'Operation-Location' ヘッダーが含まれます。 クライアント側では、'Operation-Location' ヘッダーで指定された URL を使用して、操作の状態をさらに照会する必要があります。 ヘッダー
|
|
Other Status Codes |
失敗 |
例
Purchase phone numbers
要求のサンプル
POST https://resourcename.communication.azure.com//availablePhoneNumbers/:purchase?api-version=2022-12-01
{
"searchId": "378ddf60-81be-452a-ba4f-613198ea6c28"
}
応答のサンプル
Operation-Location: /phoneNumbers/operations/purchase_378ddf60-81be-452a-ba4f-613198ea6c28
operation-id: purchase_378ddf60-81be-452a-ba4f-613198ea6c28
purchase-id: 378ddf60-81be-452a-ba4f-613198ea6c28
定義
名前 | 説明 |
---|---|
Communication |
Communication Services エラー。 |
Communication |
Communication Services エラー。 |
Phone |
電話番号検索購入要求。 |
CommunicationError
Communication Services エラー。
名前 | 型 | 説明 |
---|---|---|
code |
string |
エラー コード。 |
details |
このエラーの原因となった特定のエラーの詳細。 |
|
innererror |
内部エラーがある場合。 |
|
message |
string |
エラー メッセージ。 |
target |
string |
エラーターゲット。 |
CommunicationErrorResponse
Communication Services エラー。
名前 | 型 | 説明 |
---|---|---|
error |
Communication Services エラー。 |
PhoneNumberPurchaseRequest
電話番号検索購入要求。
名前 | 型 | 説明 |
---|---|---|
searchId |
string |
検索 ID。 |