Get Network Security Group for Role

 

The Get Network Security Group for Role operation gets the Network Security Group which is associated with the selected Virtual Machine.

Request

The Get Network Security Group for Role request is specified as follows. Replace <subscription-id> with your subscription ID, <cloud-service-name> with the name of the cloud service, <deployment-name> with the name of the deployment, and <role-name> with the name of the Virtual Machine.

Method

Request URI

GET

https://management.core.windows.net/<subscription-id>/services/hostedservices/<cloud-service-name>/deployments/<deployment-name>/roles/<role-name>/networksecuritygroups

URI Parameters

None.

Request Headers

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 of this header must be set to 2015-04-01 or higher.

Request Body

None.

Response

Insert section body here.

Status Code

A successful operation returns status code 202 (Accepted).

Response Headers

The response for this operation includes the following headers. The response may also include additional standard HTTP headers.

Response Header

Description

x-ms-request-id

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

Response Body

<NetworkSecurityGroup xmlns="https://schemas.microsoft.com/windowsazure">
  <Name>network-security-group-name</Name>
  <State>association-state</State>
</NetworkSecurityGroup>

Element name

Description

Name

Required. Specifies the name of the Network Security Group that will be associated with selected Virtual Machine.

State

Specifies the State of the association between Network Security Group and Virtual Machine. Possible Values are:

  1. Created

  2. Creating

  3. Updating

  4. Deleting

  5. Unavailable