Delen via


Web Apps - Update Vnet Connection Gateway Slot

Beschrijving voor Hiermee voegt u een gateway toe aan een verbonden Virtual Network (PUT) of werkt deze bij (PATCH).

PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/virtualNetworkConnections/{vnetName}/gateways/{gatewayName}?api-version=2023-12-01

URI-parameters

Name In Vereist Type Description
gatewayName
path True

string

Naam van de gateway. Op dit moment is de enige ondersteunde tekenreeks 'primary'.

name
path True

string

Naam van de app.

resourceGroupName
path True

string

Naam van de resourcegroep waartoe de resource behoort.

Regex-patroon: ^[-\w\._\(\)]+[^\.]$

slot
path True

string

Naam van de implementatiesite. Als er geen site is opgegeven, voegt de API een gateway toe of werkt deze bij voor de Virtual Network van de productiesite.

subscriptionId
path True

string

Uw Azure-abonnements-id. Dit is een tekenreeks met GUID-indeling (bijvoorbeeld 00000000-0000-0000-0000-000000000000).

vnetName
path True

string

Naam van de Virtual Network.

api-version
query True

string

API-versie

Aanvraagbody

Name Vereist Type Description
properties.vpnPackageUri True

string

De URI waar het VPN-pakket kan worden gedownload.

kind

string

Soort resource.

properties.vnetName

string

De naam van de Virtual Network.

Antwoorden

Name Type Description
200 OK

VnetGateway

OK

Other Status Codes

DefaultErrorResponse

App Service foutreactie.

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

Definities

Name Description
DefaultErrorResponse

App Service foutreactie.

Details
Error

Foutmodel.

VnetGateway

Het Virtual Network gatewaycontract. Dit wordt gebruikt om de Virtual Network gateway toegang te geven tot het VPN-pakket.

DefaultErrorResponse

App Service foutreactie.

Name Type Description
error

Error

Foutmodel.

Details

Name Type Description
code

string

Gestandaardiseerde tekenreeks om de fout programmatisch te identificeren.

message

string

Gedetailleerde foutbeschrijving en foutopsporingsinformatie.

target

string

Gedetailleerde foutbeschrijving en foutopsporingsinformatie.

Error

Foutmodel.

Name Type Description
code

string

Gestandaardiseerde tekenreeks om de fout programmatisch te identificeren.

details

Details[]

Gedetailleerde fouten.

innererror

string

Meer informatie over foutopsporing.

message

string

Gedetailleerde foutbeschrijving en foutopsporingsinformatie.

target

string

Gedetailleerde foutbeschrijving en foutopsporingsinformatie.

VnetGateway

Het Virtual Network gatewaycontract. Dit wordt gebruikt om de Virtual Network gateway toegang te geven tot het VPN-pakket.

Name Type Description
id

string

Resource-id.

kind

string

Soort resource.

name

string

Resourcenaam.

properties.vnetName

string

De naam van de Virtual Network.

properties.vpnPackageUri

string

De URI waar het VPN-pakket kan worden gedownload.

type

string

Resourcetype.