Delen via


Namespaces - Create Or Update

Maak een Azure Relay-naamruimte.

PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Relay/namespaces/{namespaceName}?api-version=2024-01-01

URI-parameters

Name In Vereist Type Description
namespaceName
path True

string

minLength: 6
maxLength: 50

De naamruimtenaam

resourceGroupName
path True

string

minLength: 1
maxLength: 90

Naam van de resourcegroep binnen het Azure-abonnement.

subscriptionId
path True

string

Abonnementsreferenties waarmee het Microsoft Azure-abonnement uniek wordt geïdentificeerd. De abonnements-id maakt deel uit van de URI voor elke serviceoproep.

api-version
query True

string

Client-API-versie.

Aanvraagbody

Name Type Description
parameters

RelayNamespace

Parameters die worden opgegeven om een naamruimteresource te maken.

Antwoorden

Name Type Description
200 OK

RelayNamespace

De aanvraag voor het maken van een naamruimte is voltooid.

201 Created

RelayNamespace

Aanvraag voor maken van naamruimte geaccepteerd.

Other Status Codes

ErrorResponse

Relay-foutreactie waarin wordt beschreven waarom de bewerking is mislukt.

Beveiliging

azure_auth

Azure Active Directory OAuth2-stroom

Type: oauth2
Stroom: implicit
Autorisatie-URL: https://login.microsoftonline.com/common/oauth2/authorize

Bereiken

Name Description
user_impersonation Uw gebruikersaccount imiteren

Voorbeelden

RelayNamespaceCreate

Voorbeeldaanvraag

PUT https://management.azure.com/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/resourcegroup/providers/Microsoft.Relay/namespaces/example-RelayNamespace-5849?api-version=2024-01-01

{
  "sku": {
    "name": "Standard",
    "tier": "Standard"
  },
  "location": "South Central US",
  "tags": {
    "tag1": "value1",
    "tag2": "value2"
  }
}

Voorbeeldrespons

{
  "sku": {
    "name": "Standard",
    "tier": "Standard"
  },
  "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/resourcegroup/providers/Microsoft.Relay/namespaces/example-RelayNamespace-5849",
  "name": "example-RelayNamespace-5849",
  "type": "Microsoft.Relay/Namespaces",
  "location": "South Central US",
  "tags": {
    "tag1": "value1",
    "tag2": "value2"
  },
  "properties": {
    "provisioningState": "Created",
    "metricId": "ffffffff-ffff-ffff-ffff-ffffffffffff:example-Relaynamespace-5849",
    "serviceBusEndpoint": "https://example-RelayNamespace-5849.servicebus.windows-int.net:443/"
  }
}
{
  "sku": {
    "name": "Standard",
    "tier": "Standard"
  },
  "id": "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/resourcegroup/providers/Microsoft.Relay/namespaces/example-RelayNamespace-5849",
  "name": "example-RelayNamespace-5849",
  "type": "Microsoft.Relay/Namespaces",
  "location": "South Central US",
  "tags": {
    "tag1": "value1",
    "tag2": "value2"
  },
  "properties": {
    "provisioningState": "Created",
    "metricId": "ffffffff-ffff-ffff-ffff-ffffffffffff:example-Relaynamespace-5849",
    "serviceBusEndpoint": "https://example-RelayNamespace-5849.servicebus.windows-int.net:443/"
  }
}

Definities

Name Description
ConnectionState

Details over de status van de verbinding.

createdByType

Het type identiteit waarmee de resource is gemaakt.

EndPointProvisioningState

Inrichtingsstatus van de privé-eindpuntverbinding.

ErrorAdditionalInfo

Aanvullende informatie over de resourcebeheerfout.

ErrorDetail

De foutdetails.

ErrorResponse

Foutreactie

PrivateEndpoint

De privé-eindpuntresource voor deze verbinding.

PrivateEndpointConnection

Lijst met privé-eindpuntverbindingen.

PrivateLinkConnectionStatus

Status van de verbinding.

PublicNetworkAccess

Hiermee wordt bepaald of verkeer via een openbaar netwerk is toegestaan. Deze functie is standaard ingeschakeld

RelayNamespace

Beschrijving van een naamruimteresource.

Sku

SKU van de naamruimte.

SkuName

Naam van deze SKU.

SkuTier

De laag van deze SKU.

systemData

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

ConnectionState

Details over de status van de verbinding.

Name Type Description
description

string

Beschrijving van de verbindingsstatus.

status

PrivateLinkConnectionStatus

Status van de verbinding.

createdByType

Het type identiteit waarmee de resource is gemaakt.

Waarde Description
Application
Key
ManagedIdentity
User

EndPointProvisioningState

Inrichtingsstatus van de privé-eindpuntverbinding.

Waarde Description
Canceled
Creating
Deleting
Failed
Succeeded
Updating

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.

PrivateEndpoint

De privé-eindpuntresource voor deze verbinding.

Name Type Description
id

string

De ARM-id voor privé-eindpunt.

PrivateEndpointConnection

Lijst met privé-eindpuntverbindingen.

Name Type Description
id

string

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

location

string

De geografische locatie waar de resource zich bevindt

name

string

De naam van de resource

properties.privateEndpoint

PrivateEndpoint

De privé-eindpuntresource voor deze verbinding.

properties.privateLinkServiceConnectionState

ConnectionState

Details over de status van de verbinding.

properties.provisioningState

EndPointProvisioningState

Inrichtingsstatus van de privé-eindpuntverbinding.

systemData

systemData

De systeemmetagegevens met betrekking tot deze resource.

type

string

Het type resource. Bijvoorbeeld 'Microsoft.EventHub/Namespaces' of 'Microsoft.EventHub/Namespaces/EventHubs'

PrivateLinkConnectionStatus

Status van de verbinding.

Waarde Description
Approved
Disconnected
Pending
Rejected

PublicNetworkAccess

Hiermee wordt bepaald of verkeer via een openbaar netwerk is toegestaan. Deze functie is standaard ingeschakeld

Waarde Description
Disabled
Enabled
SecuredByPerimeter

RelayNamespace

Beschrijving van een naamruimteresource.

Name Type Default value Description
id

string

Resource-id.

location

string

Resourcelocatie.

name

string

Resourcenaam.

properties.createdAt

string (date-time)

Het tijdstip waarop de naamruimte is gemaakt.

properties.metricId

string

Id voor metrische gegevens van Azure Insights.

properties.privateEndpointConnections

PrivateEndpointConnection[]

Lijst met privé-eindpuntverbindingen.

properties.provisioningState

string

Inrichtingsstatus van de naamruimte.

properties.publicNetworkAccess

PublicNetworkAccess

Enabled

Hiermee wordt bepaald of verkeer via een openbaar netwerk is toegestaan. Deze functie is standaard ingeschakeld.

properties.serviceBusEndpoint

string

Eindpunt dat u kunt gebruiken om Service Bus-bewerkingen uit te voeren.

properties.status

string

Status van de naamruimte.

properties.updatedAt

string (date-time)

Het tijdstip waarop de naamruimte is bijgewerkt.

sku

Sku

SKU van de naamruimte.

systemData

systemData

De systeemmetagegevens met betrekking tot deze resource.

tags

object

Resourcetags.

type

string

Resourcetype.

Sku

SKU van de naamruimte.

Name Type Description
name

SkuName

Naam van deze SKU.

tier

SkuTier

De laag van deze SKU.

SkuName

Naam van deze SKU.

Waarde Description
Standard

SkuTier

De laag van deze SKU.

Waarde Description
Standard

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.