Configuring an HTTP Operation

Configuring the Frequency in Seconds

Configuring the Frequency in Seconds
POST http://<mgmt0_IP>/api/mo/sys/sla/inst/sender.json
{
  "slaSender": {
    "children": [
      {
        "slaProbe": {
          "attributes": {
            "id": "1"
          },
          "children": [
            {
              "slaHttp": {
                "attributes": {
                  "cache": "yes",
                  "frequency": "597709",
                  "httpmethod": "get",
                  "httpurl": "http://www.cisco.com"
}}}]}}]}}
{
    imdata:[]
}
<System>
  <sla-items>
    <inst-items>
      <sender-items>
        <operation-items>
          <Probe-list>
            <id>1</id>
            <http-items>
              <cache>true</cache>
              <frequency>597709</frequency>
              <httpmethod>get</httpmethod>
              <httpurl>http://www.cisco.com</httpurl>
            </http-items>
          </Probe-list>
        </operation-items>
      </sender-items>
    </inst-items>
  </sla-items>
</System>

Note: This example was added in Release 9.3(1).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

ip sla 1
 http get http://www.cisco.com
  frequency 597709


Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
slaHttp sys/sla/inst/sender/operation-1/http
slaProbe sys/sla/inst/sender/operation-1


slaHttp Properties

The following table contains information about the slaHttp properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
cachescalar:Bool
The config to enable/disable the download of cached HTTP page.SELECTION: true or false
DEFAULT: true
frequencysla:Frequency
(scalar:Uint32)
Frequency of an operation - The interval at which the configured destination is tracked by the probe. Frequency in seconds(default value is 60). Minimum frequency value for an IP SLAs HTTP probe operation is 60 seconds but 1 second for other probes.
RANGE: [0 , 604800]
DEFAULT: 60
httpmethodsla:HttpMethodVal
(scalar:Enum8)
HTTP method - Currently only the get method is supported.For GET requests,IP SLAs will format the request based on the specified http URL.SELECTION:
1 - get
DEFAULT: get
httpurlstring:Basic
URL string, expecting the input as http:[[//location[:port\]\]/directory\]/filenameA sequence of characters


slaProbe Properties

The following table contains information about the slaProbe properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
idscalar:Uint32
Operation index which is unique for each probe, all the probe related configs and the statistics are displayed using this index.RANGE: [0, 4294967295]


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Configuring the Default Frequency

Configuring the Default Frequency
POST http://<mgmt0_IP>/api/mo/sys/sla/inst/sender.json
{
  "slaSender": {
    "children": [
      {
        "slaProbe": {
          "attributes": {
            "id": "1"
          },
          "children": [
            {
              "slaHttp": {
                "attributes": {
                  "cache": "yes",
                  "frequency": "60",
                  "httpmethod": "get",
                  "httpurl": "http://www.cisco.com"
}}}]}}]}}
{
    imdata:[]
}
<System>
  <sla-items>
    <inst-items>
      <sender-items>
        <operation-items>
          <Probe-list>
            <id>1</id>
            <http-items>
              <cache>true</cache>
              <frequency>60</frequency>
              <httpmethod>get</httpmethod>
              <httpurl>http://www.cisco.com</httpurl>
            </http-items>
          </Probe-list>
        </operation-items>
      </sender-items>
    </inst-items>
  </sla-items>
</System>

Note: This example was added in Release 9.3(1).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

ip sla 1
 http get http://www.cisco.com
  default frequency


Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
slaHttp sys/sla/inst/sender/operation-1/http
slaProbe sys/sla/inst/sender/operation-1


slaHttp Properties

The following table contains information about the slaHttp properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
cachescalar:Bool
The config to enable/disable the download of cached HTTP page.SELECTION: true or false
DEFAULT: true
frequencysla:Frequency
(scalar:Uint32)
Frequency of an operation - The interval at which the configured destination is tracked by the probe. Frequency in seconds(default value is 60). Minimum frequency value for an IP SLAs HTTP probe operation is 60 seconds but 1 second for other probes.
RANGE: [0 , 604800]
DEFAULT: 60
httpmethodsla:HttpMethodVal
(scalar:Enum8)
HTTP method - Currently only the get method is supported.For GET requests,IP SLAs will format the request based on the specified http URL.SELECTION:
1 - get
DEFAULT: get
httpurlstring:Basic
URL string, expecting the input as http:[[//location[:port\]\]/directory\]/filenameA sequence of characters


slaProbe Properties

The following table contains information about the slaProbe properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
idscalar:Uint32
Operation index which is unique for each probe, all the probe related configs and the statistics are displayed using this index.RANGE: [0, 4294967295]


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Deleting the Frequency in Seconds

Deleting the Frequency in Seconds
POST http://<mgmt0_IP>/api/mo/sys/sla/inst/sender.json
{
  "slaSender": {
    "children": [
      {
        "slaProbe": {
          "attributes": {
            "id": "1"
          },
          "children": [
            {
              "slaHttp": {
                "attributes": {
                  "cache": "yes",
                  "frequency": "60",
                  "httpmethod": "get",
                  "httpurl": "http://www.cisco.com"
}}}]}}]}}
{
    imdata:[]
}
<System>
  <sla-items>
    <inst-items>
      <sender-items>
        <operation-items>
          <Probe-list>
            <id>1</id>
            <http-items>
              <cache>true</cache>
              <frequency>60</frequency>
              <httpmethod>get</httpmethod>
              <httpurl>http://www.cisco.com</httpurl>
            </http-items>
          </Probe-list>
        </operation-items>
      </sender-items>
    </inst-items>
  </sla-items>
</System>

Note: This example was added in Release 9.3(1).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

ip sla 1
 http get http://www.cisco.com
  no frequency 597709


Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
slaHttp sys/sla/inst/sender/operation-1/http
slaProbe sys/sla/inst/sender/operation-1


slaHttp Properties

The following table contains information about the slaHttp properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
cachescalar:Bool
The config to enable/disable the download of cached HTTP page.SELECTION: true or false
DEFAULT: true
frequencysla:Frequency
(scalar:Uint32)
Frequency of an operation - The interval at which the configured destination is tracked by the probe. Frequency in seconds(default value is 60). Minimum frequency value for an IP SLAs HTTP probe operation is 60 seconds but 1 second for other probes.
RANGE: [0 , 604800]
DEFAULT: 60
httpmethodsla:HttpMethodVal
(scalar:Enum8)
HTTP method - Currently only the get method is supported.For GET requests,IP SLAs will format the request based on the specified http URL.SELECTION:
1 - get
DEFAULT: get
httpurlstring:Basic
URL string, expecting the input as http:[[//location[:port\]\]/directory\]/filenameA sequence of characters


slaProbe Properties

The following table contains information about the slaProbe properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
idscalar:Uint32
Operation index which is unique for each probe, all the probe related configs and the statistics are displayed using this index.RANGE: [0, 4294967295]


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Configuring the Owner of Entry

Configuring the Owner of Entry
POST http://<mgmt0_IP>/api/mo/sys/sla/inst/sender.json
{
  "slaSender": {
    "children": [
      {
        "slaProbe": {
          "attributes": {
            "id": "1"
          },
          "children": [
            {
              "slaHttp": {
                "attributes": {
                  "cache": "yes",
                  "httpmethod": "get",
                  "httpurl": "http://www.cisco.com",
                  "owner": "SampleString_123"
}}}]}}]}}
{
    imdata:[]
}
<System>
  <sla-items>
    <inst-items>
      <sender-items>
        <operation-items>
          <Probe-list>
            <id>1</id>
            <http-items>
              <cache>true</cache>
              <httpmethod>get</httpmethod>
              <httpurl>http://www.cisco.com</httpurl>
              <owner>SampleString_123</owner>
            </http-items>
          </Probe-list>
        </operation-items>
      </sender-items>
    </inst-items>
  </sla-items>
</System>

Note: This example was added in Release 9.3(1).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

ip sla 1
 http get http://www.cisco.com
  owner SampleString_123


Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
slaHttp sys/sla/inst/sender/operation-1/http
slaProbe sys/sla/inst/sender/operation-1


slaHttp Properties

The following table contains information about the slaHttp properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
cachescalar:Bool
The config to enable/disable the download of cached HTTP page.SELECTION: true or false
DEFAULT: true
httpmethodsla:HttpMethodVal
(scalar:Enum8)
HTTP method - Currently only the get method is supported.For GET requests,IP SLAs will format the request based on the specified http URL.SELECTION:
1 - get
DEFAULT: get
httpurlstring:Basic
URL string, expecting the input as http:[[//location[:port\]\]/directory\]/filenameA sequence of characters
ownerstring:Basic
Owner string of the probe(Max size 127)A sequence of characters


slaProbe Properties

The following table contains information about the slaProbe properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
idscalar:Uint32
Operation index which is unique for each probe, all the probe related configs and the statistics are displayed using this index.RANGE: [0, 4294967295]


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Configuring the Default Owner

Configuring the Default Owner
POST http://<mgmt0_IP>/api/mo/sys/sla/inst/sender.json
{
  "slaSender": {
    "children": [
      {
        "slaProbe": {
          "attributes": {
            "id": "1"
          },
          "children": [
            {
              "slaHttp": {
                "attributes": {
                  "cache": "yes",
                  "httpmethod": "get",
                  "httpurl": "http://www.cisco.com",
                  "owner": ""
}}}]}}]}}
{
    imdata:[]
}
<System>
  <sla-items>
    <inst-items>
      <sender-items>
        <operation-items>
          <Probe-list>
            <id>1</id>
            <http-items>
              <cache>true</cache>
              <httpmethod>get</httpmethod>
              <httpurl>http://www.cisco.com</httpurl>
              <owner></owner>
            </http-items>
          </Probe-list>
        </operation-items>
      </sender-items>
    </inst-items>
  </sla-items>
</System>

Note: This example was added in Release 9.3(1).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

ip sla 1
 http get http://www.cisco.com
  default owner


Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
slaHttp sys/sla/inst/sender/operation-1/http
slaProbe sys/sla/inst/sender/operation-1


slaHttp Properties

The following table contains information about the slaHttp properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
cachescalar:Bool
The config to enable/disable the download of cached HTTP page.SELECTION: true or false
DEFAULT: true
httpmethodsla:HttpMethodVal
(scalar:Enum8)
HTTP method - Currently only the get method is supported.For GET requests,IP SLAs will format the request based on the specified http URL.SELECTION:
1 - get
DEFAULT: get
httpurlstring:Basic
URL string, expecting the input as http:[[//location[:port\]\]/directory\]/filenameA sequence of characters
ownerstring:Basic
Owner string of the probe(Max size 127)A sequence of characters


slaProbe Properties

The following table contains information about the slaProbe properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
idscalar:Uint32
Operation index which is unique for each probe, all the probe related configs and the statistics are displayed using this index.RANGE: [0, 4294967295]


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Deleting the Owner of Entry

Deleting the Owner of Entry
POST http://<mgmt0_IP>/api/mo/sys/sla/inst/sender.json
{
  "slaSender": {
    "children": [
      {
        "slaProbe": {
          "attributes": {
            "id": "1"
          },
          "children": [
            {
              "slaHttp": {
                "attributes": {
                  "cache": "yes",
                  "httpmethod": "get",
                  "httpurl": "http://www.cisco.com",
                  "owner": ""
}}}]}}]}}
{
    imdata:[]
}
<System>
  <sla-items>
    <inst-items>
      <sender-items>
        <operation-items>
          <Probe-list>
            <id>1</id>
            <http-items>
              <cache>true</cache>
              <httpmethod>get</httpmethod>
              <httpurl>http://www.cisco.com</httpurl>
              <owner></owner>
            </http-items>
          </Probe-list>
        </operation-items>
      </sender-items>
    </inst-items>
  </sla-items>
</System>

Note: This example was added in Release 9.3(1).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

ip sla 1
 http get http://www.cisco.com
  no owner SampleString_123


Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
slaHttp sys/sla/inst/sender/operation-1/http
slaProbe sys/sla/inst/sender/operation-1


slaHttp Properties

The following table contains information about the slaHttp properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
cachescalar:Bool
The config to enable/disable the download of cached HTTP page.SELECTION: true or false
DEFAULT: true
httpmethodsla:HttpMethodVal
(scalar:Enum8)
HTTP method - Currently only the get method is supported.For GET requests,IP SLAs will format the request based on the specified http URL.SELECTION:
1 - get
DEFAULT: get
httpurlstring:Basic
URL string, expecting the input as http:[[//location[:port\]\]/directory\]/filenameA sequence of characters
ownerstring:Basic
Owner string of the probe(Max size 127)A sequence of characters


slaProbe Properties

The following table contains information about the slaProbe properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
idscalar:Uint32
Operation index which is unique for each probe, all the probe related configs and the statistics are displayed using this index.RANGE: [0, 4294967295]


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Configuring the Default User-Defined Tag

Configuring the Default User-Defined Tag
POST http://<mgmt0_IP>/api/mo/sys/sla/inst/sender.json
{
  "slaSender": {
    "children": [
      {
        "slaProbe": {
          "attributes": {
            "id": "1"
          },
          "children": [
            {
              "slaHttp": {
                "attributes": {
                  "cache": "yes",
                  "httpmethod": "get",
                  "httpurl": "http://www.cisco.com",
                  "tag": ""
}}}]}}]}}
{
    imdata:[]
}
<System>
  <sla-items>
    <inst-items>
      <sender-items>
        <operation-items>
          <Probe-list>
            <id>1</id>
            <http-items>
              <cache>true</cache>
              <httpmethod>get</httpmethod>
              <httpurl>http://www.cisco.com</httpurl>
              <tag></tag>
            </http-items>
          </Probe-list>
        </operation-items>
      </sender-items>
    </inst-items>
  </sla-items>
</System>

Note: This example was added in Release 9.3(1).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

ip sla 1
 http get http://www.cisco.com
  default tag


Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
slaHttp sys/sla/inst/sender/operation-1/http
slaProbe sys/sla/inst/sender/operation-1


slaHttp Properties

The following table contains information about the slaHttp properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
cachescalar:Bool
The config to enable/disable the download of cached HTTP page.SELECTION: true or false
DEFAULT: true
httpmethodsla:HttpMethodVal
(scalar:Enum8)
HTTP method - Currently only the get method is supported.For GET requests,IP SLAs will format the request based on the specified http URL.SELECTION:
1 - get
DEFAULT: get
httpurlstring:Basic
URL string, expecting the input as http:[[//location[:port\]\]/directory\]/filenameA sequence of characters
tagstring:Basic
User defined tag string (Max Size 127)A sequence of characters


slaProbe Properties

The following table contains information about the slaProbe properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
idscalar:Uint32
Operation index which is unique for each probe, all the probe related configs and the statistics are displayed using this index.RANGE: [0, 4294967295]


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Configuring a User-Defined Tag

Configuring a User-Defined Tag
POST http://<mgmt0_IP>/api/mo/sys/sla/inst/sender.json
{
  "slaSender": {
    "children": [
      {
        "slaProbe": {
          "attributes": {
            "id": "1"
          },
          "children": [
            {
              "slaHttp": {
                "attributes": {
                  "cache": "yes",
                  "httpmethod": "get",
                  "httpurl": "http://www.cisco.com",
                  "tag": "SampleString_123"
}}}]}}]}}
{
    imdata:[]
}
<System>
  <sla-items>
    <inst-items>
      <sender-items>
        <operation-items>
          <Probe-list>
            <id>1</id>
            <http-items>
              <cache>true</cache>
              <httpmethod>get</httpmethod>
              <httpurl>http://www.cisco.com</httpurl>
              <tag>SampleString_123</tag>
            </http-items>
          </Probe-list>
        </operation-items>
      </sender-items>
    </inst-items>
  </sla-items>
</System>

Note: This example was added in Release 9.3(1).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

ip sla 1
 http get http://www.cisco.com
  tag SampleString_123


Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
slaHttp sys/sla/inst/sender/operation-1/http
slaProbe sys/sla/inst/sender/operation-1


slaHttp Properties

The following table contains information about the slaHttp properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
cachescalar:Bool
The config to enable/disable the download of cached HTTP page.SELECTION: true or false
DEFAULT: true
httpmethodsla:HttpMethodVal
(scalar:Enum8)
HTTP method - Currently only the get method is supported.For GET requests,IP SLAs will format the request based on the specified http URL.SELECTION:
1 - get
DEFAULT: get
httpurlstring:Basic
URL string, expecting the input as http:[[//location[:port\]\]/directory\]/filenameA sequence of characters
tagstring:Basic
User defined tag string (Max Size 127)A sequence of characters


slaProbe Properties

The following table contains information about the slaProbe properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
idscalar:Uint32
Operation index which is unique for each probe, all the probe related configs and the statistics are displayed using this index.RANGE: [0, 4294967295]


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Deleting a User-Defined Tag

Deleting a User-Defined Tag
POST http://<mgmt0_IP>/api/mo/sys/sla/inst/sender.json
{
  "slaSender": {
    "children": [
      {
        "slaProbe": {
          "attributes": {
            "id": "1"
          },
          "children": [
            {
              "slaHttp": {
                "attributes": {
                  "cache": "yes",
                  "httpmethod": "get",
                  "httpurl": "http://www.cisco.com",
                  "tag": ""
}}}]}}]}}
{
    imdata:[]
}
<System>
  <sla-items>
    <inst-items>
      <sender-items>
        <operation-items>
          <Probe-list>
            <id>1</id>
            <http-items>
              <cache>true</cache>
              <httpmethod>get</httpmethod>
              <httpurl>http://www.cisco.com</httpurl>
              <tag></tag>
            </http-items>
          </Probe-list>
        </operation-items>
      </sender-items>
    </inst-items>
  </sla-items>
</System>

Note: This example was added in Release 9.3(1).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

ip sla 1
 http get http://www.cisco.com
  no tag SampleString_123


Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
slaHttp sys/sla/inst/sender/operation-1/http
slaProbe sys/sla/inst/sender/operation-1


slaHttp Properties

The following table contains information about the slaHttp properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
cachescalar:Bool
The config to enable/disable the download of cached HTTP page.SELECTION: true or false
DEFAULT: true
httpmethodsla:HttpMethodVal
(scalar:Enum8)
HTTP method - Currently only the get method is supported.For GET requests,IP SLAs will format the request based on the specified http URL.SELECTION:
1 - get
DEFAULT: get
httpurlstring:Basic
URL string, expecting the input as http:[[//location[:port\]\]/directory\]/filenameA sequence of characters
tagstring:Basic
User defined tag string (Max Size 127)A sequence of characters


slaProbe Properties

The following table contains information about the slaProbe properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
idscalar:Uint32
Operation index which is unique for each probe, all the probe related configs and the statistics are displayed using this index.RANGE: [0, 4294967295]


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Configuring the Operation Threshold

Configuring the Operation Threshold
POST http://<mgmt0_IP>/api/mo/sys/sla/inst/sender.json
{
  "slaSender": {
    "children": [
      {
        "slaProbe": {
          "attributes": {
            "id": "1"
          },
          "children": [
            {
              "slaHttp": {
                "attributes": {
                  "cache": "yes",
                  "httpmethod": "get",
                  "httpurl": "http://www.cisco.com",
                  "threshold": "10734"
}}}]}}]}}
{
    imdata:[]
}
<System>
  <sla-items>
    <inst-items>
      <sender-items>
        <operation-items>
          <Probe-list>
            <id>1</id>
            <http-items>
              <cache>true</cache>
              <httpmethod>get</httpmethod>
              <httpurl>http://www.cisco.com</httpurl>
              <threshold>10734</threshold>
            </http-items>
          </Probe-list>
        </operation-items>
      </sender-items>
    </inst-items>
  </sla-items>
</System>

Note: This example was added in Release 9.3(1).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

ip sla 1
 http get http://www.cisco.com
  threshold 10734


Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
slaHttp sys/sla/inst/sender/operation-1/http
slaProbe sys/sla/inst/sender/operation-1


slaHttp Properties

The following table contains information about the slaHttp properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
cachescalar:Bool
The config to enable/disable the download of cached HTTP page.SELECTION: true or false
DEFAULT: true
httpmethodsla:HttpMethodVal
(scalar:Enum8)
HTTP method - Currently only the get method is supported.For GET requests,IP SLAs will format the request based on the specified http URL.SELECTION:
1 - get
DEFAULT: get
httpurlstring:Basic
URL string, expecting the input as http:[[//location[:port\]\]/directory\]/filenameA sequence of characters
thresholdsla:Threshold
(scalar:Uint32)
Operation threshold - this is an upper limit for the observed RTT for the probe. RTT value of a probe exceeding the configured threshold will be marked with Overthreshold return code.
RANGE: [1 , 60000]
DEFAULT: 5000


slaProbe Properties

The following table contains information about the slaProbe properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
idscalar:Uint32
Operation index which is unique for each probe, all the probe related configs and the statistics are displayed using this index.RANGE: [0, 4294967295]


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Configuring the Default Threshold

Configuring the Default Threshold
POST http://<mgmt0_IP>/api/mo/sys/sla/inst/sender.json
{
  "slaSender": {
    "children": [
      {
        "slaProbe": {
          "attributes": {
            "id": "1"
          },
          "children": [
            {
              "slaHttp": {
                "attributes": {
                  "cache": "yes",
                  "httpmethod": "get",
                  "httpurl": "http://www.cisco.com",
                  "threshold": "5000"
}}}]}}]}}
{
    imdata:[]
}
<System>
  <sla-items>
    <inst-items>
      <sender-items>
        <operation-items>
          <Probe-list>
            <id>1</id>
            <http-items>
              <cache>true</cache>
              <httpmethod>get</httpmethod>
              <httpurl>http://www.cisco.com</httpurl>
              <threshold>5000</threshold>
            </http-items>
          </Probe-list>
        </operation-items>
      </sender-items>
    </inst-items>
  </sla-items>
</System>

Note: This example was added in Release 9.3(1).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

ip sla 1
 http get http://www.cisco.com
  default threshold


Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
slaHttp sys/sla/inst/sender/operation-1/http
slaProbe sys/sla/inst/sender/operation-1


slaHttp Properties

The following table contains information about the slaHttp properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
cachescalar:Bool
The config to enable/disable the download of cached HTTP page.SELECTION: true or false
DEFAULT: true
httpmethodsla:HttpMethodVal
(scalar:Enum8)
HTTP method - Currently only the get method is supported.For GET requests,IP SLAs will format the request based on the specified http URL.SELECTION:
1 - get
DEFAULT: get
httpurlstring:Basic
URL string, expecting the input as http:[[//location[:port\]\]/directory\]/filenameA sequence of characters
thresholdsla:Threshold
(scalar:Uint32)
Operation threshold - this is an upper limit for the observed RTT for the probe. RTT value of a probe exceeding the configured threshold will be marked with Overthreshold return code.
RANGE: [1 , 60000]
DEFAULT: 5000


slaProbe Properties

The following table contains information about the slaProbe properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
idscalar:Uint32
Operation index which is unique for each probe, all the probe related configs and the statistics are displayed using this index.RANGE: [0, 4294967295]


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Deleting the Operation Threshold

Deleting the Operation Threshold
POST http://<mgmt0_IP>/api/mo/sys/sla/inst/sender.json
{
  "slaSender": {
    "children": [
      {
        "slaProbe": {
          "attributes": {
            "id": "1"
          },
          "children": [
            {
              "slaHttp": {
                "attributes": {
                  "cache": "yes",
                  "httpmethod": "get",
                  "httpurl": "http://www.cisco.com",
                  "threshold": "5000"
}}}]}}]}}
{
    imdata:[]
}
<System>
  <sla-items>
    <inst-items>
      <sender-items>
        <operation-items>
          <Probe-list>
            <id>1</id>
            <http-items>
              <cache>true</cache>
              <httpmethod>get</httpmethod>
              <httpurl>http://www.cisco.com</httpurl>
              <threshold>5000</threshold>
            </http-items>
          </Probe-list>
        </operation-items>
      </sender-items>
    </inst-items>
  </sla-items>
</System>

Note: This example was added in Release 9.3(1).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

ip sla 1
 http get http://www.cisco.com
  no threshold 10734


Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
slaHttp sys/sla/inst/sender/operation-1/http
slaProbe sys/sla/inst/sender/operation-1


slaHttp Properties

The following table contains information about the slaHttp properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
cachescalar:Bool
The config to enable/disable the download of cached HTTP page.SELECTION: true or false
DEFAULT: true
httpmethodsla:HttpMethodVal
(scalar:Enum8)
HTTP method - Currently only the get method is supported.For GET requests,IP SLAs will format the request based on the specified http URL.SELECTION:
1 - get
DEFAULT: get
httpurlstring:Basic
URL string, expecting the input as http:[[//location[:port\]\]/directory\]/filenameA sequence of characters
thresholdsla:Threshold
(scalar:Uint32)
Operation threshold - this is an upper limit for the observed RTT for the probe. RTT value of a probe exceeding the configured threshold will be marked with Overthreshold return code.
RANGE: [1 , 60000]
DEFAULT: 5000


slaProbe Properties

The following table contains information about the slaProbe properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
idscalar:Uint32
Operation index which is unique for each probe, all the probe related configs and the statistics are displayed using this index.RANGE: [0, 4294967295]


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Configuring the Type of Service

Configuring the Type of Service
POST http://<mgmt0_IP>/api/mo/sys/sla/inst/sender.json
{
  "slaSender": {
    "children": [
      {
        "slaProbe": {
          "attributes": {
            "id": "1"
          },
          "children": [
            {
              "slaHttp": {
                "attributes": {
                  "cache": "yes",
                  "httpmethod": "get",
                  "httpurl": "http://www.cisco.com",
                  "ipTos": "130"
}}}]}}]}}
{
    imdata:[]
}
<System>
  <sla-items>
    <inst-items>
      <sender-items>
        <operation-items>
          <Probe-list>
            <id>1</id>
            <http-items>
              <cache>true</cache>
              <httpmethod>get</httpmethod>
              <httpurl>http://www.cisco.com</httpurl>
              <ipTos>130</ipTos>
            </http-items>
          </Probe-list>
        </operation-items>
      </sender-items>
    </inst-items>
  </sla-items>
</System>

Note: This example was added in Release 9.3(1).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

ip sla 1
 http get http://www.cisco.com
  tos 130


Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
slaHttp sys/sla/inst/sender/operation-1/http
slaProbe sys/sla/inst/sender/operation-1


slaHttp Properties

The following table contains information about the slaHttp properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
cachescalar:Bool
The config to enable/disable the download of cached HTTP page.SELECTION: true or false
DEFAULT: true
httpmethodsla:HttpMethodVal
(scalar:Enum8)
HTTP method - Currently only the get method is supported.For GET requests,IP SLAs will format the request based on the specified http URL.SELECTION:
1 - get
DEFAULT: get
httpurlstring:Basic
URL string, expecting the input as http:[[//location[:port\]\]/directory\]/filenameA sequence of characters
ipTosscalar:Uint32
TOS if the probe is tracking IPv4 destination and Traffic Class if the probe is tracking IPv6 destination.RANGE: [0, 4294967295]


slaProbe Properties

The following table contains information about the slaProbe properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
idscalar:Uint32
Operation index which is unique for each probe, all the probe related configs and the statistics are displayed using this index.RANGE: [0, 4294967295]


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Configuring the Default Type of Service

Configuring the Default Type of Service
POST http://<mgmt0_IP>/api/mo/sys/sla/inst/sender.json
{
  "slaSender": {
    "children": [
      {
        "slaProbe": {
          "attributes": {
            "id": "1"
          },
          "children": [
            {
              "slaHttp": {
                "attributes": {
                  "cache": "yes",
                  "httpmethod": "get",
                  "httpurl": "http://www.cisco.com",
                  "ipTos": "0"
}}}]}}]}}
{
    imdata:[]
}
<System>
  <sla-items>
    <inst-items>
      <sender-items>
        <operation-items>
          <Probe-list>
            <id>1</id>
            <http-items>
              <cache>true</cache>
              <httpmethod>get</httpmethod>
              <httpurl>http://www.cisco.com</httpurl>
              <ipTos>0</ipTos>
            </http-items>
          </Probe-list>
        </operation-items>
      </sender-items>
    </inst-items>
  </sla-items>
</System>

Note: This example was added in Release 9.3(1).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

ip sla 1
 http get http://www.cisco.com
  default tos


Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
slaHttp sys/sla/inst/sender/operation-1/http
slaProbe sys/sla/inst/sender/operation-1


slaHttp Properties

The following table contains information about the slaHttp properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
cachescalar:Bool
The config to enable/disable the download of cached HTTP page.SELECTION: true or false
DEFAULT: true
httpmethodsla:HttpMethodVal
(scalar:Enum8)
HTTP method - Currently only the get method is supported.For GET requests,IP SLAs will format the request based on the specified http URL.SELECTION:
1 - get
DEFAULT: get
httpurlstring:Basic
URL string, expecting the input as http:[[//location[:port\]\]/directory\]/filenameA sequence of characters
ipTosscalar:Uint32
TOS if the probe is tracking IPv4 destination and Traffic Class if the probe is tracking IPv6 destination.RANGE: [0, 4294967295]


slaProbe Properties

The following table contains information about the slaProbe properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
idscalar:Uint32
Operation index which is unique for each probe, all the probe related configs and the statistics are displayed using this index.RANGE: [0, 4294967295]


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Deleting the Type of Service

Deleting the Type of Service
POST http://<mgmt0_IP>/api/mo/sys/sla/inst/sender.json
{
  "slaSender": {
    "children": [
      {
        "slaProbe": {
          "attributes": {
            "id": "1"
          },
          "children": [
            {
              "slaHttp": {
                "attributes": {
                  "cache": "yes",
                  "httpmethod": "get",
                  "httpurl": "http://www.cisco.com",
                  "ipTos": "0"
}}}]}}]}}
{
    imdata:[]
}
<System>
  <sla-items>
    <inst-items>
      <sender-items>
        <operation-items>
          <Probe-list>
            <id>1</id>
            <http-items>
              <cache>true</cache>
              <httpmethod>get</httpmethod>
              <httpurl>http://www.cisco.com</httpurl>
              <ipTos>0</ipTos>
            </http-items>
          </Probe-list>
        </operation-items>
      </sender-items>
    </inst-items>
  </sla-items>
</System>

Note: This example was added in Release 9.3(1).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

ip sla 1
 http get http://www.cisco.com
  no tos 130


Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
slaHttp sys/sla/inst/sender/operation-1/http
slaProbe sys/sla/inst/sender/operation-1


slaHttp Properties

The following table contains information about the slaHttp properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
cachescalar:Bool
The config to enable/disable the download of cached HTTP page.SELECTION: true or false
DEFAULT: true
httpmethodsla:HttpMethodVal
(scalar:Enum8)
HTTP method - Currently only the get method is supported.For GET requests,IP SLAs will format the request based on the specified http URL.SELECTION:
1 - get
DEFAULT: get
httpurlstring:Basic
URL string, expecting the input as http:[[//location[:port\]\]/directory\]/filenameA sequence of characters
ipTosscalar:Uint32
TOS if the probe is tracking IPv4 destination and Traffic Class if the probe is tracking IPv6 destination.RANGE: [0, 4294967295]


slaProbe Properties

The following table contains information about the slaProbe properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
idscalar:Uint32
Operation index which is unique for each probe, all the probe related configs and the statistics are displayed using this index.RANGE: [0, 4294967295]


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Configuring the Traffic Class

Configuring the Traffic Class 
POST http://<mgmt0_IP>/api/mo/sys/sla/inst/sender.json
{
  "slaSender": {
    "children": [
      {
        "slaProbe": {
          "attributes": {
            "id": "1"
          },
          "children": [
            {
              "slaHttp": {
                "attributes": {
                  "cache": "yes",
                  "httpmethod": "get",
                  "httpurl": "http://www.cisco.com",
                  "ipv6TrafficClass": "68"
}}}]}}]}}
{
    imdata:[]
}
<System>
  <sla-items>
    <inst-items>
      <sender-items>
        <operation-items>
          <Probe-list>
            <id>1</id>
            <http-items>
              <cache>true</cache>
              <httpmethod>get</httpmethod>
              <httpurl>http://www.cisco.com</httpurl>
              <ipv6TrafficClass>68</ipv6TrafficClass>
            </http-items>
          </Probe-list>
        </operation-items>
      </sender-items>
    </inst-items>
  </sla-items>
</System>

Note: This example was added in Release 9.3(1).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

ip sla 1
 http get http://www.cisco.com
  traffic-class 68


Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
slaHttp sys/sla/inst/sender/operation-1/http
slaProbe sys/sla/inst/sender/operation-1


slaHttp Properties

The following table contains information about the slaHttp properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
cachescalar:Bool
The config to enable/disable the download of cached HTTP page.SELECTION: true or false
DEFAULT: true
httpmethodsla:HttpMethodVal
(scalar:Enum8)
HTTP method - Currently only the get method is supported.For GET requests,IP SLAs will format the request based on the specified http URL.SELECTION:
1 - get
DEFAULT: get
httpurlstring:Basic
URL string, expecting the input as http:[[//location[:port\]\]/directory\]/filenameA sequence of characters
ipv6TrafficClassscalar:Uint32
TOS if the probe is tracking IPv4 destination and Traffic Class if the probe is tracking IPv6 destination.RANGE: [0, 4294967295]


slaProbe Properties

The following table contains information about the slaProbe properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
idscalar:Uint32
Operation index which is unique for each probe, all the probe related configs and the statistics are displayed using this index.RANGE: [0, 4294967295]


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Configuring the Default Traffic Class

Configuring the Default Traffic Class
POST http://<mgmt0_IP>/api/mo/sys/sla/inst/sender.json
{
  "slaSender": {
    "children": [
      {
        "slaProbe": {
          "attributes": {
            "id": "1"
          },
          "children": [
            {
              "slaHttp": {
                "attributes": {
                  "cache": "yes",
                  "httpmethod": "get",
                  "httpurl": "http://www.cisco.com",
                  "ipv6TrafficClass": "0"
}}}]}}]}}
{
    imdata:[]
}
<System>
  <sla-items>
    <inst-items>
      <sender-items>
        <operation-items>
          <Probe-list>
            <id>1</id>
            <http-items>
              <cache>true</cache>
              <httpmethod>get</httpmethod>
              <httpurl>http://www.cisco.com</httpurl>
              <ipv6TrafficClass>0</ipv6TrafficClass>
            </http-items>
          </Probe-list>
        </operation-items>
      </sender-items>
    </inst-items>
  </sla-items>
</System>

Note: This example was added in Release 9.3(1).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

ip sla 1
 http get http://www.cisco.com
  default traffic-class


Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
slaHttp sys/sla/inst/sender/operation-1/http
slaProbe sys/sla/inst/sender/operation-1


slaHttp Properties

The following table contains information about the slaHttp properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
cachescalar:Bool
The config to enable/disable the download of cached HTTP page.SELECTION: true or false
DEFAULT: true
httpmethodsla:HttpMethodVal
(scalar:Enum8)
HTTP method - Currently only the get method is supported.For GET requests,IP SLAs will format the request based on the specified http URL.SELECTION:
1 - get
DEFAULT: get
httpurlstring:Basic
URL string, expecting the input as http:[[//location[:port\]\]/directory\]/filenameA sequence of characters
ipv6TrafficClassscalar:Uint32
TOS if the probe is tracking IPv4 destination and Traffic Class if the probe is tracking IPv6 destination.RANGE: [0, 4294967295]


slaProbe Properties

The following table contains information about the slaProbe properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
idscalar:Uint32
Operation index which is unique for each probe, all the probe related configs and the statistics are displayed using this index.RANGE: [0, 4294967295]


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Deleting the Traffic Class

Deleting the Traffic Class 
POST http://<mgmt0_IP>/api/mo/sys/sla/inst/sender.json
{
  "slaSender": {
    "children": [
      {
        "slaProbe": {
          "attributes": {
            "id": "1"
          },
          "children": [
            {
              "slaHttp": {
                "attributes": {
                  "cache": "yes",
                  "httpmethod": "get",
                  "httpurl": "http://www.cisco.com",
                  "ipv6TrafficClass": "0"
}}}]}}]}}
{
    imdata:[]
}
<System>
  <sla-items>
    <inst-items>
      <sender-items>
        <operation-items>
          <Probe-list>
            <id>1</id>
            <http-items>
              <cache>true</cache>
              <httpmethod>get</httpmethod>
              <httpurl>http://www.cisco.com</httpurl>
              <ipv6TrafficClass>0</ipv6TrafficClass>
            </http-items>
          </Probe-list>
        </operation-items>
      </sender-items>
    </inst-items>
  </sla-items>
</System>

Note: This example was added in Release 9.3(1).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

ip sla 1
 http get http://www.cisco.com
  no traffic-class 68


Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
slaHttp sys/sla/inst/sender/operation-1/http
slaProbe sys/sla/inst/sender/operation-1


slaHttp Properties

The following table contains information about the slaHttp properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
cachescalar:Bool
The config to enable/disable the download of cached HTTP page.SELECTION: true or false
DEFAULT: true
httpmethodsla:HttpMethodVal
(scalar:Enum8)
HTTP method - Currently only the get method is supported.For GET requests,IP SLAs will format the request based on the specified http URL.SELECTION:
1 - get
DEFAULT: get
httpurlstring:Basic
URL string, expecting the input as http:[[//location[:port\]\]/directory\]/filenameA sequence of characters
ipv6TrafficClassscalar:Uint32
TOS if the probe is tracking IPv4 destination and Traffic Class if the probe is tracking IPv6 destination.RANGE: [0, 4294967295]


slaProbe Properties

The following table contains information about the slaProbe properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
idscalar:Uint32
Operation index which is unique for each probe, all the probe related configs and the statistics are displayed using this index.RANGE: [0, 4294967295]


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Configuring the Timeout of an Operation

Configuring the Timeout of an Operation
POST http://<mgmt0_IP>/api/mo/sys/sla/inst/sender.json
{
  "slaSender": {
    "children": [
      {
        "slaProbe": {
          "attributes": {
            "id": "1"
          },
          "children": [
            {
              "slaHttp": {
                "attributes": {
                  "cache": "yes",
                  "httpmethod": "get",
                  "httpurl": "http://www.cisco.com",
                  "timeout": "477429727"
}}}]}}]}}
{
    imdata:[]
}
<System>
  <sla-items>
    <inst-items>
      <sender-items>
        <operation-items>
          <Probe-list>
            <id>1</id>
            <http-items>
              <cache>true</cache>
              <httpmethod>get</httpmethod>
              <httpurl>http://www.cisco.com</httpurl>
              <timeout>477429727</timeout>
            </http-items>
          </Probe-list>
        </operation-items>
      </sender-items>
    </inst-items>
  </sla-items>
</System>

Note: This example was added in Release 9.3(1).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

ip sla 1
 http get http://www.cisco.com
  timeout 477429727

Note: The property information for this example was added in Release 9.3(3).


Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
slaSender sys/sla/inst/sender
slaProbe sys/sla/inst/sender/operation-{id}
slaHttp sys/sla/inst/sender/operation-{id}/http


slaProbe Properties

The following table contains information about the slaProbe properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
idscalar:Uint32
Operation index which is unique for each probe, all the probe related configs and the statistics are displayed using this index.
RANGE: [1 , 2147483647]


slaHttp Properties

The following table contains information about the slaHttp properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
cachescalar:Bool
The config to enable/disable the download of cached HTTP page.SELECTION: true or false
DEFAULT: true
httpmethodsla:HttpMethodVal
(scalar:Enum8)
HTTP method - Currently only the get method is supported.For GET requests,IP SLAs will format the request based on the specified http URL.SELECTION:
1 - get
DEFAULT: get
httpurlstring:Basic
URL string, expecting the input as http:[[//location[:port\]\]/directory\]/filenameA sequence of characters
timeoutsla:Timeout
(scalar:Uint32)
Timeout of an operation - this is the maximum wait time for completing the operation. The probe will be marked with Timeout return code.
RANGE: [0 , 604800000]
DEFAULT: 60000


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Configuring the Default Timeout

Configuring the Default Timeout
POST http://<mgmt0_IP>/api/mo/sys/sla/inst/sender.json
{
  "slaSender": {
    "children": [
      {
        "slaProbe": {
          "attributes": {
            "id": "1"
          },
          "children": [
            {
              "slaHttp": {
                "attributes": {
                  "cache": "yes",
                  "httpmethod": "get",
                  "httpurl": "http://www.cisco.com",
                  "timeout": "60000"
}}}]}}]}}
{
    imdata:[]
}
<System>
  <sla-items>
    <inst-items>
      <sender-items>
        <operation-items>
          <Probe-list>
            <id>1</id>
            <http-items>
              <cache>true</cache>
              <httpmethod>get</httpmethod>
              <httpurl>http://www.cisco.com</httpurl>
              <timeout>60000</timeout>
            </http-items>
          </Probe-list>
        </operation-items>
      </sender-items>
    </inst-items>
  </sla-items>
</System>

Note: This example was added in Release 9.3(1).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

ip sla 1
 http get http://www.cisco.com
  default timeout


Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
slaHttp sys/sla/inst/sender/operation-1/http
slaProbe sys/sla/inst/sender/operation-1


slaHttp Properties

The following table contains information about the slaHttp properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
cachescalar:Bool
The config to enable/disable the download of cached HTTP page.SELECTION: true or false
DEFAULT: true
httpmethodsla:HttpMethodVal
(scalar:Enum8)
HTTP method - Currently only the get method is supported.For GET requests,IP SLAs will format the request based on the specified http URL.SELECTION:
1 - get
DEFAULT: get
httpurlstring:Basic
URL string, expecting the input as http:[[//location[:port\]\]/directory\]/filenameA sequence of characters
timeoutsla:Timeout
(scalar:Uint32)
Timeout of an operation - this is the maximum wait time for completing the operation. The probe will be marked with Timeout return code.
RANGE: [0 , 604800000]
DEFAULT: 5000


slaProbe Properties

The following table contains information about the slaProbe properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
idscalar:Uint32
Operation index which is unique for each probe, all the probe related configs and the statistics are displayed using this index.RANGE: [0, 4294967295]


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Deleting the Timeout of an Operation

Deleting the Timeout of an Operation
POST http://<mgmt0_IP>/api/mo/sys/sla/inst/sender.json
{
  "slaSender": {
    "children": [
      {
        "slaProbe": {
          "attributes": {
            "id": "1"
          },
          "children": [
            {
              "slaHttp": {
                "attributes": {
                  "cache": "yes",
                  "httpmethod": "get",
                  "httpurl": "http://www.cisco.com",
                  "timeout": "60000"
}}}]}}]}}
{
    imdata:[]
}
<System>
  <sla-items>
    <inst-items>
      <sender-items>
        <operation-items>
          <Probe-list>
            <id>1</id>
            <http-items>
              <cache>true</cache>
              <httpmethod>get</httpmethod>
              <httpurl>http://www.cisco.com</httpurl>
              <timeout>60000</timeout>
            </http-items>
          </Probe-list>
        </operation-items>
      </sender-items>
    </inst-items>
  </sla-items>
</System>

Note: This example was added in Release 9.3(1).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

ip sla 1
 http get http://www.cisco.com
  no timeout 477429727

Note: The property information for this example was added in Release 9.3(3).


Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
slaSender sys/sla/inst/sender
slaProbe sys/sla/inst/sender/operation-{id}
slaHttp sys/sla/inst/sender/operation-{id}/http


slaProbe Properties

The following table contains information about the slaProbe properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
idscalar:Uint32
Operation index which is unique for each probe, all the probe related configs and the statistics are displayed using this index.
RANGE: [1 , 2147483647]


slaHttp Properties

The following table contains information about the slaHttp properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
cachescalar:Bool
The config to enable/disable the download of cached HTTP page.SELECTION: true or false
DEFAULT: true
httpmethodsla:HttpMethodVal
(scalar:Enum8)
HTTP method - Currently only the get method is supported.For GET requests,IP SLAs will format the request based on the specified http URL.SELECTION:
1 - get
DEFAULT: get
httpurlstring:Basic
URL string, expecting the input as http:[[//location[:port\]\]/directory\]/filenameA sequence of characters
timeoutsla:Timeout
(scalar:Uint32)
Timeout of an operation - this is the maximum wait time for completing the operation. The probe will be marked with Timeout return code.
RANGE: [0 , 604800000]
DEFAULT: 60000


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Configuring IP SLAs for a VPN Routing/Forwarding Instances

Configuring IP SLAs for a VPN Routing/Forwarding Instances
POST http://<mgmt0_IP>/api/mo/sys/sla/inst/sender.json
{
  "slaSender": {
    "children": [
      {
        "slaProbe": {
          "attributes": {
            "id": "1"
          },
          "children": [
            {
              "slaHttp": {
                "attributes": {
                  "cache": "yes",
                  "httpmethod": "get",
                  "httpurl": "http://www.cisco.com",
                  "vrf": "SampleString_123"
}}}]}}]}}
{
    imdata:[]
}
<System>
  <sla-items>
    <inst-items>
      <sender-items>
        <operation-items>
          <Probe-list>
            <id>1</id>
            <http-items>
              <cache>true</cache>
              <httpmethod>get</httpmethod>
              <httpurl>http://www.cisco.com</httpurl>
              <vrf>SampleString_123</vrf>
            </http-items>
          </Probe-list>
        </operation-items>
      </sender-items>
    </inst-items>
  </sla-items>
</System>

Note: This example was added in Release 9.3(1).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

ip sla 1
 http get http://www.cisco.com
  vrf SampleString_123


Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
slaHttp sys/sla/inst/sender/operation-1/http
slaProbe sys/sla/inst/sender/operation-1


slaHttp Properties

The following table contains information about the slaHttp properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
cachescalar:Bool
The config to enable/disable the download of cached HTTP page.SELECTION: true or false
DEFAULT: true
httpmethodsla:HttpMethodVal
(scalar:Enum8)
HTTP method - Currently only the get method is supported.For GET requests,IP SLAs will format the request based on the specified http URL.SELECTION:
1 - get
DEFAULT: get
httpurlstring:Basic
URL string, expecting the input as http:[[//location[:port\]\]/directory\]/filenameA sequence of characters
vrfl3:VrfName
(string:Basic)
vrf on which the probe is configured.A sequence of characters
DEFAULT: default


slaProbe Properties

The following table contains information about the slaProbe properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
idscalar:Uint32
Operation index which is unique for each probe, all the probe related configs and the statistics are displayed using this index.RANGE: [0, 4294967295]


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Configuring the Default IP SLAs for a VPN Routing/Forwarding instance

Configuring the Default IP SLAs for a VPN Routing/Forwarding instance
POST http://<mgmt0_IP>/api/mo/sys/sla/inst/sender.json
{
  "slaSender": {
    "children": [
      {
        "slaProbe": {
          "attributes": {
            "id": "1"
          },
          "children": [
            {
              "slaHttp": {
                "attributes": {
                  "cache": "yes",
                  "httpmethod": "get",
                  "httpurl": "http://www.cisco.com",
                  "vrf": "default"
}}}]}}]}}
{
    imdata:[]
}
<System>
  <sla-items>
    <inst-items>
      <sender-items>
        <operation-items>
          <Probe-list>
            <id>1</id>
            <http-items>
              <cache>true</cache>
              <httpmethod>get</httpmethod>
              <httpurl>http://www.cisco.com</httpurl>
              <vrf>default</vrf>
            </http-items>
          </Probe-list>
        </operation-items>
      </sender-items>
    </inst-items>
  </sla-items>
</System>

Note: This example was added in Release 9.3(1).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

ip sla 1
 http get http://www.cisco.com
  default vrf


Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
slaHttp sys/sla/inst/sender/operation-1/http
slaProbe sys/sla/inst/sender/operation-1


slaHttp Properties

The following table contains information about the slaHttp properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
cachescalar:Bool
The config to enable/disable the download of cached HTTP page.SELECTION: true or false
DEFAULT: true
httpmethodsla:HttpMethodVal
(scalar:Enum8)
HTTP method - Currently only the get method is supported.For GET requests,IP SLAs will format the request based on the specified http URL.SELECTION:
1 - get
DEFAULT: get
httpurlstring:Basic
URL string, expecting the input as http:[[//location[:port\]\]/directory\]/filenameA sequence of characters
vrfl3:VrfName
(string:Basic)
vrf on which the probe is configured.A sequence of characters
DEFAULT: default


slaProbe Properties

The following table contains information about the slaProbe properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
idscalar:Uint32
Operation index which is unique for each probe, all the probe related configs and the statistics are displayed using this index.RANGE: [0, 4294967295]


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Deleting IP SLAs for a VPN Routing/Forwarding Instances

Deleting IP SLAs for a VPN Routing/Forwarding Instances
POST http://<mgmt0_IP>/api/mo/sys/sla/inst/sender.json
{
  "slaSender": {
    "children": [
      {
        "slaProbe": {
          "attributes": {
            "id": "1"
          },
          "children": [
            {
              "slaHttp": {
                "attributes": {
                  "cache": "yes",
                  "httpmethod": "get",
                  "httpurl": "http://www.cisco.com",
                  "vrf": "default"
}}}]}}]}}
{
    imdata:[]
}
<System>
  <sla-items>
    <inst-items>
      <sender-items>
        <operation-items>
          <Probe-list>
            <id>1</id>
            <http-items>
              <cache>true</cache>
              <httpmethod>get</httpmethod>
              <httpurl>http://www.cisco.com</httpurl>
              <vrf>default</vrf>
            </http-items>
          </Probe-list>
        </operation-items>
      </sender-items>
    </inst-items>
  </sla-items>
</System>

Note: This example was added in Release 9.3(1).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

ip sla 1
 http get http://www.cisco.com
  no vrf SampleString_123


Verifying a DME Configuration
The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
slaHttp sys/sla/inst/sender/operation-1/http
slaProbe sys/sla/inst/sender/operation-1


slaHttp Properties

The following table contains information about the slaHttp properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
cachescalar:Bool
The config to enable/disable the download of cached HTTP page.SELECTION: true or false
DEFAULT: true
httpmethodsla:HttpMethodVal
(scalar:Enum8)
HTTP method - Currently only the get method is supported.For GET requests,IP SLAs will format the request based on the specified http URL.SELECTION:
1 - get
DEFAULT: get
httpurlstring:Basic
URL string, expecting the input as http:[[//location[:port\]\]/directory\]/filenameA sequence of characters
vrfl3:VrfName
(string:Basic)
vrf on which the probe is configured.A sequence of characters
DEFAULT: default


slaProbe Properties

The following table contains information about the slaProbe properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
idscalar:Uint32
Operation index which is unique for each probe, all the probe related configs and the statistics are displayed using this index.RANGE: [0, 4294967295]


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Configuring the Max Number of History Buckets to Collect

Configuring the Max Number of History Buckets to Collect 
POST http://<mgmt0_IP>/api/mo/sys/sla/inst/sender.json
{
  "slaSender": {
    "children": [
      {
        "slaProbe": {
          "attributes": {
            "id": "1"
          },
          "children": [
            {
              "slaHttp": {
                "attributes": {
                  "bucketsKept": "18",
                  "cache": "yes",
                  "httpmethod": "get",
                  "httpurl": "http://www.cisco.com"
}}}]}}]}}
{
    imdata:[]
}
<System>
  <sla-items>
    <inst-items>
      <sender-items>
        <operation-items>
          <Probe-list>
            <id>1</id>
            <http-items>
              <bucketsKept>18</bucketsKept>
              <cache>true</cache>
              <httpmethod>get</httpmethod>
              <httpurl>http://www.cisco.com</httpurl>
            </http-items>
          </Probe-list>
        </operation-items>
      </sender-items>
    </inst-items>
  </sla-items>
</System>

Note: This example was added in Release 9.3(3).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

ip sla 1
  http get http://www.cisco.com
   history buckets-kept 18


Verifying a DME Configuration

The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
slaSender sys/sla/inst/sender
slaProbe sys/sla/inst/sender/operation-1
slaHttp sys/sla/inst/sender/operation-1/http


slaProbe Properties

The following table contains information about the slaProbe properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
idscalar:Uint32
Operation index which is unique for each probe, all the probe related configs and the statistics are displayed using this index.
RANGE: [1 , 2147483647]


slaHttp Properties

The following table contains information about the slaHttp properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
bucketsKeptscalar:Uint32
Bucket size value - Maximum number of history buckets to collect
RANGE: [1 , 60]
DEFAULT: 15
cachescalar:Bool
The config to enable/disable the download of cached HTTP page.SELECTION: true or false
DEFAULT: true
httpmethodsla:HttpMethodVal
(scalar:Enum8)
HTTP method - Currently only the get method is supported.For GET requests,IP SLAs will format the request based on the specified http URL.SELECTION:
1 - get
DEFAULT: get
httpurlstring:Basic
URL string, expecting the input as http:[[//location[:port\]\]/directory\]/filenameA sequence of characters


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html

Deleting the Max Number of History Buckets to Collect

Deleting the Max Number of History Buckets to Collect 
POST http://<mgmt0_IP>/api/mo/sys/sla/inst/sender.json
{
  "slaSender": {
    "children": [
      {
        "slaProbe": {
          "attributes": {
            "id": "1"
          },
          "children": [
            {
              "slaHttp": {
                "attributes": {
                  "bucketsKept": "15",
                  "cache": "yes",
                  "httpmethod": "get",
                  "httpurl": "http://www.cisco.com"
}}}]}}]}}
{
    imdata:[]
}
<System>
  <sla-items>
    <inst-items>
      <sender-items>
        <operation-items>
          <Probe-list>
            <id>1</id>
            <http-items>
              <bucketsKept>15</bucketsKept>
              <cache>true</cache>
              <httpmethod>get</httpmethod>
              <httpurl>http://www.cisco.com</httpurl>
            </http-items>
          </Probe-list>
        </operation-items>
      </sender-items>
    </inst-items>
  </sla-items>
</System>

Note: This example was added in Release 9.3(3).


CLI Commands

The CLI commands are equivalent to the payload examples displayed in the pane on the right. Click the DME tab in the top-left corner of the right pane to view the JSON payload. Click the YANG tab to view the XML payload.

ip sla 1
  http get http://www.cisco.com
   no history buckets-kept 18


Verifying a DME Configuration

The following table contains the distinguished name (DN) for each managed object (MO) in the DME payload. Issue a GET request using the DN to verify the configuration was posted or to get information about the configured properties of a particular object.

MODN
slaSender sys/sla/inst/sender
slaProbe sys/sla/inst/sender/operation-1
slaHttp sys/sla/inst/sender/operation-1/http


slaProbe Properties

The following table contains information about the slaProbe properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
idscalar:Uint32
Operation index which is unique for each probe, all the probe related configs and the statistics are displayed using this index.
RANGE: [1 , 2147483647]


slaHttp Properties

The following table contains information about the slaHttp properties in the DME payload. For more information about the properties and MOs, see the NX-API DME Model Reference linked in the Related Documentation section below.

Property NameData TypeDescriptionValues
bucketsKeptscalar:Uint32
Bucket size value - Maximum number of history buckets to collect
RANGE: [1 , 60]
DEFAULT: 15
cachescalar:Bool
The config to enable/disable the download of cached HTTP page.SELECTION: true or false
DEFAULT: true
httpmethodsla:HttpMethodVal
(scalar:Enum8)
HTTP method - Currently only the get method is supported.For GET requests,IP SLAs will format the request based on the specified http URL.SELECTION:
1 - get
DEFAULT: get
httpurlstring:Basic
URL string, expecting the input as http:[[//location[:port\]\]/directory\]/filenameA sequence of characters


Related Documentation

For other CLI options, see the Cisco Nexus 9000 Series NX-OS Command Reference:

http://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-command-reference-list.html

See the NX-API DME Model Reference for detailed information about classes and attributes described in the payload:

https://developer.cisco.com/site/nx-os/docs/nexus-model-reference/

For information about using the payloads, see the Cisco Nexus 9000 Series NX-OS Programmability Guide:

https://www.cisco.com/c/en/us/support/switches/nexus-9000-series-switches/products-programming-reference-guides-list.html