Partager via


Retrieve Details about a Metadata Container

 

Applies To: Windows Server 2012 Essentials

Retrieves detailed information about a metadata container.

URI Template

GET services/builtin/MediaManagement.svc/metadata/container/mediaType/{mediaTypeData}/groupingMethod/{groupingMethodData}?path={ContainerPath}

{mediaTypeData}
The media type. Choose from one of the following values.

Media Type Value Meaning
music Audio clips.
photo Photos.
video Video clips.

{groupingMethodData}
The grouping method. Choose from one of the following values.

Grouping Method Value Applicable Media Types Meaning
album music Group by album.
albumartist music Group by album artist.
all music, photo, or video Group by media type.
artist music Group by artist.
date photo Group by date.
folder photo or video Group by folder.
genre music Group by musical genre (style).
playlist music Group by playlist.
rating music Group by rating.

{ContainerPath}
The path to the container. To specify the root container, leave this parameter empty.

Sample Request

GET https://www.contoso.com/services/builtin/MediaManagement.svc/metadata/container/mediaType/photo/groupingMethod/all?path= HTTP/1.1  
Accept: application/xml  
Cookie: ASP.NET_SessionId=********************  
Canary: *********************  
Host: domainname  
Content-Length: 0  

Sample Response

HTTP/1.1 200 OK  
<MetadataDetailResult  
    xmlns="http://contracts.microsoft.com/WindowsServerEssentials/2011/09/WebApi"  
    xmlns:i="http://www.w3.org/2001/XMLSchema-instance">  
  <Result>  
    <Date i:nil="true"/>  
    <Id>B</Id>  
    <Title>All Pictures</Title>  
    <TypeName>MetadataContainer</TypeName>  
    <AllCount>0</AllCount>  
    <AllDuration>0</AllDuration>  
    <AllSize>0</AllSize>  
    <CalculationDone>false</CalculationDone>  
    <Count>6</Count>  
    <FullPath/>  
  </Result>  
</MetadataDetailResult>  

Error Codes

Error Code Error Message
400 One or more parameters are not valid.
401 Access is denied to the requested resource.
404 The path does not exist.

See Also

Web Service Methods