Webhook - Get

Recuperare il webhook identificato dal nome webhook.

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/webhooks/{webhookName}?api-version=2015-10-31

Parametri dell'URI

Nome In Necessario Tipo Descrizione
automationAccountName
path True

string

Nome dell'account di automazione.

resourceGroupName
path True

string

Nome di un gruppo di risorse di Azure.

Regex pattern: ^[-\w\._]+$

subscriptionId
path True

string

Ottiene le credenziali di sottoscrizione che consentono di identificare in modo univoco la sottoscrizione Microsoft Azure. L'ID sottoscrizione fa parte dell'URI per ogni chiamata di servizio.

webhookName
path True

string

Nome webhook.

api-version
query True

string

Versione dell'API client.

Risposte

Nome Tipo Descrizione
200 OK

Webhook

OK

Other Status Codes

ErrorResponse

Risposta di errore di automazione che descrive perché l'operazione non è riuscita.

Sicurezza

azure_auth

Flusso OAuth2 di Azure Active Directory

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Nome Descrizione
user_impersonation rappresentare l'account utente

Esempio

Get webhook

Sample Request

GET https://management.azure.com/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/webhooks/TestWebhook?api-version=2015-10-31

Sample Response

{
  "id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/webhooks/TestWebhook",
  "name": "TestWebhook",
  "properties": {
    "isEnabled": true,
    "expiryTime": "2018-03-29T22:18:13.7002872+00:00",
    "runbook": {
      "name": "TestRunbook"
    },
    "lastInvokedTime": null,
    "runOn": null,
    "parameters": null,
    "uri": "",
    "creationTime": "2017-03-29T22:18:14.6651862+00:00",
    "lastModifiedBy": "",
    "lastModifiedTime": "2017-03-29T22:18:14.6651862+00:00"
  }
}

Definizioni

Nome Descrizione
ErrorResponse

Risposta di errore di un errore dell'operazione

RunbookAssociationProperty

Proprietà runbook associata all'entità.

Webhook

Definizione del tipo webhook.

ErrorResponse

Risposta di errore di un errore dell'operazione

Nome Tipo Descrizione
code

string

Codice di errore

message

string

Messaggio di errore che indica perché l'operazione non è riuscita.

RunbookAssociationProperty

Proprietà runbook associata all'entità.

Nome Tipo Descrizione
name

string

Ottiene o imposta il nome del runbook.

Webhook

Definizione del tipo webhook.

Nome Tipo Valore predefinito Descrizione
id

string

ID risorsa completo per la risorsa

name

string

nome della risorsa.

properties.creationTime

string

Ottiene o imposta l'ora di creazione.

properties.description

string

Ottiene o imposta la descrizione.

properties.expiryTime

string

Ottiene o imposta l'ora di scadenza.

properties.isEnabled

boolean

False

Ottiene o imposta il valore del flag abilitato del webhook.

properties.lastInvokedTime

string

Ottiene o imposta l'ultima ora richiamata.

properties.lastModifiedBy

string

Dettagli dell'utente che ha modificato l'ultimo webhook

properties.lastModifiedTime

string

Ottiene o imposta l'ultima ora modificata.

properties.parameters

object

Ottiene o imposta i parametri del processo creato quando il webhook chiama il runbook associato.

properties.runOn

string

Ottiene o imposta il nome del gruppo di lavoro ibrido in cui verrà eseguito il processo webhook.

properties.runbook

RunbookAssociationProperty

Ottiene o imposta il runbook associato al webhook.

properties.uri

string

Ottiene o imposta l'uri del webhook.

type

string

Tipo di risorsa.