Workload Networks - Create Port Mirroring
Create a WorkloadNetworkPortMirroring
PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AVS/privateClouds/{privateCloudName}/workloadNetworks/default/portMirroringProfiles/{portMirroringId}?api-version=2023-09-01
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
port
|
path | True |
string |
ID of the NSX port mirroring profile. Regex pattern: |
private
|
path | True |
string |
Name of the private cloud Regex pattern: |
resource
|
path | True |
string |
The name of the resource group. The name is case insensitive. |
subscription
|
path | True |
string uuid |
The ID of the target subscription. The value must be an UUID. |
api-version
|
query | True |
string |
The API version to use for this operation. |
Request Body
Name | Type | Description |
---|---|---|
properties.destination |
string |
Destination VM Group. |
properties.direction |
Direction of port mirroring profile. |
|
properties.displayName |
string |
Display name of the port mirroring profile. |
properties.revision |
integer |
NSX revision number. |
properties.source |
string |
Source VM Group. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
Resource 'WorkloadNetworkPortMirroring' update operation succeeded |
|
201 Created |
Resource 'WorkloadNetworkPortMirroring' create operation succeeded Headers Retry-After: integer |
|
Other Status Codes |
An unexpected error response. |
Security
azure_auth
Azure Active Directory OAuth2 Flow.
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | impersonate your user account |
Examples
WorkloadNetworks_CreatePortMirroring
Sample Request
PUT https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles/portMirroring1?api-version=2023-09-01
{
"properties": {
"displayName": "portMirroring1",
"direction": "BIDIRECTIONAL",
"source": "vmGroup1",
"destination": "vmGroup2",
"revision": 1
}
}
Sample Response
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles/portMirroring1",
"name": "portMirroring1",
"properties": {
"displayName": "portMirroring1",
"direction": "BIDIRECTIONAL",
"source": "vmGroup1",
"destination": "vmGroup2",
"status": "SUCCESS",
"revision": 1
},
"type": "Microsoft.AVS/privateClouds/workloadNetworks/portMirroringProfiles"
}
{
"id": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.AVS/privateClouds/cloud1/workloadNetworks/default/portMirroringProfiles/portMirroring1",
"name": "portMirroring1",
"properties": {
"displayName": "portMirroring1",
"direction": "BIDIRECTIONAL",
"source": "vmGroup1",
"destination": "vmGroup2",
"status": "SUCCESS",
"revision": 1
},
"type": "Microsoft.AVS/privateClouds/workloadNetworks/portMirroringProfiles"
}
Definitions
Name | Description |
---|---|
created |
The type of identity that created the resource. |
Error |
The resource management error additional info. |
Error |
The error detail. |
Error |
Error response |
Port |
Port Mirroring Direction |
Port |
Port Mirroring status |
system |
Metadata pertaining to creation and last modification of the resource. |
Workload |
NSX Port Mirroring |
Workload |
Workload Network Port Mirroring provisioning state |
createdByType
The type of identity that created the resource.
Name | Type | Description |
---|---|---|
Application |
string |
|
Key |
string |
|
ManagedIdentity |
string |
|
User |
string |
ErrorAdditionalInfo
The resource management error additional info.
Name | Type | Description |
---|---|---|
info |
object |
The additional info. |
type |
string |
The additional info type. |
ErrorDetail
The error detail.
Name | Type | Description |
---|---|---|
additionalInfo |
The error additional info. |
|
code |
string |
The error code. |
details |
The error details. |
|
message |
string |
The error message. |
target |
string |
The error target. |
ErrorResponse
Error response
Name | Type | Description |
---|---|---|
error |
The error object. |
PortMirroringDirectionEnum
Port Mirroring Direction
Name | Type | Description |
---|---|---|
BIDIRECTIONAL |
string |
is bidirectional |
EGRESS |
string |
is egress |
INGRESS |
string |
is ingress |
PortMirroringStatusEnum
Port Mirroring status
Name | Type | Description |
---|---|---|
FAILURE |
string |
is failure |
SUCCESS |
string |
is success |
systemData
Metadata pertaining to creation and last modification of the resource.
Name | Type | Description |
---|---|---|
createdAt |
string |
The timestamp of resource creation (UTC). |
createdBy |
string |
The identity that created the resource. |
createdByType |
The type of identity that created the resource. |
|
lastModifiedAt |
string |
The timestamp of resource last modification (UTC) |
lastModifiedBy |
string |
The identity that last modified the resource. |
lastModifiedByType |
The type of identity that last modified the resource. |
WorkloadNetworkPortMirroring
NSX Port Mirroring
Name | Type | Description |
---|---|---|
id |
string |
Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" |
name |
string |
The name of the resource |
properties.destination |
string |
Destination VM Group. |
properties.direction |
Direction of port mirroring profile. |
|
properties.displayName |
string |
Display name of the port mirroring profile. |
properties.provisioningState |
The provisioning state |
|
properties.revision |
integer |
NSX revision number. |
properties.source |
string |
Source VM Group. |
properties.status |
Port Mirroring Status. |
|
systemData |
Azure Resource Manager metadata containing createdBy and modifiedBy information. |
|
type |
string |
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" |
WorkloadNetworkPortMirroringProvisioningState
Workload Network Port Mirroring provisioning state
Name | Type | Description |
---|---|---|
Building |
string |
is building |
Canceled |
string |
Resource creation was canceled. |
Deleting |
string |
is deleting |
Failed |
string |
Resource creation failed. |
Succeeded |
string |
Resource has been created. |
Updating |
string |
is updating |