Create an FC WWPN alias
- PDF of this doc site
Collection of separate PDF docs
Creating your file...
POST /network/fc/wwpn-aliases
Introduced In: 9.6
Creates an FC WWPN alias.
Required properties
-
svm.uuid
orsvm.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 |
---|---|---|
_links |
||
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
{
"_links": {
"self": {
"href": "/api/resourcelink"
}
},
"alias": "host1",
"svm": {
"_links": {
"self": {
"href": "/api/resourcelink"
}
},
"name": "svm1",
"uuid": "02c9e252-41be-11e9-81d5-00a0986138f7"
},
"wwpn": "2f:a0:00:a0:98:0b:56:13"
}
Response
Status: 201, Created
Name | Type | Description |
---|---|---|
_links |
||
num_records |
integer |
Number of records. |
records |
array[wwpn_alias] |
Example response
{
"_links": {
"next": {
"href": "/api/resourcelink"
},
"self": {
"href": "/api/resourcelink"
}
},
"records": [
{
"_links": {
"self": {
"href": "/api/resourcelink"
}
},
"alias": "host1",
"svm": {
"_links": {
"self": {
"href": "/api/resourcelink"
}
},
"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". |
Name | Type | Description |
---|---|---|
error |
Example error
{
"error": {
"arguments": [
{
"code": "string",
"message": "string"
}
],
"code": "4",
"message": "entry doesn't exist",
"target": "uuid"
}
}
Definitions
See Definitions
href
Name | Type | Description |
---|---|---|
href |
string |
_links
Name | Type | Description |
---|---|---|
self |
svm
SVM, applies only to SVM-scoped objects.
Name | Type | Description |
---|---|---|
_links |
||
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 |
---|---|---|
_links |
||
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. |
_links
Name | Type | Description |
---|---|---|
next |
||
self |
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. |