Live Events - Stop

Livegebeurtenis stoppen
Stopt een actieve livegebeurtenis.

POST https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaservices/{accountName}/liveEvents/{liveEventName}/stop?api-version=2022-11-01

URI-parameters

Name In Vereist Type Description
accountName
path True

string

De naam van het Media Services-account.

liveEventName
path True

string

De naam van de livegebeurtenis, de maximale lengte is 32.

Regex pattern: ^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$

resourceGroupName
path True

string

De naam van de resourcegroep binnen het Azure-abonnement.

subscriptionId
path True

string

De unieke id voor een Microsoft Azure-abonnement.

api-version
query True

string

De versie van de API die moet worden gebruikt met de clientaanvraag.

Aanvraagbody

Name Type Description
removeOutputsOnStop

boolean

De vlag geeft aan of live-uitvoer automatisch wordt verwijderd wanneer de livegebeurtenis wordt gestopt. Als u live-uitvoer verwijdert, worden de onderliggende activa niet verwijderd.

Antwoorden

Name Type Description
200 OK

OK. De aanvraag is voltooid.

202 Accepted

Aanvaard. De aanvraag is geaccepteerd voor verwerking en de bewerking wordt asynchroon voltooid. Zie https://go.microsoft.com/fwlink/?linkid=2087017 voor meer informatie over de bewaking van asynchrone Azure-bewerkingen.

Other Status Codes

ErrorResponse

Het antwoord van de streamingfout beschrijft waarom de bewerking is mislukt.

Voorbeelden

Stop a LiveEvent

Sample Request

POST https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveEvents/myLiveEvent1/stop?api-version=2022-11-01

{
  "removeOutputsOnStop": false
}

Sample Response

azure-asyncoperation: https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveeventoperations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-11-01
location: https://management.azure.com/subscriptions/0a6ec948-5a62-437d-b9df-934dc7c1b722/resourceGroups/mediaresources/providers/Microsoft.Media/mediaservices/slitestmedia10/liveevents/myLiveEvent1/operationlocations/62e4d893-d233-4005-988e-a428d9f77076?api-version=2022-11-01

Definities

Name Description
ErrorAdditionalInfo

Aanvullende informatie over de resourcebeheerfout.

ErrorDetail

De foutdetails.

ErrorResponse

Foutreactie

LiveEventActionInput

De definitie van de actie-invoerparameter LiveEvent.

ErrorAdditionalInfo

Aanvullende informatie over de resourcebeheerfout.

Name Type Description
info

object

De aanvullende informatie.

type

string

Het type aanvullende informatie.

ErrorDetail

De foutdetails.

Name Type Description
additionalInfo

ErrorAdditionalInfo[]

Aanvullende informatie over de fout.

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.

LiveEventActionInput

De definitie van de actie-invoerparameter LiveEvent.

Name Type Description
removeOutputsOnStop

boolean

De vlag geeft aan of live-uitvoer automatisch wordt verwijderd wanneer de livegebeurtenis wordt gestopt. Als u live-uitvoer verwijdert, worden de onderliggende activa niet verwijderd.