Communication Service - Get
取得 CommunicationService 及其屬性。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}?api-version=2020-08-20
URI 參數
名稱 | 位於 | 必要 | 類型 | Description |
---|---|---|---|---|
communication
|
path | True |
string |
CommunicationService 資源的名稱。 Regex 模式: |
resource
|
path | True |
string |
資源群組的名稱。 名稱不區分大小寫。 |
subscription
|
path | True |
string |
目標訂用帳戶的標識碼。 |
api-version
|
query | True |
string |
要用於這項作業的 API 版本。 |
回應
名稱 | 類型 | Description |
---|---|---|
200 OK |
成功。 回應描述對應的 CommunicationService 服務。 |
|
Other Status Codes |
描述作業失敗原因的錯誤回應。 |
範例
Get resource
範例要求
GET https://management.azure.com/subscriptions/12345/resourceGroups/MyResourceGroup/providers/Microsoft.Communication/communicationServices/MyCommunicationResource?api-version=2020-08-20
範例回覆
{
"id": "/subscriptions/12345/resourceGroups/MyResourceGroup/providers/Microsoft.Communication/CommunicationServices/MyCommunicationResource",
"name": "MyCommunicationResource",
"type": "Microsoft.Communication/CommunicationServices",
"location": "Global",
"properties": {
"dataLocation": "United States",
"provisioningState": "Running",
"hostName": "mycommunicationservice.comms.azure.net",
"version": "0.2.0"
}
}
{
"error": {
"code": "ResourceNotFound",
"message": "The requested resource was not found"
}
}
定義
名稱 | Description |
---|---|
Communication |
代表 CommunicationService 資源的類別。 |
created |
建立資源的身分識別類型。 |
Error |
資源管理錯誤其他資訊。 |
Error |
錯誤詳細數據。 |
Error |
錯誤回應 |
Provisioning |
資源布建狀態。 |
system |
與建立和上次修改資源相關的元數據。 |
CommunicationServiceResource
代表 CommunicationService 資源的類別。
名稱 | 類型 | Description |
---|---|---|
id |
string |
資源的完整資源標識碼。 例如 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
location |
string |
CommunicationService 執行所在的 Azure 位置。 |
name |
string |
資源的名稱 |
properties.dataLocation |
string |
通訊服務儲存待用數據的位置。 |
properties.hostName |
string |
CommunicationService 實例的 FQDN。 |
properties.immutableResourceId |
string |
通訊服務的不可變資源標識碼。 |
properties.notificationHubId |
string |
連結至此資源的 Azure 通知中樞資源識別碼。 |
properties.provisioningState |
資源布建狀態。 |
|
properties.version |
string |
CommunicationService 資源的版本。 您可能需要相同或更新版本的用戶端 SDK。 |
systemData |
與建立和上次修改資源相關的元數據。 |
|
tags |
object |
服務的標記,這是描述資源的索引鍵值組清單。 |
type |
string |
資源的型別。 例如“Microsoft.Compute/virtualMachines” 或 “Microsoft.Storage/storageAccounts” |
createdByType
建立資源的身分識別類型。
名稱 | 類型 | Description |
---|---|---|
Application |
string |
|
Key |
string |
|
ManagedIdentity |
string |
|
User |
string |
ErrorAdditionalInfo
資源管理錯誤其他資訊。
名稱 | 類型 | Description |
---|---|---|
info |
object |
其他資訊。 |
type |
string |
其他信息類型。 |
ErrorDetail
錯誤詳細數據。
名稱 | 類型 | Description |
---|---|---|
additionalInfo |
錯誤其他資訊。 |
|
code |
string |
錯誤碼。 |
details |
錯誤詳細數據。 |
|
message |
string |
錯誤訊息。 |
target |
string |
錯誤目標。 |
ErrorResponse
錯誤回應
名稱 | 類型 | Description |
---|---|---|
error |
error 物件。 |
ProvisioningState
資源布建狀態。
名稱 | 類型 | Description |
---|---|---|
Canceled |
string |
|
Creating |
string |
|
Deleting |
string |
|
Failed |
string |
|
Moving |
string |
|
Running |
string |
|
Succeeded |
string |
|
Unknown |
string |
|
Updating |
string |
systemData
與建立和上次修改資源相關的元數據。
名稱 | 類型 | Description |
---|---|---|
createdAt |
string |
資源建立的時間戳(UTC)。 |
createdBy |
string |
建立資源的身分識別。 |
createdByType |
建立資源的身分識別類型。 |
|
lastModifiedAt |
string |
上次修改的資源時間戳 (UTC) |
lastModifiedBy |
string |
上次修改資源的身分識別。 |
lastModifiedByType |
上次修改資源的身分識別類型。 |