Skip to main content
A newer release of this product is available.

Retrieve counter tables with schema definitions

Contributors

GET /cluster/counter/tables

Introduced In: 9.11

Returns a collection of counter tables and their schema definitions.

Parameters

Name Type In Required Description

counter_schemas.name

string

query

False

Filter by counter_schemas.name

counter_schemas.denominator.name

string

query

False

Filter by counter_schemas.denominator.name

counter_schemas.unit

string

query

False

Filter by counter_schemas.unit

counter_schemas.type

string

query

False

Filter by counter_schemas.type

counter_schemas.description

string

query

False

Filter by counter_schemas.description

name

string

query

False

Filter by name

description

string

query

False

Filter by description

order_by

array[string]

query

False

Order results by specified fields and optional [asc

desc] direction. Default direction is 'asc' for ascending.

fields

array[string]

query

False

Specify the fields to return.

max_records

integer

query

False

Limit the number of records returned.

return_records

boolean

query

False

The default is true for GET calls. When set to false, only the number of records is returned.

  • Default value: 1

return_timeout

integer

query

False

Response

Status: 200, Ok
Name Type Description

_links

_links

num_records

integer

Number of records

records

array[counter_table]

Example response
{
  "_links": {
    "next": {
      "href": "/api/resourcelink"
    },
    "self": {
      "href": "/api/resourcelink"
    }
  },
  "num_records": 1,
  "records": {
    "_links": {
      "self": {
        "href": "/api/resourcelink"
      }
    },
    "counter_schemas": {
      "type": "average",
      "unit": "per_sec"
    }
  }
}

Error

Status: Default

ONTAP Error Response Codes

Error Code Description

8585368

The system has not completed it's initialization

Name Type Description

error

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

Name Type Description

next

href

self

href

Name Type Description

self

href

counter_denominator

Counter used as the denominator in calculating the resulting value of averages and percentages.

Name Type Description

name

string

Counter name.

counter_schema

Schema definition of a single counter or property.

Name Type Description

denominator

counter_denominator

Counter used as the denominator in calculating the resulting value of averages and percentages.

description

string

Counter or property description.

name

string

Counter or property name.

type

string

Type of counter or property. Properties will always set this field to 'string'.

unit

string

Counter unit.

counter_table

Information for a single counter table.

Name Type Description

_links

_links

counter_schemas

array[counter_schema]

Array of counter schema definitions.

description

string

Description of the table.

name

string

Table name.

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.