Dela via


Web Apps - Create Or Update Public Certificate Slot

Beskrivning för Skapar en värdnamnsbindning för en app.

PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/publicCertificates/{publicCertificateName}?api-version=2024-04-01

URI-parametrar

Name I Obligatorisk Typ Description
name
path True

string

Namnet på appen.

publicCertificateName
path True

string

Offentligt certifikatnamn.

resourceGroupName
path True

string

minLength: 1
maxLength: 90
pattern: ^[-\w\._\(\)]+[^\.]$

Namnet på resursgruppen som resursen tillhör.

slot
path True

string

Namnet på distributionsfacket. Om ett fack inte anges skapar API:et en bindning för produktionsplatsen.

subscriptionId
path True

string

Ditt Azure-prenumerations-ID. Det här är en GUID-formaterad sträng (t.ex. 00000000-0000-0000-0000-000000000000).

api-version
query True

string

API-version

Begärandetext

Name Typ Description
kind

string

Typ av resurs.

properties.blob

string (byte)

Bytematris för offentligt certifikat

properties.publicCertificateLocation

PublicCertificateLocation

Plats för offentligt certifikat

Svar

Name Typ Description
200 OK

PublicCertificate

OKEJ

Other Status Codes

DefaultErrorResponse

App Service-felsvar.

Säkerhet

azure_auth

Azure Active Directory OAuth2 Flow

Typ: oauth2
Flow: implicit
Auktoriseringswebbadress: https://login.microsoftonline.com/common/oauth2/authorize

Omfattningar

Name Description
user_impersonation personifiera ditt användarkonto

Definitioner

Name Description
DefaultErrorResponse

App Service-felsvar.

Details
Error

Felmodell.

PublicCertificate

Offentligt certifikatobjekt

PublicCertificateLocation

Plats för offentligt certifikat

DefaultErrorResponse

App Service-felsvar.

Name Typ Description
error

Error

Felmodell.

Details

Name Typ Description
code

string

Standardiserad sträng för att programmatiskt identifiera felet.

message

string

Detaljerad felbeskrivning och felsökningsinformation.

target

string

Detaljerad felbeskrivning och felsökningsinformation.

Error

Felmodell.

Name Typ Description
code

string

Standardiserad sträng för att programmatiskt identifiera felet.

details

Details[]

Detaljerade fel.

innererror

string

Mer information om felsökningsfel.

message

string

Detaljerad felbeskrivning och felsökningsinformation.

target

string

Detaljerad felbeskrivning och felsökningsinformation.

PublicCertificate

Offentligt certifikatobjekt

Name Typ Description
id

string

Resurs-ID.

kind

string

Typ av resurs.

name

string

Resursnamn.

properties.blob

string (byte)

Bytematris för offentligt certifikat

properties.publicCertificateLocation

PublicCertificateLocation

Plats för offentligt certifikat

properties.thumbprint

string

Tumavtryck för certifikat

type

string

Resurstyp.

PublicCertificateLocation

Plats för offentligt certifikat

Värde Description
CurrentUserMy
LocalMachineMy
Unknown