Hade du nytta av den här sidan?
Din feedback om det här innehållet är viktig. Berätta vad du tycker.
Ytterligare feedback?
1500 tecken kvar
Enumeration
EN
Det här innehållet finns inte tillgängligt på ditt språk men här finns den engelska versionen,

Enumeration

 

Updated: May 14, 2015

The Discovery operation navigates hierarchical namespaces, while Enumeration enables you to list all entities of certain kind, in a flat view. Enumeration is performed against the special reserved resource collection ($Resources) that resides at the root of the service namespace. For features, enumeration occurs with respect to the collection address; for example, “/subscriptions” or “/rules” for subscriptions and rules on a topic.

You can construct the Enumeration request as follows.

Method

Request URI

HTTP Version

GET

https://{serviceNamespace}.servicebus.Windows.net[:{port}]/$Resources/{resourceCollection}

or

https://{serviceNamespace}.servicebus.Windows.net[:{port}]/{path}/Subscriptions

or

https://{serviceNamespace}.servicebus.Windows.net[:{port}]/{path}/Subscriptions/{subscription-name}/rules

HTTP/1.1

The following table describes required and optional request headers.

Request Header

Description

Authorization

Specifies a WRAPv0.9.7.2 token containing a SimpleWebToken acquired from ACS. Set to WRAP access_token=”{swt}”.

The response includes an HTTP status code and a set of response headers.

Code

Description

200

OK.

401

Unauthorized. The request is not authorized.

System_CAPS_noteNote

An empty feed is returned if no entities exist.

For information about status codes, see Status and Error Codes.

The response for this operation includes the following headers. The response may also include additional standard HTTP headers. All standard headers conform to the HTTP/1.1 protocol specification.

Response Header

Description

Content-type

Content-Type: application/atom+xml; type=entry

Upon success, an Atom feed containing multiple Atom entries listing all available resource of given type in the given namespace is returned. For example:

<?xml version="1.0" encoding="utf-8" ?>
<feed xmlns='http://www.w3.org/2005/Atom'>
  <entry>
    <id>https://{serviceNamespace}.Windows.net/{path}</id>
    <published>{createdTime}</published>
    <updated>{lastUpdatedTime}</updated>
    <link rel='self'>https://{serviceNamespace}.servicebus.Windows.net/{path}</link>
    <content type='application/xml'>
      ...
    </content>
  </entry>
</feed>
Visa:
© 2015 Microsoft