Assets - Update
Update an Asset
Updates an existing Asset in the 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 | Required | Type | Description |
---|---|---|---|---|
account
|
path | True |
string |
The Media Services account name. |
asset
|
path | True |
string |
The Asset name. |
resource
|
path | True |
string |
The name of the resource group within the Azure subscription. |
subscription
|
path | True |
string |
The unique identifier for a Microsoft Azure subscription. |
api-version
|
query | True |
string |
The version of the API to be used with the client request. |
Request Body
Name | Type | Description |
---|---|---|
properties.alternateId |
string |
The alternate ID of the Asset. |
properties.container |
string |
The name of the asset blob container. |
properties.description |
string |
The Asset description. |
properties.storageAccountName |
string |
The name of the storage account. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
OK |
|
Other Status Codes |
Detailed error information. |
Examples
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"
}
}
Definitions
Name | Description |
---|---|
Asset |
An Asset. |
Asset |
The Asset encryption format. One of None or MediaStorageEncryption. |
created |
The type of identity that created the resource. |
Error |
The resource management error additional info. |
Error |
The error detail. |
Error |
Error response |
system |
Metadata pertaining to creation and last modification of the resource. |
Asset
An Asset.
Name | Type | Description |
---|---|---|
id |
string |
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} |
name |
string |
The name of the resource |
properties.alternateId |
string |
The alternate ID of the Asset. |
properties.assetId |
string |
The Asset ID. |
properties.container |
string |
The name of the asset blob container. |
properties.created |
string |
The creation date of the Asset. |
properties.description |
string |
The Asset description. |
properties.lastModified |
string |
The last modified date of the Asset. |
properties.storageAccountName |
string |
The name of the storage account. |
properties.storageEncryptionFormat |
The Asset encryption format. One of None or MediaStorageEncryption. |
|
systemData |
The system metadata relating to this resource. |
|
type |
string |
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
AssetStorageEncryptionFormat
The Asset encryption format. One of None or MediaStorageEncryption.
Name | Type | Description |
---|---|---|
MediaStorageClientEncryption |
string |
The Asset is encrypted with Media Services client-side encryption. |
None |
string |
The Asset does not use client-side storage encryption (this is the only allowed value for new Assets). |
createdByType
The type of identity that created the resource.
Name | Type | Description |
---|---|---|
Application |
string |
|
Key |
string |
|
ManagedIdentity |
string |
|
User |
string |
ErrorAdditionalInfo
The resource management error additional info.
Name | Type | Description |
---|---|---|
info |
object |
The additional info. |
type |
string |
The additional info type. |
ErrorDetail
The error detail.
Name | Type | Description |
---|---|---|
additionalInfo |
The error additional info. |
|
code |
string |
The error code. |
details |
The error details. |
|
message |
string |
The error message. |
target |
string |
The error target. |
ErrorResponse
Error response
Name | Type | Description |
---|---|---|
error |
The error object. |
systemData
Metadata pertaining to creation and last modification of the resource.
Name | Type | Description |
---|---|---|
createdAt |
string |
The timestamp of resource creation (UTC). |
createdBy |
string |
The identity that created the resource. |
createdByType |
The type of identity that created the resource. |
|
lastModifiedAt |
string |
The timestamp of resource last modification (UTC) |
lastModifiedBy |
string |
The identity that last modified the resource. |
lastModifiedByType |
The type of identity that last modified the resource. |