NetworkHardware
This represents network hardware
Attributes
- name:string - Name of the hardware
- ename:string - Extended Name of the hardware
Associations
Name | Cardinality | Class | Composition | Owner | Description |
---|---|---|---|---|---|
profile | 1 | PhysicalProfile | true | ||
device | 1 | Device | false | false | |
resources | n | Resource | false | false |
Methods
- addStats() - Add Stats to the Hardware
- create() - Create Hardware
- disable() - Disable Device and its hardware
- enable() - Enable Device to be used.
- factory() - Create Hardware based on properties
Method Details
Action networkhardware addStats
- REST - networkhardware/addStats?stats=json
- bin - networkhardware addStats –stats json
- js - networkhardware.addStats({ stats:json })
Description
Add Stats to the Hardware
Parameters
Name | Type | Required | Description |
---|---|---|---|
stats | json | true | Object Map of the stats |
Action networkhardware create
- REST - networkhardware/create?name=string&capabilities=json
- bin - networkhardware create –name string –capabilities json
- js - networkhardware.create({ name:string,capabilities:json })
Description
Create Hardware
Parameters
Name | Type | Required | Description |
---|---|---|---|
name | string | true | name of the hardware |
capabilities | json | true | capabilities of the hardware |
Action networkhardware disable
- REST - networkhardware/disable?
- bin - networkhardware disable
- js - networkhardware.disable({ })
Description
Disable Device and its hardware
Parameters
No parameters
Action networkhardware enable
- REST - networkhardware/enable?
- bin - networkhardware enable
- js - networkhardware.enable({ })
Description
Enable Device to be used.
Parameters
No parameters
Action networkhardware factory
- REST - networkhardware/factory?name=string&type=string&capabilities=json
- bin - networkhardware factory –name string –type string –capabilities json
- js - networkhardware.factory({ name:string,type:string,capabilities:json })
Description
Create Hardware based on properties
Parameters
Name | Type | Required | Description |
---|---|---|---|
name | string | true | name of the hardware |
type | string | true | type of the hardware |
capabilities | json | true | definition of the hardware |