SAN Fabric Registration
The SAN Fabric Registration APIs let you specify SAN fabrics and Fibre Channel switches to be managed by PowerVC, and work with those fabrics and switches.
- Options for SAN Fabric Registration APIs
- Register a SAN fabric or switch
- Remove a managed SAN fabric
- Edit a managed SAN fabric
- View all SAN fabrics that are managed
- View details of a managed fabric
- View details of all managed SAN fabrics
Options for SAN Fabric Registration APIs
Method | URI | Description |
---|---|---|
POST |
|
Registers or adds a SAN fabric. |
DELETE |
|
Unregisters or removes a managed SAN fabric. |
PUT |
|
Updates or edits a managed SAN fabric. |
GET |
|
Lists all SAN fabrics that are managed. |
GET |
|
Shows the details of a managed SAN fabric. |
GET |
|
Shows the details of all managed SAN fabrics. |
Register a SAN fabric or switch
This operation adds a SAN fabric to the list that is managed by PowerVC. This API takes configuration attributes for the zone driver in the request body as input and registers the fabric or switch with PowerVC.
For pluggable storage devices and fabrics, the IP address is not shown in the PowerVC user interface.
- Normal Response Code: OK (200)
- Error Response Codes: Bad Request (400®), Server Error (500)
Name | Style | Type | Description |
---|---|---|---|
|
body |
string |
IP address or the host name to connect to the switch or storage controller. |
|
body |
string |
User ID for connecting to the switch or storage controller. |
|
body |
string |
Password for connecting to the switch or storage controller. |
|
body |
string |
Optional (For Cisco switches only): The SSH port used to connect to a Cisco switch. By default, the value is 22. |
|
body |
string |
The type of SAN fabric. Supported values are:
generic, brocade, and cisco . |
|
body |
string |
Optional: User-specified name to give to the switch. The value defaults to resolved host short name. |
|
body |
string |
Virtual fabric ID. This property uniquely identifies the Brocade fabric. Required when registering virtual Brocade fabrics. |
|
body |
string |
For Cisco switches only: The virtual SAN to be used. |
|
body |
string |
Python Class Name for the Cinder Zone Driver for the fabric. |
|
body |
string |
Zoning policy types. The following are the supported values:
|
|
body |
object |
Optional: Driver-specific properties for the configuration file. Specify additional configuration
options by using the pattern |
|
body |
Boolean |
Optional value. Whether to auto-accept or add the SSH fingerprint for the system (if the
fingerprint is not yet trusted or is different from the previously trusted fingerprint) or to fail
with a 403 response code so that the SSH fingerprint can be verified. Default value is
|
1: Used for pluggable fabrics only. 2: Not used for pluggable
fabrics. To specify this information, use |
{"fabric": {
"registration": {
"access_ip": "1.2.3.4",
"user_id": "superuser",
"password": "passw0rd",
"fabric_display_name": "My Fabric 1"
"fabric_type": "brocade"
"zoning_policy": "initiator"
}
}
}
{"fabric": {
"registration": {
"access_ip": "1.2.3.4",
"user_id": "superuser",
"password": "passw0rd",
"fabric_display_name": "My Fabric 1",
"fabric_type": "brocade",
"zoning_policy": "initiator",
"virtual_fabric_id": "1"
}
}
}
{"fabric": {
"registration": {
"fabric_type": "generic",
"fabric_display_name": "My Fabric 1",
"zone_driver": "cinder.zonemanager. drivers.brocade.brcd_fc_zone_driver.BrcdFCZoneDriver",
"zoning_policy": "initiator",
"configuration_properties": {
"fc_fabric_user": "admin",
"fc_fabric_password": "passw0rd",
"fc_fabric_address": "192.168.1.110",
"zone_name_prefix":...
}
}
}
}
Name | Style | Type | Description |
---|---|---|---|
|
body |
string |
IP address or the host name that is used to connect to the switch. |
|
body |
string |
User ID that is used for connecting to the switch. |
|
body |
string |
Optional (For Cisco switches only): The SSH port used to connect to a Cisco switch. By default, the value is 22. |
|
body | string | Required: The type of SAN fabric. Supported values are:
generic, brocade, and cisco . |
|
body |
string |
User-specified name given to the switch. |
|
body |
string |
For Cisco switches only: The virtual SAN to be used. |
|
body |
string |
Internally generated unique name of the registered fabric. |
|
body |
string |
Required: Python Class Name for the Cinder Zone Driver for the fabric. |
|
body |
string |
Zoning policy types. Supported values are 'initiator-target' and 'initiator'. |
|
body |
string |
The date and time that the SAN fabric was registered with PowerVC. |
|
body |
Boolean |
Optional value. Whether to auto-accept or add the SSH fingerprint for the system (if the
fingerprint is not yet trusted or is different from the previously trusted fingerprint) or to fail
with a 403 response code so that the SSH fingerprint can be verified. Default value is
|
1: Used for pluggable fabrics only. 2: Not used for pluggable fabrics. |
{"fabric": {
"registration": {
"access_ip": "1.2.3.4",
"user_id": "superuser",
"fabric_name": "A",
"fabric_display_name": "My Fabric 1"
"fabric_type": "brocade"
"zoning_policy": "initiator"
}
}
}
{"host": {
"registration": {
"fabric_type": "generic",
"fabric_display_name": "My Fabric 1",
"fabric_name": "A",
"zone_driver": "cinder.zonemanager.drivers.brocade.brcd_fc_zone_driver.BrcdFCZoneDriver",
"registered_at": "2013-10-19T16:06:53Z"
"zoning_policy": "initiator"
}
}
}
Remove a managed SAN fabric
This operation unregisters a managed SAN fabric so that it is no longer managed by PowerVC. This API takes the fabric name in the URI as input and takes no request body. The API does not return any response body.
- Normal Response Code: No Content (204)
- Error Response Codes: Bad Request (400), Not Found (404), Server Error (500)
Edit a managed SAN fabric
This operation updates the registration information for a SAN fabric that is managed by PowerVC. This API takes the name of the fabric for which you want to change the attributes in the URI and the attributes that you want to change in the body as input. The response body contains the attributes that are updated by the request.
- Normal Response Code: OK (200)
- Error Response Codes: Bad Request (400), Not Found (404), Server Error (500)
Request parameters
Name | Style | Type | Description |
---|---|---|---|
|
body |
string |
IP address or the host name to connect to the switch. |
|
body |
string |
User ID for connecting to the switch. |
|
body |
string |
Password for connecting to the switch. |
|
body |
string |
Optional (For Cisco switches only): The SSH port used to connect to a Cisco switch. By default, the value is 22. |
|
body |
string |
User-specified name to give to the switch. The value defaults to resolved host short name. |
|
body |
string |
For Cisco switches only: The virtual SAN to be used. |
|
body |
object |
Driver-specific properties for the configuration file. Specify additional configuration options
by using the pattern |
|
body |
Boolean |
Optional value. Whether to auto-accept or add the SSH fingerprint for the system (if the
fingerprint is not yet trusted or is different from the previously trusted fingerprint) or to fail
with a 403 response code so that the SSH fingerprint can be verified. Default value is
|
1: Used for pluggable fabrics
only. 2: Not used for pluggable fabrics. To specify this information,
use |
{"registration": {
"access_ip": "1.2.3.4",
"user_id": "superuser",
"password": "passw0rd",
"fabric_display_name": "My Fabric 1"
}
}
{
"registration": {
"fabric_display_name": "My Fabric 1",
"configuration_properties": { "fc_fabric_user": "admin", "fc_fabric_password": "passw0rd"
} } }
Name | Style | Type | Description |
---|---|---|---|
|
body |
string |
IP address or the host name that is used to connect to the switch. |
|
body |
string |
User ID that is used for connecting to the switch. |
|
body |
string |
Optional (For Cisco switches only): The SSH port used to connect to a Cisco switch. By default, the value is 22. |
|
body |
string |
User-specified name given to the switch. |
|
body |
string |
For Cisco switches only: The virtual SAN to be used. |
|
body |
string |
Internally generated unique name of the registered fabric. |
|
body |
Boolean |
Optional value. Whether to auto-accept or add the SSH fingerprint for the system (if the
fingerprint is not yet trusted or is different from the previously trusted fingerprint) or to fail
with a 403 response code so that the SSH fingerprint can be verified. Default value is
|
1: Used for pluggable fabrics only. 2: Not used for pluggable fabrics. |
{"fabric": "A",
"registration": {
"access_ip": "1.2.3.4",
"user_id": "superuser",
"fabric_display_name": "My Fabric 1"
}
}
{"host": {
"registration": {
"fabric_display_name": "My Fabric 1",
} } }
View all SAN fabrics that are managed
This operation lists the basic information about all of the SAN fabrics that are managed by PowerVC. This API takes no input in the request body and returns the name and display name of each fabric that is managed by PowerVC in the response body.
- Normal Response Code: OK (200)
- Error Response Codes: Server Error (500)
Name | Style | Type | Description |
---|---|---|---|
|
body |
string |
Internally generated unique name of the registered fabric. |
{"fabrics": [
{"fabric_name": "A", "fabric_display_name": "My Fabric 1"},
{"fabric_name": "B", "fabric_display_name": "My Fabric 2"}, ....]
}
View details of a managed fabric
This operation shows detailed information about one of the fabrics that is managed by PowerVC. This API takes the fabric name in the URI as input and contains no request body. The API returns the IP address and credential information of the fabric in the response body.
- Normal Response Code: OK (200)
- Error Response Codes: Not Found (404), Server Error (500)
Name | Style | Type | Description |
---|---|---|---|
|
body |
string |
IP address or the host name that is used to connect to the switch. |
|
body |
string |
User ID that is used for connecting to the switch. |
|
body |
string |
Optional (For Cisco switches only): The SSH port used to connect to a Cisco switch. By default, the value is 22. |
|
body |
string |
Required: The type of SAN fabric. The only supported value is
generic |
|
body |
string |
User-specified name given to the switch. |
|
body |
string |
For Cisco switches only: The virtual SAN to be used. |
|
body |
string |
Internally generated unique name of the registered fabric. |
|
body |
string |
Required: Python Class Name for the Cinder Zone Driver for the fabric. |
|
body |
string |
The date and time that the SAN fabric was registered with PowerVC. |
1: Used for pluggable fabrics only. 2: Not used for pluggable fabrics. |
{"fabric": {
"registration": {
"fabric_name": "A",
"fabric_display_name": "My Fabric 1",
"access_ip": "1.2.3.4",
"user_id": "superuser"
"fabric_type": "brocade"
}
}
}
{"host": {
"registration": {
"fabric_type": "generic", "fabric_display_name": "My Fabric 1",
"zone_driver": "cinder.zonemanager. drivers.brocade.brcd_fc_zone_driver.BrcdFCZoneDriver",
"registered_at": "2013-10-19T16:06:53Z"
} } }
View details of all managed SAN fabrics
This operation shows detailed information about all the fabrics that are managed by PowerVC. This API takes no input in the request body and returns the IP address and credentials information about the fabrics in the response body.
- Normal Response Code: OK (200)
- Error Response Codes: Server Error (500)
Name | Style | Type | Description |
---|---|---|---|
|
body |
string |
IP address or the host name that is used to connect to the switch. |
|
body |
string |
User ID that is used for connecting to the switch. |
|
body |
string |
Optional (For Cisco switches only): The SSH port used to connect to a Cisco switch. By default, the value is 22. |
|
body | string | Required: The type of SAN fabric. The only supported value is
generic |
|
body |
string |
User-specified name given to the switch. |
|
body |
string |
For Cisco switches only: The virtual SAN to be used. |
|
body |
string |
Internally generated unique name of the registered fabric. |
|
body |
string |
The date and time that the SAN fabric was registered with PowerVC. |
|
body |
string |
Required: Python Class Name for the Cinder Zone Driver for the fabric. |
|
body |
string |
Zoning policy types. |
1: Used for pluggable fabrics only. 2: Not used for pluggable fabrics. |
{"fabrics": [
{
"registration": {
"fabric_name": "A",
"fabric_display_name": "My Fabric 1",
"access_ip": "1.2.3.4",
"user_id": "superuser"
"fabric_type": "brocade"
}
{
"registration": {
"fabric_name": "B",...]
}
Example response when viewing details of all managed fabrics (pluggable):
{"host": {
"registration": {
"fabric_type": "generic", "fabric_display_name": "My Fabric 1",
"zone_driver": "cinder.zonemanager. drivers.brocade.brcd_fc_zone_driver.BrcdFCZoneDriver",
"registered_at": "2013-10-19T16:06:53Z"
} } }