Dela via


Communication Service - Get

Hämta CommunicationService och dess egenskaper.

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}?api-version=2020-08-20

URI-parametrar

Name I Obligatorisk Typ Description
communicationServiceName
path True

string

Namnet på CommunicationService-resursen.

Reguljärt uttrycksmönster: ^[-\w]+$

resourceGroupName
path True

string

Namnet på resursgruppen. Namnet är skiftlägesokänsligt.

subscriptionId
path True

string

ID för målprenumerationen.

api-version
query True

string

DEN API-version som ska användas för den här åtgärden.

Svar

Name Typ Description
200 OK

CommunicationServiceResource

Framgång. Svaret beskriver motsvarande CommunicationService-tjänst.

Other Status Codes

ErrorResponse

Felsvar som beskriver varför åtgärden misslyckades.

Exempel

Get resource

Exempelbegäran

GET https://management.azure.com/subscriptions/12345/resourceGroups/MyResourceGroup/providers/Microsoft.Communication/communicationServices/MyCommunicationResource?api-version=2020-08-20

Exempelsvar

{
  "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"
  }
}

Definitioner

Name Description
CommunicationServiceResource

En klass som representerar en CommunicationService-resurs.

createdByType

Den typ av identitet som skapade resursen.

ErrorAdditionalInfo

Ytterligare information om resurshanteringsfelet.

ErrorDetail

Felinformationen.

ErrorResponse

Felsvar

ProvisioningState

Etableringstillstånd för resursen.

systemData

Metadata som rör skapande och senaste ändring av resursen.

CommunicationServiceResource

En klass som representerar en CommunicationService-resurs.

Name Typ Description
id

string

Fullständigt kvalificerat resurs-ID för resursen. Ex – /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

location

string

Den Azure-plats där CommunicationService körs.

name

string

Namnet på resursen

properties.dataLocation

string

Platsen där kommunikationstjänsten lagrar sina vilande data.

properties.hostName

string

FQDN för CommunicationService-instansen.

properties.immutableResourceId

string

Det oföränderliga resurs-ID:t för kommunikationstjänsten.

properties.notificationHubId

string

Resurs-ID för en Azure Notification Hub som är länkad till den här resursen.

properties.provisioningState

ProvisioningState

Etableringstillstånd för resursen.

properties.version

string

Version av CommunicationService-resursen. Förmodligen behöver du samma eller högre version av klient-SDK:er.

systemData

systemData

Metadata som rör skapande och senaste ändring av resursen.

tags

object

Taggar för tjänsten som är en lista över nyckelvärdepar som beskriver resursen.

type

string

Resurstypen. Till exempel "Microsoft.Compute/virtualMachines" eller "Microsoft.Storage/storageAccounts"

createdByType

Den typ av identitet som skapade resursen.

Name Typ Description
Application

string

Key

string

ManagedIdentity

string

User

string

ErrorAdditionalInfo

Ytterligare information om resurshanteringsfelet.

Name Typ Description
info

object

Ytterligare information.

type

string

Ytterligare informationstyp.

ErrorDetail

Felinformationen.

Name Typ Description
additionalInfo

ErrorAdditionalInfo[]

Ytterligare information om felet.

code

string

Felkoden.

details

ErrorDetail[]

Felinformationen.

message

string

Felmeddelandet.

target

string

Felmålet.

ErrorResponse

Felsvar

Name Typ Description
error

ErrorDetail

Felobjektet.

ProvisioningState

Etableringstillstånd för resursen.

Name Typ Description
Canceled

string

Creating

string

Deleting

string

Failed

string

Moving

string

Running

string

Succeeded

string

Unknown

string

Updating

string

systemData

Metadata som rör skapande och senaste ändring av resursen.

Name Typ Description
createdAt

string

Tidsstämpeln för resursskapande (UTC).

createdBy

string

Identiteten som skapade resursen.

createdByType

createdByType

Den typ av identitet som skapade resursen.

lastModifiedAt

string

Tidsstämpeln för resursens senaste ändring (UTC)

lastModifiedBy

string

Identiteten som senast ändrade resursen.

lastModifiedByType

createdByType

Den typ av identitet som senast ändrade resursen.