Create or Update Asset
Create or Update Asset. When creating an asset, that asset needs to have a unique container & storage account within the project. When updating an asset, only the description column can be updated.
RBAC Capability Required: ams.asset.create or ams.asset.update
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
project_name
asset_name
Request
This endpoint expects an object.
properties
The properties of the asset.
labels
A dictionary of labels associated with the resource.
- Maximum number of labels: 32.
- Maximum length of a label or value: 256 characters.
- Label: alphanumeric, hyphens and underscores.
- Value: alphanumeric, hyphens, underscores and spaces.
Response
Asset was updated
properties
The properties of the asset.
id
Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
labels
A dictionary of labels associated with the resource.
- Maximum number of labels: 32.
- Maximum length of a label or value: 256 characters.
- Label: alphanumeric, hyphens and underscores.
- Value: alphanumeric, hyphens, underscores and spaces.
name
The name of the resource
systemData
Metadata pertaining to creation and last modification of the resource.
type
The type of the resource. E.g. "Microsoft.Media/mediaservices/assets"
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
429
Too Many Requests Error
500
Internal Server Error