Assets - Update

Een asset bijwerken
een bestaande asset Updates in het Media Services-account

PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}?api-version=2022-08-01

URI-parameters

Name In Vereist Type Description
accountName
path True

string

De naam van het Media Services-account.

assetName
path True

string

De assetnaam.

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
properties.alternateId

string

De alternatieve id van de asset.

properties.container

string

De naam van de asset-blobcontainer.

properties.description

string

De beschrijving van het activum.

properties.storageAccountName

string

De naam van het opslagaccount.

Antwoorden

Name Type Description
200 OK

Asset

OK

Other Status Codes

ErrorResponse

Gedetailleerde foutinformatie.

Voorbeelden

Update an Asset

Sample Request

PATCH https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaServices/contosomedia/assets/ClimbingMountBaker?api-version=2022-08-01

{
  "properties": {
    "description": "A documentary showing the ascent of Mount Baker in HD"
  }
}

Sample Response

{
  "name": "ClimbingMountBaker",
  "id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contosorg/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountBaker",
  "type": "Microsoft.Media/mediaservices/assets",
  "properties": {
    "assetId": "89af1750-e681-4fbe-8c4c-9a5567867a6b",
    "created": "2011-02-01T00:00:00Z",
    "lastModified": "2018-08-08T18:29:26.503Z",
    "alternateId": "CLIMB00004",
    "description": "A documentary showing the ascent of Mount Baker in HD",
    "container": "asset-89af1750-e681-4fbe-8c4c-9a5567867a6b",
    "storageEncryptionFormat": "None"
  }
}

Definities

Name Description
Asset

Een aanwinst.

AssetStorageEncryptionFormat

De assetversleutelingsindeling. Een van Geen of MediaStorageEncryption.

createdByType

Het type identiteit waarmee de resource is gemaakt.

ErrorAdditionalInfo

Aanvullende informatie over de resourcebeheerfout.

ErrorDetail

De foutdetails.

ErrorResponse

Foutreactie

systemData

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

Asset

Een aanwinst.

Name Type Description
id

string

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

name

string

De naam van de resource

properties.alternateId

string

De alternatieve id van de asset.

properties.assetId

string

De asset-id.

properties.container

string

De naam van de asset-blobcontainer.

properties.created

string

De aanmaakdatum van het activum.

properties.description

string

De beschrijving van het activum.

properties.lastModified

string

De laatste wijzigingsdatum van het activum.

properties.storageAccountName

string

De naam van het opslagaccount.

properties.storageEncryptionFormat

AssetStorageEncryptionFormat

De assetversleutelingsindeling. Een van Geen of MediaStorageEncryption.

systemData

systemData

De systeemmetagegevens met betrekking tot deze resource.

type

string

Het type resource. Bijvoorbeeld 'Microsoft.Compute/virtualMachines' of 'Microsoft.Storage/storageAccounts'

AssetStorageEncryptionFormat

De assetversleutelingsindeling. Een van Geen of MediaStorageEncryption.

Name Type Description
MediaStorageClientEncryption

string

De asset wordt versleuteld met Versleuteling aan de clientzijde van Media Services.

None

string

De asset maakt geen gebruik van opslagversleuteling aan de clientzijde (dit is de enige toegestane waarde voor nieuwe assets).

createdByType

Het type identiteit waarmee de resource is gemaakt.

Name Type Description
Application

string

Key

string

ManagedIdentity

string

User

string

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.

systemData

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

Name Type Description
createdAt

string

Het 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

De tijdstempel van de laatste wijziging van de resource (UTC)

lastModifiedBy

string

De identiteit die de resource het laatst heeft gewijzigd.

lastModifiedByType

createdByType

Het type identiteit dat de resource het laatst heeft gewijzigd.