Search code examples
azureazure-media-services

How to get only published assets via REST API


I want to get only the published assets from azure portal storage account.The problem in my case is that i have not any REST API end point which provide only the published assets.I am getting all the assets from azure account using REST API endpoint: "https://storageAccountName.restv2.australiaeast.media.azure.net/api/Assets"


Solution

  • As per a bit further down in the doc: The Publish action has been deprecated. Starting with the latest Media Services release, Publish should not be used.

    If your code uses Publish, be aware of the following considerations:

    1. The Publish action does not delete locators associated with the asset. You must explicitly delete the locators in code after calling Publish.
    2. The Publish action does not set the asset state to Published. Remove the code that checks whether an asset is in the Published state. Currently, an asset can only have the Initialized or Deleted state.