swagger: "2.0"
schemes:
  - https
host: management.azure.com
info:
  description: This Swagger was generated by the API Framework.
  title: Azure Media Services
  version: 2018-07-01
  x-apisguru-categories:
    - cloud
  x-logo:
    url: https://api.apis.guru/v2/cache/logo/https_assets.onestore.ms_cdnfiles_onestorerolling-1606-01000_shell_v3_images_logo_microsoft.png
  x-origin:
    - format: swagger
      url: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-05-01-preview/AssetsAndAssetFilters.json
      version: "2.0"
  x-providerName: azure.com
  x-serviceName: mediaservices-AssetsAndAssetFilters
  x-tags:
    - Azure
    - Microsoft
consumes:
  - application/json
produces:
  - application/json
securityDefinitions:
  azure_auth:
    authorizationUrl: https://login.microsoftonline.com/common/oauth2/authorize
    description: Azure Active Directory OAuth2 Flow
    flow: implicit
    scopes:
      user_impersonation: Impersonate your user account
    type: oauth2
parameters:
  ApiVersion:
    description: The Version of the API to be used with the client request.
    in: query
    name: api-version
    required: true
    type: string
  MediaServicesAccountName:
    description: The Media Services account name.
    in: path
    name: accountName
    required: true
    type: string
    x-ms-parameter-location: method
  ResourceGroupName:
    description: The name of the resource group within the Azure subscription.
    in: path
    name: resourceGroupName
    required: true
    type: string
    x-ms-parameter-location: method
  SubscriptionId:
    description: The unique identifier for a Microsoft Azure subscription.
    in: path
    name: subscriptionId
    required: true
    type: string
paths:
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets":
    get:
      description: List Assets in the Media Services account with optional filtering and ordering
      operationId: Assets_List
      parameters:
        - $ref: "#/parameters/SubscriptionId"
        - $ref: "#/parameters/ResourceGroupName"
        - $ref: "#/parameters/MediaServicesAccountName"
        - $ref: "#/parameters/ApiVersion"
        - description: Restricts the set of items returned.
          in: query
          name: $filter
          required: false
          type: string
        - description: Specifies a non-negative integer n that limits the number of items returned from a collection. The service returns the number of available items up to but not greater than the specified value n.
          in: query
          name: $top
          required: false
          type: integer
        - description: Specifies the key by which the result collection should be ordered.
          in: query
          name: $orderby
          required: false
          type: string
      responses:
        "200":
          description: OK
          schema:
            $ref: "#/definitions/AssetCollection"
        default:
          description: Detailed error information.
          schema:
            $ref: "#/definitions/ApiError"
      summary: List Assets
      x-ms-examples:
        List Asset created in a date range:
          parameters:
            $filter: properties/created gt 2012-06-01 and properties/created lt 2013-07-01
            $orderby: properties/created
            accountName: contosomedia
            api-version: 2018-07-01
            resourceGroupName: contoso
            subscriptionId: 00000000-0000-0000-0000-000000000000
          responses:
            "200":
              body:
                value:
                  - id: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainier
                    name: ClimbingMountRainier
                    properties:
                      alternateId: CLIMB00001
                      assetId: f8eea45c-b814-44c2-9c42-a5174ebdee4c
                      container: asset-f8eea45c-b814-44c2-9c42-a5174ebdee4c
                      created: 2012-11-01T00:00:00Z
                      description: A documentary showing the ascent of Mount Rainier
                      lastModified: 2012-11-01T00:00:00Z
                      storageEncryptionFormat: None
                    type: Microsoft.Media/mediaservices/assets
                  - id: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountAdams
                    name: ClimbingMountAdams
                    properties:
                      alternateId: CLIMB00002
                      assetId: 1b648c1a-2268-461d-a1da-742bde23db40
                      container: asset-1b648c1a-2268-461d-a1da-742bde23db40
                      created: 2013-02-01T00:00:00Z
                      description: A documentary showing the ascent of Mount Adams
                      lastModified: 2017-11-01T00:00:00Z
                      storageEncryptionFormat: None
                    type: Microsoft.Media/mediaservices/assets
                  - id: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountSaintHelens
                    name: ClimbingMountSaintHelens
                    properties:
                      alternateId: CLIMB00005
                      assetId: 14d58c40-ec1f-446c-b041-f5cff949bd1d
                      container: asset-14d58c40-ec1f-446c-b041-f5cff949bd1d
                      created: 2013-03-01T00:00:00Z
                      description: A documentary showing the ascent of Saint Helens
                      lastModified: 2013-04-01T00:00:00Z
                      storageEncryptionFormat: MediaStorageClientEncryption
                    type: Microsoft.Media/mediaservices/assets
        List Asset ordered by date:
          parameters:
            $orderby: properties/created
            accountName: contosomedia
            api-version: 2018-07-01
            resourceGroupName: contoso
            subscriptionId: 00000000-0000-0000-0000-000000000000
          responses:
            "200":
              body:
                value:
                  - id: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountBaker
                    name: ClimbingMountBaker
                    properties:
                      alternateId: CLIMB00004
                      assetId: 89af1750-e681-4fbe-8c4c-9a5567867a6b
                      container: asset-89af1750-e681-4fbe-8c4c-9a5567867a6b
                      created: 2011-02-01T00:00:00Z
                      description: A documentary showing the ascent of Mount Baker
                      lastModified: 2017-11-01T00:00:00Z
                      storageEncryptionFormat: None
                    type: Microsoft.Media/mediaservices/assets
                  - id: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingLittleTahoma
                    name: ClimbingLittleTahoma
                    properties:
                      alternateId: CLIMB00003
                      assetId: e6c7ee55-d1f5-48bc-9c36-2d2157aadbbe
                      container: asset-e6c7ee55-d1f5-48bc-9c36-2d2157aadbbe
                      created: 2012-04-01T00:00:00Z
                      description: A documentary showing the ascent of Little Tahoma
                      lastModified: 2017-11-01T00:00:00Z
                      storageEncryptionFormat: None
                    type: Microsoft.Media/mediaservices/assets
                  - id: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainier
                    name: ClimbingMountRainier
                    properties:
                      alternateId: CLIMB00001
                      assetId: f8eea45c-b814-44c2-9c42-a5174ebdee4c
                      container: asset-f8eea45c-b814-44c2-9c42-a5174ebdee4c
                      created: 2012-11-01T00:00:00Z
                      description: A documentary showing the ascent of Mount Rainier
                      lastModified: 2012-11-01T00:00:00Z
                      storageEncryptionFormat: None
                    type: Microsoft.Media/mediaservices/assets
                  - id: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountAdams
                    name: ClimbingMountAdams
                    properties:
                      alternateId: CLIMB00002
                      assetId: 1b648c1a-2268-461d-a1da-742bde23db40
                      container: asset-1b648c1a-2268-461d-a1da-742bde23db40
                      created: 2013-02-01T00:00:00Z
                      description: A documentary showing the ascent of Mount Adams
                      lastModified: 2017-11-01T00:00:00Z
                      storageEncryptionFormat: None
                    type: Microsoft.Media/mediaservices/assets
                  - id: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountSaintHelens
                    name: ClimbingMountSaintHelens
                    properties:
                      alternateId: CLIMB00005
                      assetId: 14d58c40-ec1f-446c-b041-f5cff949bd1d
                      container: asset-14d58c40-ec1f-446c-b041-f5cff949bd1d
                      created: 2013-03-01T00:00:00Z
                      description: A documentary showing the ascent of Saint Helens
                      lastModified: 2013-04-01T00:00:00Z
                      storageEncryptionFormat: MediaStorageClientEncryption
                    type: Microsoft.Media/mediaservices/assets
                  - id: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer
                    name: ClimbingMountRainer
                    properties:
                      alternateId: altClimbingMountRainer
                      assetId: 8cdacfe5-8473-413a-9aec-dd2a478b37c8
                      container: testasset0
                      created: 2018-08-08T18:29:25.0514734Z
                      description: descClimbingMountRainer
                      lastModified: 2018-08-08T21:29:25.0514734Z
                      storageAccountName: storage0
                      storageEncryptionFormat: None
                    type: Microsoft.Media/mediaservices/assets
        List all Assets:
          parameters:
            accountName: contosomedia
            api-version: 2018-07-01
            resourceGroupName: contoso
            subscriptionId: 00000000-0000-0000-0000-000000000000
          responses:
            "200":
              body:
                value:
                  - id: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingLittleTahoma
                    name: ClimbingLittleTahoma
                    properties:
                      alternateId: CLIMB00003
                      assetId: e6c7ee55-d1f5-48bc-9c36-2d2157aadbbe
                      container: asset-e6c7ee55-d1f5-48bc-9c36-2d2157aadbbe
                      created: 2012-04-01T00:00:00Z
                      description: A documentary showing the ascent of Little Tahoma
                      lastModified: 2017-11-01T00:00:00Z
                      storageEncryptionFormat: None
                    type: Microsoft.Media/mediaservices/assets
                  - id: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountAdams
                    name: ClimbingMountAdams
                    properties:
                      alternateId: CLIMB00002
                      assetId: 1b648c1a-2268-461d-a1da-742bde23db40
                      container: asset-1b648c1a-2268-461d-a1da-742bde23db40
                      created: 2013-02-01T00:00:00Z
                      description: A documentary showing the ascent of Mount Adams
                      lastModified: 2017-11-01T00:00:00Z
                      storageEncryptionFormat: None
                    type: Microsoft.Media/mediaservices/assets
                  - id: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountBaker
                    name: ClimbingMountBaker
                    properties:
                      alternateId: CLIMB00004
                      assetId: 89af1750-e681-4fbe-8c4c-9a5567867a6b
                      container: asset-89af1750-e681-4fbe-8c4c-9a5567867a6b
                      created: 2011-02-01T00:00:00Z
                      description: A documentary showing the ascent of Mount Baker
                      lastModified: 2017-11-01T00:00:00Z
                      storageEncryptionFormat: None
                    type: Microsoft.Media/mediaservices/assets
                  - id: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer
                    name: ClimbingMountRainer
                    properties:
                      alternateId: altClimbingMountRainer
                      assetId: 258878ef-fe05-4518-988f-052e86dc19f6
                      container: testasset0
                      created: 2018-08-08T18:29:24.3948982Z
                      description: descClimbingMountRainer
                      lastModified: 2018-08-08T21:29:24.3948982Z
                      storageAccountName: storage0
                      storageEncryptionFormat: None
                    type: Microsoft.Media/mediaservices/assets
                  - id: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainier
                    name: ClimbingMountRainier
                    properties:
                      alternateId: CLIMB00001
                      assetId: f8eea45c-b814-44c2-9c42-a5174ebdee4c
                      container: asset-f8eea45c-b814-44c2-9c42-a5174ebdee4c
                      created: 2012-11-01T00:00:00Z
                      description: A documentary showing the ascent of Mount Rainier
                      lastModified: 2012-11-01T00:00:00Z
                      storageEncryptionFormat: None
                    type: Microsoft.Media/mediaservices/assets
                  - id: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountSaintHelens
                    name: ClimbingMountSaintHelens
                    properties:
                      alternateId: CLIMB00005
                      assetId: 14d58c40-ec1f-446c-b041-f5cff949bd1d
                      container: asset-14d58c40-ec1f-446c-b041-f5cff949bd1d
                      created: 2013-03-01T00:00:00Z
                      description: A documentary showing the ascent of Saint Helens
                      lastModified: 2013-04-01T00:00:00Z
                      storageEncryptionFormat: MediaStorageClientEncryption
                    type: Microsoft.Media/mediaservices/assets
      x-ms-odata: "#/definitions/Asset"
      x-ms-pageable:
        nextLinkName: "@odata.nextLink"
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}":
    delete:
      description: Deletes an Asset in the Media Services account
      operationId: Assets_Delete
      parameters:
        - $ref: "#/parameters/SubscriptionId"
        - $ref: "#/parameters/ResourceGroupName"
        - $ref: "#/parameters/MediaServicesAccountName"
        - description: The Asset name.
          in: path
          name: assetName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersion"
      responses:
        "200":
          description: OK
        "204":
          description: NoContent
        default:
          description: Detailed error information.
          schema:
            $ref: "#/definitions/ApiError"
      summary: Delete an Asset.
      x-ms-examples:
        Delete an Asset:
          parameters:
            accountName: contosomedia
            api-version: 2018-07-01
            assetName: ClimbingMountAdams
            resourceGroupName: contoso
            subscriptionId: 00000000-0000-0000-0000-000000000000
          responses:
            "200": {}
            "204": {}
    get:
      description: Get the details of an Asset in the Media Services account
      operationId: Assets_Get
      parameters:
        - $ref: "#/parameters/SubscriptionId"
        - $ref: "#/parameters/ResourceGroupName"
        - $ref: "#/parameters/MediaServicesAccountName"
        - description: The Asset name.
          in: path
          name: assetName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersion"
      responses:
        "200":
          description: OK
          schema:
            $ref: "#/definitions/Asset"
        "404":
          description: NotFound
        default:
          description: Detailed error information.
          schema:
            $ref: "#/definitions/ApiError"
      summary: Get an Asset
      x-ms-examples:
        Get an Asset by name:
          parameters:
            accountName: contosomedia
            api-version: 2018-07-01
            assetName: ClimbingMountAdams
            resourceGroupName: contoso
            subscriptionId: 00000000-0000-0000-0000-000000000000
          responses:
            "200":
              body:
                id: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountAdams
                name: ClimbingMountAdams
                properties:
                  alternateId: CLIMB00002
                  assetId: 1b648c1a-2268-461d-a1da-742bde23db40
                  container: asset-1b648c1a-2268-461d-a1da-742bde23db40
                  created: 2013-02-01T00:00:00Z
                  description: A documentary showing the ascent of Mount Adams
                  lastModified: 2017-11-01T00:00:00Z
                  storageEncryptionFormat: None
                type: Microsoft.Media/mediaservices/assets
            "404": {}
    patch:
      description: Updates an existing Asset in the Media Services account
      operationId: Assets_Update
      parameters:
        - $ref: "#/parameters/SubscriptionId"
        - $ref: "#/parameters/ResourceGroupName"
        - $ref: "#/parameters/MediaServicesAccountName"
        - description: The Asset name.
          in: path
          name: assetName
          required: true
          type: string
        - description: The request parameters
          in: body
          name: parameters
          required: true
          schema:
            $ref: "#/definitions/Asset"
        - $ref: "#/parameters/ApiVersion"
      responses:
        "200":
          description: OK
          schema:
            $ref: "#/definitions/Asset"
        default:
          description: Detailed error information.
          schema:
            $ref: "#/definitions/ApiError"
      summary: Update an Asset
      x-ms-examples:
        Update an Asset:
          parameters:
            accountName: contosomedia
            api-version: 2018-07-01
            assetName: ClimbingMountBaker
            parameters:
              properties:
                description: A documentary showing the ascent of Mount Baker in HD
            resourceGroupName: contoso
            subscriptionId: 00000000-0000-0000-0000-000000000000
          responses:
            "200":
              body:
                id: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountBaker
                name: ClimbingMountBaker
                properties:
                  alternateId: CLIMB00004
                  assetId: 89af1750-e681-4fbe-8c4c-9a5567867a6b
                  container: asset-89af1750-e681-4fbe-8c4c-9a5567867a6b
                  created: 2011-02-01T00:00:00Z
                  description: A documentary showing the ascent of Mount Baker in HD
                  lastModified: 2018-08-08T18:29:26.503Z
                  storageEncryptionFormat: None
                type: Microsoft.Media/mediaservices/assets
    put:
      description: Creates or updates an Asset in the Media Services account
      operationId: Assets_CreateOrUpdate
      parameters:
        - $ref: "#/parameters/SubscriptionId"
        - $ref: "#/parameters/ResourceGroupName"
        - $ref: "#/parameters/MediaServicesAccountName"
        - description: The Asset name.
          in: path
          name: assetName
          required: true
          type: string
        - description: The request parameters
          in: body
          name: parameters
          required: true
          schema:
            $ref: "#/definitions/Asset"
        - $ref: "#/parameters/ApiVersion"
      responses:
        "200":
          description: OK
          schema:
            $ref: "#/definitions/Asset"
        "201":
          description: Created
          schema:
            $ref: "#/definitions/Asset"
        default:
          description: Detailed error information.
          schema:
            $ref: "#/definitions/ApiError"
      summary: Create or update an Asset
      x-ms-examples:
        Create an Asset:
          parameters:
            accountName: contosomedia
            api-version: 2018-07-01
            assetName: ClimbingMountLogan
            parameters:
              properties:
                description: A documentary showing the ascent of Mount Logan
                storageAccountName: storage0
            resourceGroupName: contoso
            subscriptionId: 00000000-0000-0000-0000-000000000000
          responses:
            "200":
              body:
                id: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountLogan
                name: ClimbingMountLogan
                properties:
                  assetId: 09194258-36ba-4403-abb3-68780e6bc545
                  container: asset-09194258-36ba-4403-abb3-68780e6bc545
                  created: 2018-08-08T18:29:26.08Z
                  description: A documentary showing the ascent of Mount Logan
                  lastModified: 2018-08-08T18:29:26.107Z
                  storageAccountName: storage0
                  storageEncryptionFormat: None
                type: Microsoft.Media/mediaservices/assets
            "201":
              body:
                id: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountLogan
                name: ClimbingMountLogan
                properties:
                  assetId: 09194258-36ba-4403-abb3-68780e6bc545
                  container: asset-09194258-36ba-4403-abb3-68780e6bc545
                  created: 2018-08-08T18:29:26.08Z
                  description: A documentary showing the ascent of Mount Logan
                  lastModified: 2018-08-08T18:29:26.08Z
                  storageAccountName: storage0
                  storageEncryptionFormat: None
                type: Microsoft.Media/mediaservices/assets
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/assetFilters":
    get:
      description: List Asset Filters associated with the specified Asset.
      operationId: AssetFilters_List
      parameters:
        - $ref: "#/parameters/SubscriptionId"
        - $ref: "#/parameters/ResourceGroupName"
        - $ref: "#/parameters/MediaServicesAccountName"
        - description: The Asset name.
          in: path
          name: assetName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersion"
      responses:
        "200":
          description: OK
          schema:
            $ref: "#/definitions/AssetFilterCollection"
        default:
          description: Detailed error information.
          schema:
            $ref: "#/definitions/ApiError"
      summary: List Asset Filters
      x-ms-examples:
        List all Asset Filters:
          parameters:
            accountName: contosomedia
            api-version: 2018-07-01
            assetName: ClimbingMountRainer
            resourceGroupName: contoso
            subscriptionId: 00000000-0000-0000-0000-000000000000
          responses:
            "200":
              body:
                value:
                  - id: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/assetFilterWithTimeWindowAndTrack
                    name: assetFilterWithTimeWindowAndTrack
                    properties:
                      firstQuality:
                        bitrate: 128000
                      presentationTimeRange:
                        endTimestamp: 170000000
                        forceEndTimestamp: false
                        liveBackoffDuration: 0
                        presentationWindowDuration: 900000000000
                        startTimestamp: 0
                        timescale: 10000000
                      tracks:
                        - trackSelections:
                            - operation: Equal
                              property: Type
                              value: Audio
                            - operation: NotEqual
                              property: Language
                              value: en
                            - operation: NotEqual
                              property: FourCC
                              value: EC-3
                        - trackSelections:
                            - operation: Equal
                              property: Type
                              value: Video
                            - operation: Equal
                              property: Bitrate
                              value: 3000000-5000000
                    type: Microsoft.Media/mediaservices/assets/assetFilters
                  - id: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/assetFilterWithTimeWindow
                    name: assetFilterWithTimeWindow
                    properties:
                      firstQuality:
                        bitrate: 128000
                      presentationTimeRange:
                        endTimestamp: 170000000
                        forceEndTimestamp: false
                        liveBackoffDuration: 0
                        presentationWindowDuration: 900000000000
                        startTimestamp: 0
                        timescale: 10000000
                      tracks: []
                    type: Microsoft.Media/mediaservices/assets/assetFilters
                  - id: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/assetFilterWithTrack
                    name: assetFilterWithTrack
                    properties:
                      tracks:
                        - trackSelections:
                            - operation: Equal
                              property: Type
                              value: Audio
                            - operation: NotEqual
                              property: Language
                              value: en
                            - operation: NotEqual
                              property: FourCC
                              value: EC-3
                        - trackSelections:
                            - operation: Equal
                              property: Type
                              value: Video
                            - operation: Equal
                              property: Bitrate
                              value: 3000000-5000000
                    type: Microsoft.Media/mediaservices/assets/assetFilters
      x-ms-pageable:
        nextLinkName: "@odata.nextLink"
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/assetFilters/{filterName}":
    delete:
      description: Deletes an Asset Filter associated with the specified Asset.
      operationId: AssetFilters_Delete
      parameters:
        - $ref: "#/parameters/SubscriptionId"
        - $ref: "#/parameters/ResourceGroupName"
        - $ref: "#/parameters/MediaServicesAccountName"
        - description: The Asset name.
          in: path
          name: assetName
          required: true
          type: string
        - description: The Asset Filter name
          in: path
          name: filterName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersion"
      responses:
        "200":
          description: OK
        "204":
          description: NoContent
        default:
          description: Detailed error information.
          schema:
            $ref: "#/definitions/ApiError"
      summary: Delete an Asset Filter.
      x-ms-examples:
        Delete an Asset Filter:
          parameters:
            accountName: contosomedia
            api-version: 2018-07-01
            assetName: ClimbingMountRainer
            filterName: assetFilterWithTimeWindowAndTrack
            resourceGroupName: contoso
            subscriptionId: 00000000-0000-0000-0000-000000000000
          responses:
            "200": {}
            "204": {}
    get:
      description: Get the details of an Asset Filter associated with the specified Asset.
      operationId: AssetFilters_Get
      parameters:
        - $ref: "#/parameters/SubscriptionId"
        - $ref: "#/parameters/ResourceGroupName"
        - $ref: "#/parameters/MediaServicesAccountName"
        - description: The Asset name.
          in: path
          name: assetName
          required: true
          type: string
        - description: The Asset Filter name
          in: path
          name: filterName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersion"
      responses:
        "200":
          description: OK
          schema:
            $ref: "#/definitions/AssetFilter"
        "404":
          description: NotFound
        default:
          description: Detailed error information.
          schema:
            $ref: "#/definitions/ApiError"
      summary: Get an Asset Filter.
      x-ms-examples:
        Get an Asset Filter by name:
          parameters:
            accountName: contosomedia
            api-version: 2018-07-01
            assetName: ClimbingMountRainer
            filterName: assetFilterWithTimeWindowAndTrack
            resourceGroupName: contoso
            subscriptionId: 00000000-0000-0000-0000-000000000000
          responses:
            "200":
              body:
                id: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/assetFilterWithTimeWindowAndTrack
                name: assetFilterWithTimeWindowAndTrack
                properties:
                  firstQuality:
                    bitrate: 128000
                  presentationTimeRange:
                    endTimestamp: 170000000
                    forceEndTimestamp: false
                    liveBackoffDuration: 0
                    presentationWindowDuration: 900000000000
                    startTimestamp: 0
                    timescale: 10000000
                  tracks:
                    - trackSelections:
                        - operation: Equal
                          property: Type
                          value: Audio
                        - operation: NotEqual
                          property: Language
                          value: en
                        - operation: NotEqual
                          property: FourCC
                          value: EC-3
                    - trackSelections:
                        - operation: Equal
                          property: Type
                          value: Video
                        - operation: Equal
                          property: Bitrate
                          value: 3000000-5000000
                type: Microsoft.Media/mediaservices/assets/assetFilters
            "404": {}
    patch:
      description: Updates an existing Asset Filter associated with the specified Asset.
      operationId: AssetFilters_Update
      parameters:
        - $ref: "#/parameters/SubscriptionId"
        - $ref: "#/parameters/ResourceGroupName"
        - $ref: "#/parameters/MediaServicesAccountName"
        - description: The Asset name.
          in: path
          name: assetName
          required: true
          type: string
        - description: The Asset Filter name
          in: path
          name: filterName
          required: true
          type: string
        - description: The request parameters
          in: body
          name: parameters
          required: true
          schema:
            $ref: "#/definitions/AssetFilter"
        - $ref: "#/parameters/ApiVersion"
      responses:
        "200":
          description: OK
          schema:
            $ref: "#/definitions/AssetFilter"
        default:
          description: Detailed error information.
          schema:
            $ref: "#/definitions/ApiError"
      summary: Update an Asset Filter
      x-ms-examples:
        Update an Asset Filter:
          parameters:
            accountName: contosomedia
            api-version: 2018-07-01
            assetName: ClimbingMountRainer
            filterName: assetFilterWithTimeWindowAndTrack
            parameters:
              properties:
                firstQuality:
                  bitrate: 128000
                presentationTimeRange:
                  endTimestamp: 170000000
                  forceEndTimestamp: false
                  liveBackoffDuration: 0
                  presentationWindowDuration: 900000000000
                  startTimestamp: 10
                  timescale: 10000000
            resourceGroupName: contoso
            subscriptionId: 00000000-0000-0000-0000-000000000000
          responses:
            "200":
              body:
                id: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/assetFilterWithTimeWindowAndTrack
                name: assetFilterWithTimeWindowAndTrack
                properties:
                  firstQuality:
                    bitrate: 128000
                  presentationTimeRange:
                    endTimestamp: 170000000
                    forceEndTimestamp: false
                    liveBackoffDuration: 0
                    presentationWindowDuration: 900000000000
                    startTimestamp: 10
                    timescale: 10000000
                  tracks:
                    - trackSelections:
                        - operation: Equal
                          property: Type
                          value: Audio
                        - operation: NotEqual
                          property: Language
                          value: en
                        - operation: NotEqual
                          property: FourCC
                          value: EC-3
                    - trackSelections:
                        - operation: Equal
                          property: Type
                          value: Video
                        - operation: Equal
                          property: Bitrate
                          value: 3000000-5000000
                type: Microsoft.Media/mediaservices/assets/assetFilters
    put:
      description: Creates or updates an Asset Filter associated with the specified Asset.
      operationId: AssetFilters_CreateOrUpdate
      parameters:
        - $ref: "#/parameters/SubscriptionId"
        - $ref: "#/parameters/ResourceGroupName"
        - $ref: "#/parameters/MediaServicesAccountName"
        - description: The Asset name.
          in: path
          name: assetName
          required: true
          type: string
        - description: The Asset Filter name
          in: path
          name: filterName
          required: true
          type: string
        - description: The request parameters
          in: body
          name: parameters
          required: true
          schema:
            $ref: "#/definitions/AssetFilter"
        - $ref: "#/parameters/ApiVersion"
      responses:
        "200":
          description: OK
          schema:
            $ref: "#/definitions/AssetFilter"
        "201":
          description: Created
          schema:
            $ref: "#/definitions/AssetFilter"
        default:
          description: Detailed error information.
          schema:
            $ref: "#/definitions/ApiError"
      summary: Create or update an Asset Filter
      x-ms-examples:
        Create an Asset Filter:
          parameters:
            accountName: contosomedia
            api-version: 2018-07-01
            assetName: ClimbingMountRainer
            filterName: newAssetFilter
            parameters:
              properties:
                firstQuality:
                  bitrate: 128000
                presentationTimeRange:
                  endTimestamp: 170000000
                  forceEndTimestamp: false
                  liveBackoffDuration: 0
                  presentationWindowDuration: 900000000000
                  startTimestamp: 0
                  timescale: 10000000
                tracks:
                  - trackSelections:
                      - operation: Equal
                        property: Type
                        value: Audio
                      - operation: NotEqual
                        property: Language
                        value: en
                      - operation: NotEqual
                        property: FourCC
                        value: EC-3
                  - trackSelections:
                      - operation: Equal
                        property: Type
                        value: Video
                      - operation: Equal
                        property: Bitrate
                        value: 3000000-5000000
            resourceGroupName: contoso
            subscriptionId: 00000000-0000-0000-0000-000000000000
          responses:
            "200":
              body:
                id: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/newAssetFilter
                name: newAssetFilter
                properties:
                  firstQuality:
                    bitrate: 128000
                  presentationTimeRange:
                    endTimestamp: 170000000
                    forceEndTimestamp: false
                    liveBackoffDuration: 0
                    presentationWindowDuration: 900000000000
                    startTimestamp: 0
                    timescale: 10000000
                  tracks:
                    - trackSelections:
                        - operation: Equal
                          property: Type
                          value: Audio
                        - operation: NotEqual
                          property: Language
                          value: en
                        - operation: NotEqual
                          property: FourCC
                          value: EC-3
                    - trackSelections:
                        - operation: Equal
                          property: Type
                          value: Video
                        - operation: Equal
                          property: Bitrate
                          value: 3000000-5000000
                type: Microsoft.Media/mediaservices/assets/assetFilters
            "201":
              body:
                id: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/contoso/providers/Microsoft.Media/mediaservices/contosomedia/assets/ClimbingMountRainer/assetFilters/newAssetFilter
                name: newAssetFilter
                properties:
                  firstQuality:
                    bitrate: 128000
                  presentationTimeRange:
                    endTimestamp: 170000000
                    forceEndTimestamp: false
                    liveBackoffDuration: 0
                    presentationWindowDuration: 900000000000
                    startTimestamp: 0
                    timescale: 10000000
                  tracks:
                    - trackSelections:
                        - operation: Equal
                          property: Type
                          value: Audio
                        - operation: NotEqual
                          property: Language
                          value: en
                        - operation: NotEqual
                          property: FourCC
                          value: EC-3
                    - trackSelections:
                        - operation: Equal
                          property: Type
                          value: Video
                        - operation: Equal
                          property: Bitrate
                          value: 3000000-5000000
                type: Microsoft.Media/mediaservices/assets/assetFilters
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/getEncryptionKey":
    post:
      description: Gets the Asset storage encryption keys used to decrypt content created by version 2 of the Media Services API
      operationId: Assets_GetEncryptionKey
      parameters:
        - $ref: "#/parameters/SubscriptionId"
        - $ref: "#/parameters/ResourceGroupName"
        - $ref: "#/parameters/MediaServicesAccountName"
        - description: The Asset name.
          in: path
          name: assetName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersion"
      responses:
        "200":
          description: OK
          schema:
            $ref: "#/definitions/StorageEncryptedAssetDecryptionData"
        default:
          description: Detailed error information.
          schema:
            $ref: "#/definitions/ApiError"
      summary: Gets the Asset storage key
      x-ms-examples:
        Get Asset Storage Encryption Keys:
          parameters:
            accountName: contosomedia
            api-version: 2018-07-01
            assetName: ClimbingMountSaintHelens
            resourceGroupName: contoso
            subscriptionId: 00000000-0000-0000-0000-000000000000
          responses:
            "200":
              body:
                assetFileEncryptionMetadata:
                  - assetFileId: a9536fa7-bd5d-4f84-a137-d1290982fe95
                    assetFileName: AssetFile0
                    initializationVector: "-988929866"
                  - assetFileId: f4060046-94ac-422d-824c-3f1d6aa3ecf2
                    assetFileName: AssetFile1
                    initializationVector: "1604993689"
                  - assetFileId: 485968d3-ddae-4b13-98e7-901201a9620b
                    assetFileName: AssetFile2
                    initializationVector: "100082635"
                key: AAAAAAAAAAAAAAAAAAAAAA==
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/listContainerSas":
    post:
      description: Lists storage container URLs with shared access signatures (SAS) for uploading and downloading Asset content. The signatures are derived from the storage account keys.
      operationId: Assets_ListContainerSas
      parameters:
        - $ref: "#/parameters/SubscriptionId"
        - $ref: "#/parameters/ResourceGroupName"
        - $ref: "#/parameters/MediaServicesAccountName"
        - description: The Asset name.
          in: path
          name: assetName
          required: true
          type: string
        - description: The request parameters
          in: body
          name: parameters
          required: true
          schema:
            $ref: "#/definitions/ListContainerSasInput"
        - $ref: "#/parameters/ApiVersion"
      responses:
        "200":
          description: OK
          schema:
            $ref: "#/definitions/AssetContainerSas"
        default:
          description: Detailed error information.
          schema:
            $ref: "#/definitions/ApiError"
      summary: List the Asset URLs
      x-ms-examples:
        List Asset SAS URLs:
          parameters:
            accountName: contosomedia
            api-version: 2018-07-01
            assetName: ClimbingMountBaker
            parameters:
              expiryTime: 2018-01-01T10:00:00.007Z
              permissions: ReadWrite
            resourceGroupName: contoso
            subscriptionId: 00000000-0000-0000-0000-000000000000
          responses:
            "200":
              body:
                assetContainerSasUrls:
                  - https://storage0.blob.core.windows.net/asset-89af1750-e681-4fbe-8c4c-9a5567867a6b?sr=b&sig=<secret-value-from-key-1>&se=2018-01-01T10:00:00Z&sp=lrw
                  - https://storage0.blob.core.windows.net/asset-89af1750-e681-4fbe-8c4c-9a5567867a6b?sr=b&sig=<secret-value-from-key-2>&se=2018-01-01T10:00:00Z&sp=lrw
  "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/assets/{assetName}/listStreamingLocators":
    post:
      description: Lists Streaming Locators which are associated with this asset.
      operationId: Assets_ListStreamingLocators
      parameters:
        - $ref: "#/parameters/SubscriptionId"
        - $ref: "#/parameters/ResourceGroupName"
        - $ref: "#/parameters/MediaServicesAccountName"
        - description: The Asset name.
          in: path
          name: assetName
          required: true
          type: string
        - $ref: "#/parameters/ApiVersion"
      responses:
        "200":
          description: OK
          schema:
            $ref: "#/definitions/ListStreamingLocatorsResponse"
        default:
          description: Detailed error information.
          schema:
            $ref: "#/definitions/ApiError"
      summary: List Streaming Locators
      x-ms-examples:
        List Asset SAS URLs:
          parameters:
            accountName: contosomedia
            api-version: 2018-07-01
            assetName: ClimbingMountSaintHelens
            resourceGroupName: contoso
            subscriptionId: 00000000-0000-0000-0000-000000000000
          responses:
            "200":
              body:
                streamingLocators:
                  - assetName: ClimbingMountSaintHelens
                    created: 2018-08-08T18:29:26.9729344Z
                    endTime: 9999-12-31T23:59:59.9999999Z
                    name: secureStreamingLocator
                    streamingLocatorId: 36b74ce3-20b4-4de0-84f1-97e9138e886c
                    streamingPolicyName: secureStreamingPolicy
                  - assetName: ClimbingMountSaintHelens
                    created: 2018-08-08T18:29:26.9487636Z
                    endTime: 9999-12-31T23:59:59.9999999Z
                    name: clearStreamingLocator
                    streamingLocatorId: 3e8d9ac3-50f6-4f6d-8482-078ceb56f23a
                    streamingPolicyName: clearStreamingPolicy
definitions:
  ApiError:
    description: The API error.
    properties:
      error:
        $ref: "#/definitions/ODataError"
        description: The error properties.
    type: object
  Asset:
    allOf:
      - allOf:
          - description: The core properties of ARM resources.
            properties:
              id:
                description: Fully qualified resource ID for the resource.
                readOnly: true
                type: string
              name:
                description: The name of the resource.
                readOnly: true
                type: string
              type:
                description: The type of the resource.
                readOnly: true
                type: string
            x-ms-azure-resource: true
        description: The resource model definition for a ARM proxy resource.
    description: An Asset.
    properties:
      properties:
        $ref: "#/definitions/AssetProperties"
        description: The resource properties.
        x-ms-client-flatten: true
    type: object
  AssetCollection:
    description: A collection of Asset items.
    properties:
      "@odata.nextLink":
        description: A link to the next page of the collection (when the collection contains too many results to return in one response).
        type: string
      value:
        description: A collection of Asset items.
        items:
          $ref: "#/definitions/Asset"
        type: array
    type: object
  AssetContainerSas:
    description: The Asset Storage container SAS URLs.
    properties:
      assetContainerSasUrls:
        description: The list of Asset container SAS URLs.
        items:
          type: string
        type: array
    type: object
  AssetFileEncryptionMetadata:
    description: The Asset File Storage encryption metadata.
    properties:
      assetFileId:
        description: The Asset File Id.
        format: uuid
        type: string
      assetFileName:
        description: The Asset File name.
        type: string
      initializationVector:
        description: The Asset File initialization vector.
        type: string
    required:
      - assetFileId
    type: object
  AssetFilter:
    allOf:
      - allOf:
          - description: The core properties of ARM resources.
            properties:
              id:
                description: Fully qualified resource ID for the resource.
                readOnly: true
                type: string
              name:
                description: The name of the resource.
                readOnly: true
                type: string
              type:
                description: The type of the resource.
                readOnly: true
                type: string
            x-ms-azure-resource: true
        description: The resource model definition for a ARM proxy resource.
    description: An Asset Filter.
    properties:
      properties:
        $ref: "#/definitions/MediaFilterProperties"
        x-ms-client-flatten: true
    type: object
  AssetFilterCollection:
    description: A collection of AssetFilter items.
    properties:
      "@odata.nextLink":
        description: A link to the next page of the collection (when the collection contains too many results to return in one response).
        type: string
      value:
        description: A collection of AssetFilter items.
        items:
          $ref: "#/definitions/AssetFilter"
        type: array
    type: object
  AssetProperties:
    description: The Asset properties.
    properties:
      alternateId:
        description: The alternate ID of the Asset.
        type: string
      assetId:
        description: The Asset ID.
        format: uuid
        readOnly: true
        type: string
        x-nullable: false
      container:
        description: The name of the asset blob container.
        type: string
      created:
        description: The creation date of the Asset.
        format: date-time
        readOnly: true
        type: string
        x-nullable: false
      description:
        description: The Asset description.
        type: string
      lastModified:
        description: The last modified date of the Asset.
        format: date-time
        readOnly: true
        type: string
        x-nullable: false
      storageAccountName:
        description: The name of the storage account.
        type: string
      storageEncryptionFormat:
        description: The Asset encryption format. One of None or MediaStorageEncryption.
        enum:
          - None
          - MediaStorageClientEncryption
        readOnly: true
        type: string
        x-ms-enum:
          modelAsString: true
          name: AssetStorageEncryptionFormat
          values:
            - description: The Asset does not use client-side storage encryption (this is the only allowed value for new Assets).
              value: None
            - description: The Asset is encrypted with Media Services client-side encryption.
              value: MediaStorageClientEncryption
        x-nullable: false
    type: object
  AssetStreamingLocator:
    description: Properties of the Streaming Locator.
    properties:
      assetName:
        description: Asset Name.
        readOnly: true
        type: string
      created:
        description: The creation time of the Streaming Locator.
        format: date-time
        readOnly: true
        type: string
        x-nullable: false
      defaultContentKeyPolicyName:
        description: Name of the default ContentKeyPolicy used by this Streaming Locator.
        readOnly: true
        type: string
      endTime:
        description: The end time of the Streaming Locator.
        format: date-time
        readOnly: true
        type: string
        x-nullable: false
      name:
        description: Streaming Locator name.
        readOnly: true
        type: string
      startTime:
        description: The start time of the Streaming Locator.
        format: date-time
        readOnly: true
        type: string
        x-nullable: false
      streamingLocatorId:
        description: StreamingLocatorId of the Streaming Locator.
        format: uuid
        readOnly: true
        type: string
        x-nullable: false
      streamingPolicyName:
        description: Name of the Streaming Policy used by this Streaming Locator.
        readOnly: true
        type: string
    type: object
  FilterTrackPropertyCondition:
    description: The class to specify one track property condition.
    properties:
      operation:
        description: The track property condition operation.
        enum:
          - Equal
          - NotEqual
        type: string
        x-ms-enum:
          modelAsString: true
          name: FilterTrackPropertyCompareOperation
          values:
            - description: The equal operation.
              value: Equal
            - description: The not equal operation.
              value: NotEqual
      property:
        description: The track property type.
        enum:
          - Unknown
          - Type
          - Name
          - Language
          - FourCC
          - Bitrate
        type: string
        x-ms-enum:
          modelAsString: true
          name: FilterTrackPropertyType
          values:
            - description: The unknown track property type.
              value: Unknown
            - description: The type.
              value: Type
            - description: The name.
              value: Name
            - description: The language.
              value: Language
            - description: The fourCC.
              value: FourCC
            - description: The bitrate.
              value: Bitrate
      value:
        description: The track property value.
        type: string
    required:
      - property
      - value
      - operation
    type: object
  FilterTrackSelection:
    description: Representing a list of FilterTrackPropertyConditions to select a track.  The filters are combined using a logical AND operation.
    properties:
      trackSelections:
        description: The track selections.
        items:
          $ref: "#/definitions/FilterTrackPropertyCondition"
        type: array
    required:
      - trackSelections
    type: object
  FirstQuality:
    description: Filter First Quality
    properties:
      bitrate:
        description: The first quality bitrate.
        format: int32
        type: integer
    required:
      - bitrate
    type: object
  ListContainerSasInput:
    description: The parameters to the list SAS request.
    properties:
      expiryTime:
        description: The SAS URL expiration time.  This must be less than 24 hours from the current time.
        format: date-time
        type: string
      permissions:
        description: The permissions to set on the SAS URL.
        enum:
          - Read
          - ReadWrite
          - ReadWriteDelete
        type: string
        x-ms-enum:
          modelAsString: true
          name: AssetContainerPermission
          values:
            - description: The SAS URL will allow read access to the container.
              value: Read
            - description: The SAS URL will allow read and write access to the container.
              value: ReadWrite
            - description: The SAS URL will allow read, write and delete access to the container.
              value: ReadWriteDelete
    type: object
  ListStreamingLocatorsResponse:
    description: The Streaming Locators associated with this Asset.
    properties:
      streamingLocators:
        description: The list of Streaming Locators.
        items:
          $ref: "#/definitions/AssetStreamingLocator"
        readOnly: true
        type: array
    type: object
  MediaFilterProperties:
    description: The Media Filter properties.
    properties:
      firstQuality:
        $ref: "#/definitions/FirstQuality"
        description: The first quality.
      presentationTimeRange:
        $ref: "#/definitions/PresentationTimeRange"
        description: The presentation time range.
      tracks:
        description: The tracks selection conditions.
        items:
          $ref: "#/definitions/FilterTrackSelection"
        type: array
    type: object
  ODataError:
    description: Information about an error.
    properties:
      code:
        description: A language-independent error name.
        type: string
      details:
        description: The error details.
        items:
          $ref: "#/definitions/ODataError"
        type: array
      message:
        description: The error message.
        type: string
      target:
        description: The target of the error (for example, the name of the property in error).
        type: string
    type: object
  PresentationTimeRange:
    description: The presentation time range, this is asset related and not recommended for Account Filter.
    properties:
      endTimestamp:
        description: The absolute end time boundary.
        format: int64
        type: integer
      forceEndTimestamp:
        description: The indicator of forcing existing of end time stamp.
        type: boolean
      liveBackoffDuration:
        description: The relative to end right edge.
        format: int64
        type: integer
      presentationWindowDuration:
        description: The relative to end sliding window.
        format: int64
        type: integer
      startTimestamp:
        description: The absolute start time boundary.
        format: int64
        type: integer
      timescale:
        description: The time scale of time stamps.
        format: int64
        type: integer
    type: object
  StorageEncryptedAssetDecryptionData:
    description: Data needed to decrypt asset files encrypted with legacy storage encryption.
    properties:
      assetFileEncryptionMetadata:
        description: Asset File encryption metadata.
        items:
          $ref: "#/definitions/AssetFileEncryptionMetadata"
        type: array
      key:
        description: The Asset File storage encryption key.
        format: byte
        type: string
    type: object
