Create an FC WWPN alias
POST /network/fc/wwpn-aliases
Introduced In: 9.6
Creates an FC WWPN alias.
Required properties
- 
svm.uuidorsvm.name- Existing SVM in which to create the FC alias. - 
alias- Name of the FC alias. - 
wwpn- FC WWPN for which to create the alias. 
Related ONTAP commands
- 
vserver fcp wwpn-alias set 
Learn more
Parameters
| Name | Type | In | Required | Description | 
|---|---|---|---|---|
return_records  | 
boolean  | 
query  | 
False  | 
The default is false. If set to true, the records are returned. 
  | 
Request Body
| Name | Type | Description | 
|---|---|---|
alias  | 
string  | 
The FC WWPN alias. Required in POST.  | 
svm  | 
SVM, applies only to SVM-scoped objects.  | 
|
wwpn  | 
string  | 
The FC initiator WWPN. Required in POST.  | 
Example request
{
  "alias": "host1",
  "svm": {
    "name": "svm1",
    "uuid": "02c9e252-41be-11e9-81d5-00a0986138f7"
  },
  "wwpn": "2f:a0:00:a0:98:0b:56:13"
}
Response
Status: 201, Created
| Name | Type | Description | 
|---|---|---|
num_records  | 
integer  | 
Number of records.  | 
records  | 
array[wwpn_alias]  | 
Example response
{
  "records": [
    {
      "alias": "host1",
      "svm": {
        "name": "svm1",
        "uuid": "02c9e252-41be-11e9-81d5-00a0986138f7"
      },
      "wwpn": "2f:a0:00:a0:98:0b:56:13"
    }
  ]
}
Error
Status: Default
ONTAP Error Response Codes
| Error Code | Description | 
|---|---|
1254317  | 
The alias already exists.  | 
1260882  | 
The supplied SVM does not exist.  | 
2621462  | 
The supplied SVM does not exist.  | 
2621706  | 
Both the SVM UUID and SVM name were supplied, but do not refer to the same SVM.  | 
2621707  | 
No SVM was specified. Either   | 
5373982  | 
An invalid WWPN was supplied. The valid WWN format is XX:XX:XX:XX:XX:XX:XX:XX, where X is a hexadecimal digit. Example: "01:02:03:04:0a:0b:0c:0d".  | 
Definitions
See Definitions
href
| Name | Type | Description | 
|---|---|---|
href  | 
string  | 
_links
svm
SVM, applies only to SVM-scoped objects.
| Name | Type | Description | 
|---|---|---|
name  | 
string  | 
The name of the SVM.  | 
uuid  | 
string  | 
The unique identifier of the SVM.  | 
wwpn_alias
A Fibre Channel (FC) world wide port name (WWPN) alias. A WWPN is a unique 64-bit identifier for an FC initiator. It is displayed as a 16-character hexadecimal value. SAN administrators may find it easier to identify FC initiators using an alias, especially in larger SANs.
| Name | Type | Description | 
|---|---|---|
alias  | 
string  | 
The FC WWPN alias. Required in POST.  | 
svm  | 
SVM, applies only to SVM-scoped objects.  | 
|
wwpn  | 
string  | 
The FC initiator WWPN. Required in POST.  | 
error_arguments
| Name | Type | Description | 
|---|---|---|
code  | 
string  | 
Argument code  | 
message  | 
string  | 
Message argument  | 
error
| Name | Type | Description | 
|---|---|---|
arguments  | 
array[error_arguments]  | 
Message arguments  | 
code  | 
string  | 
Error code  | 
message  | 
string  | 
Error message  | 
target  | 
string  | 
The target parameter that caused the error.  |