Export (0) Print
Expand All

List Connections

Updated: April 15, 2015

The List Connections operation returns a list of the local network connections that can be accessed through the gateway.

The List Connections request may be specified as follows. Replace <subscription-id> with the subscription ID and <virtual-network-name> with the name of the virtual network associated with the gateway.

 

Method Request URI

GET

https://management.core.windows.net/<subscription-id>/services/networking/<virtual-network-name>/gateway/connections

You must make sure that the request that is made to the management service is secure. For additional details, see Authenticating Service Management Requests.

The following table describes the request headers.

 

Request Header Description

x-ms-version

Required. Specifies the version of the operation to use for this request. The value for this header should be set to 2012-03-01 or higher. For more information about versioning headers, see Service Management Versioning.

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

A successful operation returns status code 200 (OK). For information about status codes, see Service Management 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

x-ms-request-id

A value that uniquely identifies a request made against the management service.

The format of the response body is as follows:


<?xml version="1.0" encoding="utf-8"?>
<Connections xmlns="http://schemas.microsoft.com/windowsazure">
  <Connection>
    <LocalNetworkSiteName>name</LocalNetworkSiteName>
    <ConnectivityState>connection-state</ConnectivityState >
    <LastEvent>
      <Timestamp>connect-event-time</Timestamp>
      <Id>connect-event-id</Id>
      <Message>connect-event-message</Message>
      <Data>connect-event-data</Data>
    </LastEvent>
    <IngressBytesTransferred>data-in-transferred</IngressBytesTransferred >
    <EgressBytesTransferred>data-out-transferred</EgressBytesTransferred>
    <LastConnectionEstablished>last-cn-estab</LastConnectionEstablished>
    <AllocatedIPAddresses>allocated-ip-addresses</AllocatedIPAddresses>
  </Connection>
</Connections>

The following table describes the elements in the response body.

 

Response Element Description

LocalNetworkSiteName

Specifies the name of the local network site represented by the connection.

ConnectivityState

Specifies the connection state of the site.

Possible values are:

  • Connected

  • Connecting

  • NotConnected

LastEvent

Specifies the time, in Coordinated Universal Time (UTC) format at which the provisioning event occurred. UTC formats are described by ISO 8601.

IngressBytesTransferred

Specifies the number of bytes of data transferred in through this connection since it was started.

EgressBytesTransferred

Specifies the number of bytes of data transferred out through this connection since it was started.

LastConnectionEstablished

Specifies the date and time, in Coordinated Universal Time (UTC) when the connection was last established. UTC formats are described by ISO 8601.

AllocatedIPAddresses

If LocalNetworkSiteName is defined as VPNClientConnection, this element specifies a list of IP addresses (represented as strings) that are assigned to currently connected VPN clients. For example:


<AllocatedIPAddresses>
  <string>10.0.0.1</string>
  <string>10.0.0.2</string>
</AllocatedIPAddresses>

If LocalNetworkSiteName is not defined as VPNClientConnection, this element is not used.

Specifies the time, in Coordinated Universal Time (UTC) format at which the provisioning event occurred.

 

Element Description

Timestamp

Specifies that the event occurred.

Id

Specifies the ID that represents the event.

Message

Specifies a message that describes the event.

Data

Specifies data related to the event.

Show:
© 2015 Microsoft