Share via


Phone Numbers - Release Phone Number

購入した電話番号を解放します。

DELETE {endpoint}/phoneNumbers/{phoneNumber}?api-version=2021-03-07

URI パラメーター

名前 / 必須 説明
endpoint
path True

string

通信リソース (例: https://resourcename.communication.azure.com)。

phoneNumber
path True

string

リリースされる電話番号 (例: +11234567890)。

api-version
query True

string

呼び出す API のバージョン。

応答

名前 説明
202 Accepted

サービスは要求を受け入れ、後で処理を開始します。 すぐに 'Accepted' が返され、'Operation-Location' ヘッダーと 'Location' ヘッダーが含まれます。 クライアント側では、'Operation-Location' ヘッダーで指定された URL を使用して、操作の状態をさらに照会する必要があります。 操作が正常に完了したら、'Location' ヘッダーで指定された URL を使用して最終的な結果を照会します。

Headers

  • Operation-Location: string
  • operation-id: string
  • release-id: string
Other Status Codes

CommunicationErrorResponse

障害

Release phone number

Sample Request

DELETE https://resourcename.communication.azure.com//phoneNumbers/+11234567890?api-version=2021-03-07

Sample Response

Operation-Location: /phoneNumbers/operations/release_378ddf60-81be-452a-ba4f-613198ea6c28
operation-id: release_378ddf60-81be-452a-ba4f-613198ea6c28
release-id: 378ddf60-81be-452a-ba4f-613198ea6c28

定義

名前 説明
CommunicationError

Communication Services エラー。

CommunicationErrorResponse

Communication Services エラー。

CommunicationError

Communication Services エラー。

名前 説明
code

string

エラー コード。

details

CommunicationError[]

このエラーの原因となった特定のエラーの詳細。

innererror

CommunicationError

内部エラー (存在する場合)。

message

string

エラー メッセージ。

target

string

エラーのターゲット。

CommunicationErrorResponse

Communication Services エラー。

名前 説明
error

CommunicationError

Communication Services エラー。