Delen via


Smtp Usernames - List

Haal alle SmtpUsernameResources op voor een communicatiebron.

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}/smtpUsernames?api-version=2025-05-01-preview

URI-parameters

Name In Vereist Type Description
communicationServiceName
path True

string

minLength: 1
maxLength: 63
pattern: ^[-\w]+$

De naam van de CommunicationService-resource.

resourceGroupName
path True

string

minLength: 1
maxLength: 90

De naam van de resourcegroep. De naam is hoofdletterongevoelig.

subscriptionId
path True

string (uuid)

De id van het doelabonnement. De waarde moet een UUID zijn.

api-version
query True

string

minLength: 1

De API-versie die voor deze bewerking moet worden gebruikt.

Antwoorden

Name Type Description
200 OK

SmtpUsernameResourceCollection

Geslaagd. Het verzamelen van SmtpUsername-bronnen.

Other Status Codes

ErrorResponse

Foutreactie waarin wordt beschreven waarom de bewerking is mislukt.

Voorbeelden

Get all SmtpUsername resources for a CommunicationService resource.

Voorbeeldaanvraag

GET https://management.azure.com/subscriptions/11112222-3333-4444-5555-666677778888/resourceGroups/contosoResourceGroup/providers/Microsoft.Communication/communicationServices/contosoACSService/smtpUsernames?api-version=2025-05-01-preview

Voorbeeldrespons

{
  "value": [
    {
      "id": "/subscriptions/11112222-3333-4444-5555-666677778888/resourceGroups/contosoResourceGroup/providers/Microsoft.Communication/CommunicationServices/contosoACSService/SmtpUsername/smtpusername1",
      "name": "smtpusername1",
      "type": "Microsoft.Communication/CommunicationServices/SmtpUsername",
      "properties": {
        "username": "newuser1@contoso.com",
        "entraApplicationId": "aaaa1111-bbbb-2222-3333-aaaa1111abcd",
        "tenantId": "aaaa1111-bbbb-2222-3333-aaaa11112222"
      }
    },
    {
      "id": "/subscriptions/11112222-3333-4444-5555-666677778888/resourceGroups/contosoResourceGroup/providers/Microsoft.Communication/CommunicationServices/contosoACSService/SmtpUsername/smtpusername2",
      "name": "smtpusername2",
      "type": "Microsoft.Communication/CommunicationServices/SmtpUsername",
      "properties": {
        "username": "newuser2@contoso.com",
        "entraApplicationId": "bbbb1111-1234-2222-3333-aaaa1111abcd",
        "tenantId": "aaaa1111-bbbb-2222-3333-aaaa11112222"
      }
    }
  ],
  "nextLink": "https://management.azure.com/subscriptions/11112222-3333-4444-5555-666677778888/resourceGroups/contosoResourceGroup/providers/Microsoft.Communication/communicationServices/contosoACSService/smtpUsernames?skiptoken=dae9w8wieyo29sadiue2=="
}
{
  "error": {
    "code": "ResourceNotFound",
    "message": "The requested resource was not found"
  }
}

Definities

Name Description
createdByType

Het type identiteit waarmee de resource is gemaakt.

ErrorAdditionalInfo

Aanvullende informatie over de resourcebeheerfout.

ErrorDetail

De foutdetails.

ErrorResponse

Foutreactie

SmtpUsernameResource

Het object dat de smtp-gebruikersnaambron beschrijft.

SmtpUsernameResourceCollection

Verzameling van SmtpUsername-bronnen. Het antwoord bevat een nextLink als het antwoord meer pagina's bevat.

systemData

Metagegevens met betrekking tot het maken en de laatste wijziging van de resource.

createdByType

Het type identiteit waarmee de resource is gemaakt.

Waarde Description
Application
Key
ManagedIdentity
User

ErrorAdditionalInfo

Aanvullende informatie over de resourcebeheerfout.

Name Type Description
info

object

De aanvullende informatie.

type

string

Het extra informatietype.

ErrorDetail

De foutdetails.

Name Type Description
additionalInfo

ErrorAdditionalInfo[]

De fout bevat aanvullende informatie.

code

string

De foutcode.

details

ErrorDetail[]

De foutdetails.

message

string

Het foutbericht.

target

string

Het foutdoel.

ErrorResponse

Foutreactie

Name Type Description
error

ErrorDetail

Het foutobject.

SmtpUsernameResource

Het object dat de smtp-gebruikersnaambron beschrijft.

Name Type Description
id

string (arm-id)

Volledig gekwalificeerde resource-id voor de resource. Bijvoorbeeld /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceType}/{resourceName}"

name

string

De naam van de resource

properties.entraApplicationId

string (uuid)

De toepassings-id voor de gekoppelde Entra-toepassing.

properties.tenantId

string (uuid)

De tenant van de gekoppelde Entra-toepassing.

properties.username

string

De SMTP-gebruikersnaam. Dit kan een vrije vorm zijn of in de indeling van het e-mailadres.

systemData

systemData

Azure Resource Manager-metagegevens met createdBy- en modifiedBy-gegevens.

type

string

Het type bron. Bijvoorbeeld 'Microsoft.Compute/virtualMachines' of 'Microsoft.Storage/storageAccounts'

SmtpUsernameResourceCollection

Verzameling van SmtpUsername-bronnen. Het antwoord bevat een nextLink als het antwoord meer pagina's bevat.

Name Type Description
nextLink

string

De URL die de client moet gebruiken om de volgende pagina op te halen (paging aan de serverzijde).

value

SmtpUsernameResource[]

Lijst met SmtpUsername-bronnen.

systemData

Metagegevens met betrekking tot het maken en de laatste wijziging van de resource.

Name Type Description
createdAt

string (date-time)

De tijdstempel van het maken van resources (UTC).

createdBy

string

De identiteit waarmee de resource is gemaakt.

createdByType

createdByType

Het type identiteit waarmee de resource is gemaakt.

lastModifiedAt

string (date-time)

De tijdstempel van de laatste wijziging van de resource (UTC)

lastModifiedBy

string

De identiteit die de resource voor het laatst heeft gewijzigd.

lastModifiedByType

createdByType

Het type identiteit dat de resource voor het laatst heeft gewijzigd.