|
APIs in Category: dp-throttle |
API version 4.0 |
dp-throttle-create |
This set of API's is used to manage and retrieve throttle schedule values. dp-throttle is to be used by the scheduler in conjunction with dp-schedule to determine the time and throughput of a specific backup. Throttle value can be changed throughout the day/week. Hence, each throttle schedule may contain multiple entries to indicate different time ranges and throughputs. The scheduler will also utilize the information to adjust the throughputs of the running tasks accordingly. |
| dp-throttle-create | [top] |
Create a throttle schedule
Input Name Range Type Description throttle-content throttle-content
Full content of a throttle schedule Output Name Range Type Description throttle-id integer
identifier of the throttle schedule Range: [1..(2^31)-1]
Errno Description EDATABASEERROR ETHROTTLEINVALIDINPUT ETHROTTLEDUPLICATE
| dp-throttle-dependency | [top] |
Return a list of DP policies using the specified DP throttle.
Input Name Range Type Description throttle-name-or-id obj-name-or-id
Name or identifier of a DP throttle. Output Name Range Type Description throttle-assignees throttle-assignee[]
List of other DP polices using the specified DP throttle. The list excludes DP policies that the caller has no permissions to read. throttle-in-use boolean
True if the throttle is in use by any DP policies.
Errno Description ETHROTTLENOTFOUND EACCESSDENIED EDATABASEERROR
| dp-throttle-destroy | [top] |
Delete a throttle item. Sample throttle schedules cannot be destroyed.
Input Name Range Type Description throttle-id integer
Identifier of the throttle item. Range: [1..(2^31)-1]
Errno Description ETHROTTLEINVALIDINPUT ETHROTTLENOTFOUND ETHROTTLENOTMODIFIABLE EACCESSDENIED EDATABASEERROR ETHROTTLEINUSE
| dp-throttle-item-add | [top] |
Add a new throttle item to the throttle schedule
Input Name Range Type Description throttle-item-content throttle-item-info
Content of a throttle item throttle-name-or-id string
Name or identifier of the throttle schedule
Errno Description ETHROTTLEINVALIDINPUT EOBJECTAMBIGUOUS ETHROTTLENOTFOUND ETHROTTLENOTMODIFIABLE EACCESSDENIED EDATABASEERROR
| dp-throttle-item-delete | [top] |
Delete a throttle item from a throttle schedule
Input Name Range Type Description throttle-item-id integer
Identifier of the throttle item. Range: [1..(2^31)-1] throttle-name-or-id string
Name or identifier of the throttle schedule
Errno Description ETHROTTLEINVALIDINPUT EOBJECTAMBIGUOUS ETHROTTLENOTFOUND ETHROTTLENOTMODIFIABLE EACCESSDENIED EDATABASEERROR
| dp-throttle-list-info-iter-end | [top] |
Tell the DFM station that the temporary store associated with the specified tag is no longer necessary
Input Name Range Type Description tag string
An opaque handle used by the DFM station to identify a temporary store.
Errno Description EINVALIDTAG ETHROTTLEINVALIDINPUT
| dp-throttle-list-info-iter-next | [top] |
Iterate over the list of throttle items stored in the temporary store. The DFM internally maintains a cursor pointing to the last record returned. Subsequent calls to this API will return the records after the cursor up to the specified "maximum" or number of actual records left.
Input Name Range Type Description maximum integer
Maximum number of schedules to retrieve tag string
An opaque handle used by the DFM station to identify a temporary store. Output Name Range Type Description records integer
The number of records actually returned. Range: [0..2^31-1]. throttle-list throttle-content[]
List of detailed throttle items
Errno Description EINVALIDTAG ETHROTTLEINVALIDINPUT
| dp-throttle-list-info-iter-start | [top] |
The dp-throttle-list-info-iter-* set of APIs are used to retrieve a list of throttle items
Input Name Range Type Description throttle-name-or-id string
optional
Name or ID of the throttle schedule. If specified, only this throttle schedule is listed. Output Name Range Type Description records integer
Number of items saved for future retrieval tag string
An opaque handle used by the DFM station to identify a temporary store.
Errno Description ETHROTTLEINVALIDINPUT EOBJECTAMBIGUOUS ETHROTTLENOTFOUND EACCESSDENIED EDATABASEERROR
| dp-throttle-modify | [top] |
Update a throttle item. When the zapi is called, all details within the throttle schedule will be removed and replace by the new details specified in throttle-content. Sample throttle schedules cannot be modified.
Input Name Range Type Description throttle-content throttle-content
Content of the throttle schedule to be modified
Errno Description ETHROTTLEINVALIDINPUT ETHROTTLENOTFOUND EACCESSDENIED ETHROTTLEDUPLICATE ETHROTTLENOTMODIFIABLE EDATABASEERROR
| dp-throttle-rename | [top] |
Rename a throttle schedule. Sample throttle schedules cannot be renamed.
Input Name Range Type Description new-throttle-name string
A new unique name of the throttle schedule throttle-name-or-id string
Name or ID of the throttle schedule
Errno Description ETHROTTLEINVALIDINPUT EOBJECTAMBIGUOUS ETHROTTLENOTFOUND EACCESSDENIED ETHROTTLEDUPLICATE ETHROTTLENOTMODIFIABLE EDATABASEERROR
| Element definition: obj-name-or-id | [top] |
Name or internal ID of a DFM object. This typedef is an alias for the builtin ZAPI type string. An obj-name-or-id must contain between 1 and 64 characters, and must conform to one of the following formats: Elements of type obj-name-or-id are used only as inputs to ZAPIs. The value must match either the name or internal ID of an existing DFM object. The ZAPI must specify the object's DFM object type (e.g. dataset, host, DP policy, etc.). Some ZAPIs allow the object to be one of several different types.
- It must have the format of an obj-name, or
- It must be the decimal numeric string form of a positive integer whose value is in the range [1..2^31 - 1].
If the format of an obj-name-or-id input element does not conform, or the value does not match the name or ID of an existing object, then generally the ZAPI documents that it fails with error code EOBJECTNOTFOUND. A ZAPI may return more specific error codes. In such cases, the ZAPI specification must document its behavior.
If a ZAPI can accept a null value (e.g. reference to no object at all) for such an element, then the element is declared optional, and the absence of the input element represents a null value.
[none]
| Element definition: throttle-assignee | [top] |
Description of a DFM object using the DP throttle.
Name Range Type Description assignee-full-name obj-full-name
Full name of a DFM object. assignee-id obj-id
Identification number of a DFM object.
| Element definition: throttle-content | [top] |
Attributes of a throttle schedule
Name Range Type Description is-modifiable boolean
optional
If false, this throttle is one of the sample throttle that is created at installation time, therefore it may not be modified, renamed or destroyed. If true, it is not one of the sample throttles, therefore it may be modified, renamed or destroyed. is-modifiable always appears in the output. It is not possible to use it as input. throttle-description string
optional
Description of the throttle. It may contain from 0 to 255 characters. The description always appears in the output. If the description is omitted, then the default value is the empty string "". throttle-id integer
optional
ID of the throttle schedule. Element is ignored for throttle-create. Range: [1..(2^31)-1] throttle-item-list throttle-item-info[]
List of individual throttle items to be added throttle-name string
Name of the throttle schedule
| Element definition: throttle-item-info | [top] |
The attributes of a throttle item
Name Range Type Description day-list day-info[]
optional
List of days applied to the throttle item. If none is supplied, it will be applied to every day. end-hour integer
End hour of the throttle item. Range: [0..23] end-minute integer
End minute of the throttle item. Range: [0..59] item-id integer
optional
Identifier for the throttle item. Ignored in input by all zapi calls. Will be present in output. Range: [1..(2^31)-1] start-hour integer
Start hour of the throttle item. Range: [0..23] start-minute integer
Start minute of the throttle item. Range: [0..59] throughput integer
Throttle throughput in KBytes. Range: [0..(2^63)-1]
| Element definition: day-info | [top] |
The attributes of a day list
Name Range Type Description day integer
day of the week. Range: [0..6]. (Sun = 0)
| Element definition: obj-full-name | [top] |
Full name of a DFM object. This typedef is an alias for the builtin ZAPI type string. An object full name conforms to all the rules of an obj-name, except that the full name may be up to 255 characters long. DFM creates full names by concatenating an object name with any parent object names, so as to create a unique name for an object. The format of full names is as follows:
- Host full names are the either the fully-qualified domain name or the IP address of the host.
- Aggregate full names are the host name and the aggregate name, separated by a colon, e.g. hostname:aggr0.
- Volume full names are the host name and the volume name, separated by ":/", e.g. hostname:/volume. Note this does not include "/vol". Volume and aggregate full names are distinguished by the presence of a forward slash after the colon.
- Qtree full names are the containing volume full name and the qtree name, separated by a slash, e.g. hostname:/volume/qtree. The data not contained by any qtree may be represented by "-", e.g. hostname:/volume/-.
- Lun Path full names are either a volume or qtree full name and the LUN path, separated by a slash, e.g. hostname:/volume/LUN or hostname:/volume/qtree/LUN.
- Network full names are a network address block in CIDR format, e.g. 1.2.3.0/8.
- OSSV Directory full names are the OSSV host name and the OSSV path, separated by a colon, e.g. host-lnx:/usr/local or host-w2k:c:/temp
- Include any others here...
- Initiator Group full names are host name and the initiator group name, separated by a colon, e.g. hostname:igroup.
For any DFM object not listed above, the obj-name and obj-full-name are identical.
[none]
| Element definition: obj-id | [top] |
Identification number (ID) for a DFM object. This typedef is an alias for the builtin ZAPI type integer. Object IDs are unsigned integers in the range [1..2^31 - 1]. In some contexts, an object ID is also allowed to be 0, which is interpreted as a null value, e.g., a reference to no object at all. The ID for a DFM object is always assigned by the system; the user is never allowed to assign an ID to an object. Therefore, an input element of type obj-id is always used to refer to an existing object by its ID. The ZAPI must specify the object's DFM object type (e.g. dataset, host, DP policy, etc.). Some ZAPIs allow the object to be one of several different types.
If the value of an obj-id input element does not match the ID of any existing DFM object of the specified type or types, then typically the ZAPI fails with error code EOBJECTNOTFOUND. A ZAPI may deviate from this general rule, for example, it may return a more specific error code. In either case, the ZAPI specification must document its behavior.
[none]