cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
153
Views
0
Helpful
4
Replies
khgrant
Cisco Employee

operations via rest question

 

Hi Team,

 

 

When I try to use REST to do operations against an existing service, I get:

 

 

 

[mano@localhost createbundle-1.0]$ curl -i -u admin:admin http://localhost:8080/api/running/vpc-mme-sae-gw/mano/vpc_di_SAEGW/ESC0/_operations/check_sync -X POST -H "Content-Type: application/vnd.yang.data+xml"

 

HTTP/1.1 404 Not Found

 

Server:

 

Date: Tue, 03 Jan 2017 20:51:10 GMT

 

Cache-Control: private, no-cache, must-revalidate, proxy-revalidate

 

Content-Length: 193

 

Content-Type: text/xml

 

Vary: Accept-Encoding

 

Pragma: no-cache

 

 

 

<errors xmlns="http://tail-f.com/ns/tailf-rest-error">

 

  <error>

 

    <error-tag>unknown-element</error-tag>

 

    <error-message>wrong number of identifiers</error-message>

 

  </error>

 

</errors>

 

 

But if I execute on the CLI it works. What am I missing?  Full logs below.

 

 

admin@ncs# vpc-mme-sae-gw mano vpc_di_SAEGW ESC0

 

Possible completions:

 

  check-sync         - Check if device config is according to the service

 

  commit-queue       -

 

  deep-check-sync    - Check if device config is according to the service

 

  get-modifications  - Get the data this service created

 

  log                -

 

  re-deploy          - Run/Dryrun the service logic again

 

  reactive-re-deploy - Reactive redeploy of service logic

 

  self-test          - Perform self-test of the service

 

  touch              - Touch a service

 

  un-deploy          - Undo the effects of this service

 

admin@ncs# vpc-mme-sae-gw mano vpc_di_SAEGW ESC0 check-sync

 

in-sync true

 

admin@ncs#

 

Thanks, JA

 

 

 

[mano@localhost createbundle-1.0]$ curl -i -u admin:admin http://localhost:8080/api/running -X GET -H "Content-Type: application/vnd.yang.data+xml"

 

HTTP/1.1 200 OK

 

Server:

 

Date: Tue, 03 Jan 2017 20:49:53 GMT

 

Last-Modified: Tue, 03 Jan 2017 20:08:15 GMT

 

Cache-Control: private, no-cache, must-revalidate, proxy-revalidate

 

Etag: 1483-474098-213291

 

Content-Type: application/vnd.yang.datastore+xml

 

Transfer-Encoding: chunked

 

Pragma: no-cache

 

 

<data xmlns:y="http://tail-f.com/ns/rest">

 

  <GWServiceValidation xmlns="http://com/example/GWServiceValidation">

 

    <y:operations>

 

      <validate-gwservice>/api/running/GWServiceValidation/_operations/validate-gwservice</validate-gwservice>

 

      <validate-cli>/api/running/GWServiceValidation/_operations/validate-cli</validate-cli>

 

    </y:operations>

 

  </GWServiceValidation>

 

  <GWServiceValidationData xmlns="http://com/example/GWServiceValidationData">

 

    <gw_type>SAEGW</gw_type>

 

  </GWServiceValidationData>

 

  <GWServiceValidationData xmlns="http://com/example/GWServiceValidationData">

 

    <gw_type>MME</gw_type>

 

  </GWServiceValidationData>

 

  <configData xmlns="http://com/example/configData"/>

 

  <nacm xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-acm">

 

    <write-default>permit</write-default>

 

    <groups>

 

      <group>

 

        <name>admin</name>

 

      </group>

 

      <group>

 

        <name>oper</name>

 

      </group>

 

    </groups>

 

    <rule-list>

 

      <name>admin</name>

 

    </rule-list>

 

    <rule-list>

 

      <name>any-group</name>

 

    </rule-list>

 

    <rule-list>

 

      <name>resource-manager-deny</name>

 

    </rule-list>

 

  </nacm>

 

  <resource-pools xmlns="http://tail-f.com/pkg/resource-allocator">

 

    <id-pool xmlns="http://tail-f.com/pkg/id-allocator">

 

      <name>esc-Openstack-Mobility-Vlans</name>

 

    </id-pool>

 

    <ip-address-pool xmlns="http://tail-f.com/pkg/ipaddress-allocator">

 

      <name>esc-Openstack-Mobility-OAM</name>

 

    </ip-address-pool>

 

    <ip-address-pool xmlns="http://tail-f.com/pkg/ipaddress-allocator">

 

      <name>esc-Openstack-Mobility-infrastructure</name>

 

    </ip-address-pool>

 

    <ip-address-pool xmlns="http://tail-f.com/pkg/ipaddress-allocator">

 

      <name>esc-Openstack-Mobility-internalNetwork</name>

 

    </ip-address-pool>

 

    <ip-address-pool xmlns="http://tail-f.com/pkg/ipaddress-allocator">

 

      <name>esc-Openstack-Mobility-loopback</name>

 

    </ip-address-pool>

 

  </resource-pools>

 

  <snmp xmlns="http://tailf.com/ns/snmp">

 

  <agent>

 

    <enabled>true</enabled>

 

    <ip>0.0.0.0</ip>

 

    <udp-port>4000</udp-port>

 

    <version>

 

      <v1/>

 

      <v2c/>

 

      <v3/>

 

    </version>

 

    <engine-id/>

 

    <max-message-size>50000</max-message-size>

 

  </agent>

 

  <system>

 

    <contact></contact>

 

    <name></name>

 

    <location></location>

 

  </system>

 

  <usm>

 

  <local>

 

    <user>

 

      <name>initial</name>

 

    </user>

 

  </local>

 

</usm>

 

<target>

 

   <name>monitor</name>

 

</target>

 

<community>

 

   <index>public</index>

 

</community>

 

<notify>

 

   <name>foo</name>

 

</notify>

 

<vacm>

 

   <group>

 

     <name>initial</name>

 

   </group>

 

   <group>

 

     <name>public</name>

 

   </group>

 

   <view>

 

     <name>internet</name>

 

   </view>

 

   <view>

 

     <name>restricted</name>

 

   </view>

 

</vacm>

 

</snmp>

 

<aaa xmlns="http://tail-f.com/ns/aaa/1.1">

 

<authentication>

 

<users>

 

  <user>

 

    <name>admin</name>

 

  </user>

 

  <user>

 

    <name>oper</name>

 

  </user>

 

  <user>

 

    <name>private</name>

 

  </user>

 

  <user>

 

    <name>public</name>

 

  </user>

 

</users>

 

</authentication>

 

</aaa>

 

<cluster xmlns="http://tail-f.com/ns/ncs">

 

  <authgroup>

 

    <name>default</name>

 

  </authgroup>

 

</cluster>

 

<devices xmlns="http://tail-f.com/ns/ncs">

 

<global-settings>

 

  <trace>pretty</trace>

 

  <trace-dir>./logs</trace-dir>

 

</global-settings>

 

<authgroups>

 

  <group>

 

    <name>CSR_group</name>

 

  </group>

 

  <group>

 

    <name>DI_CF_group</name>

 

  </group>

 

  <group>

 

    <name>ESC_group</name>

 

  </group>

 

  <group>

 

    <name>SI_group</name>

 

  </group>

 

  <group>

 

    <name>default</name>

 

  </group>

 

  <snmp-group>

 

    <name>default</name>

 

  </snmp-group>

 

</authgroups>

 

<template tags=" merge ">

 

  <name>Placement_template</name>

 

</template>

 

<template tags=" merge ">

 

  <name>Placement_template_DI-CF1</name>

 

</template>

 

<template tags=" merge ">

 

  <name>Placement_template_DI-CF2</name>

 

</template>

 

<template tags=" merge ">

 

  <name>Placement_template_DI-SF</name>

 

</template>

 

<mib-group>

 

  <name>snmp</name>

 

</mib-group>

 

<device>

 

  <name>EPNM1</name>

 

</device>

 

<device>

 

  <name>ESC0</name>

 

</device>

 

<device>

 

  <name>mano_vpc_di_SAEGW_VPCDI-SAEGW_DI-CF1_ESC0_1</name>

 

</device>

 

<device>

 

  <name>router0</name>

 

</device>

 

<y:operations>

 

  <connect>/api/running/devices/_operations/connect</connect>

 

  <sync-to>/api/running/devices/_operations/sync-to</sync-to>

 

  <sync-from>/api/running/devices/_operations/sync-from</sync-from>

 

  <disconnect>/api/running/devices/_operations/disconnect</disconnect>

 

  <check-sync>/api/running/devices/_operations/check-sync</check-sync>

 

  <check-yang-modules>/api/running/devices/_operations/check-yang-modules</check-yang-modules>

 

  <fetch-ssh-host-keys>/api/running/devices/_operations/fetch-ssh-host-keys</fetch-ssh-host-keys>

 

  <clear-trace>/api/running/devices/_operations/clear-trace</clear-trace>

 

</y:operations>

 

</devices>

 

<java-vm xmlns="http://tail-f.com/ns/ncs">

 

<stdout-capture>

 

  <file>./logs/ncs-java-vm.log</file>

 

</stdout-capture>

 

<jmx/>

 

<y:operations>

 

  <stop>/api/running/java-vm/_operations/stop</stop>

 

  <start>/api/running/java-vm/_operations/start</start>

 

  <restart>/api/running/java-vm/_operations/restart</restart>

 

</y:operations>

 

</java-vm>

 

<smart-license xmlns="http://tail-f.com/ns/ncs">

 

<smart-agent>

 

<stdout-capture>

 

  <file>./logs/ncs-smart-licensing.log</file>

 

</stdout-capture>

 

<y:operations>

 

  <restart>/api/running/smart-license/smart-agent/_operations/restart</restart>

 

</y:operations>

 

</smart-agent>

 

<y:operations>

 

  <register>/api/running/smart-license/_operations/register</register>

 

  <deregister>/api/running/smart-license/_operations/deregister</deregister>

 

  <renew>/api/running/smart-license/_operations/renew</renew>

 

  <show>/api/running/smart-license/_operations/show</show>

 

</y:operations>

 

</smart-license>

 

<python-vm xmlns="http://tail-f.com/ns/ncs">

 

<logging>

 

  <log-file-prefix>./logs/ncs-python-vm</log-file-prefix>

 

</logging>

 

<y:operations>

 

  <stop>/api/running/python-vm/_operations/stop</stop>

 

  <start>/api/running/python-vm/_operations/start</start>

 

</y:operations>

 

</python-vm>

 

<services xmlns="http://tail-f.com/ns/ncs">

 

  <y:operations>

 

    <check-sync>/api/running/services/_operations/check-sync</check-sync>

 

    <commit-dry-run>/api/running/services/_operations/commit-dry-run</commit-dry-run>

 

  </y:operations>

 

</services>

 

<snmp-notification-receiver xmlns="http://tail-f.com/ns/ncs">

 

  <engine-id>80:00:61:81:80:00:50:56:80:33:96:00:0f:e0:df</engine-id>

 

</snmp-notification-receiver>

 

<software xmlns="http://tail-f.com/ns/ncs">

 

<packages>

 

  <y:operations>

 

    <list>/api/running/software/packages/_operations/list</list>

 

    <upload>/api/running/software/packages/_operations/upload</upload>

 

    <fetch>/api/running/software/packages/_operations/fetch</fetch>

 

    <install>/api/running/software/packages/_operations/install</install>

 

    <deinstall>/api/running/software/packages/_operations/deinstall</deinstall>

 

  </y:operations>

 

</packages>

 

</software>

 

<alarms xmlns="http://tail-f.com/ns/ncs-alarms">

 

<alarm-model>

 

  <alarm-type>

 

    <type>connection-failure</type>

 

    <specific-problem-match>*</specific-problem-match>

 

  </alarm-type>

 

  <alarm-type>

 

    <type>revision-error</type>

 

    <specific-problem-match>*</specific-problem-match>

 

  </alarm-type>

 

  <alarm-type>

 

    <type>out-of-sync</type>

 

    <specific-problem-match>*</specific-problem-match>

 

  </alarm-type>

 

  <alarm-type>

 

    <type>dev-manager-internal-error</type>

 

    <specific-problem-match>*</specific-problem-match>

 

  </alarm-type>

 

  <alarm-type>

 

    <type>ned-live-tree-connection-failure</type>

 

    <specific-problem-match>*</specific-problem-match>

 

  </alarm-type>

 

  <alarm-type>

 

    <type>configuration-error</type>

 

    <specific-problem-match>*</specific-problem-match>

 

  </alarm-type>

 

  <alarm-type>

 

    <type>bad-user-input</type>

 

    <specific-problem-match>*</specific-problem-match>

 

  </alarm-type>

 

  <alarm-type>

 

    <type>commit-through-queue-failed</type>

 

    <specific-problem-match>*</specific-problem-match>

 

  </alarm-type>

 

  <alarm-type>

 

    <type>commit-through-queue-blocked</type>

 

    <specific-problem-match>*</specific-problem-match>

 

  </alarm-type>

 

</alarm-model>

 

<y:operations>

 

  <synchronize-alarms>/api/running/alarms/_operations/synchronize-alarms</synchronize-alarms>

 

  <compress-alarms>/api/running/alarms/_operations/compress-alarms</compress-alarms>

 

  <filter-alarms>/api/running/alarms/_operations/filter-alarms</filter-alarms>

 

  <purge-alarms>/api/running/alarms/_operations/purge-alarms</purge-alarms>

 

</y:operations>

 

</alarms>

 

<nfvo xmlns="http://tail-f.com/pkg/nfvo">

 

  <vnfd>

 

    <id>VPCDI-SAEGW</id>

 

  </vnfd>

 

  <vnfd>

 

    <id>VPCSI-MME</id>

 

  </vnfd>

 

  <vnfr>

 

  <esc xmlns="http://tail-f.com/pkg/tailf-nfvo-esc">

 

    <vnf-deployment>

 

      <tenant>mano</tenant>

 

      <deployment-name>vpc_di_SAEGW</deployment-name>

 

      <esc>ESC0</esc>

 

    </vnf-deployment>

 

  </esc>

 

</vnfr>

 

<vlr>

 

<esc xmlns="http://tail-f.com/pkg/tailf-nfvo-esc">

 

  <vlr>

 

    <id>oam-mgt</id>

 

  </vlr>

 

  <vlr>

 

    <id>vm-mgt-mano</id>

 

  </vlr>

 

  <vlr>

 

    <id>vpc_di_SAEGW-di-internal</id>

 

  </vlr>

 

  <vlr>

 

    <id>vpc_di_SAEGW-s1u</id>

 

  </vlr>

 

  <vlr>

 

    <id>vpc_di_SAEGW-saegw</id>

 

  </vlr>

 

  <vlr>

 

    <id>vpc_di_SAEGW-sgi</id>

 

  </vlr>

 

</esc>

 

</vlr>

 

<onboarding>

 

<esc xmlns="http://tail-f.com/pkg/tailf-nfvo-esc">

 

  <flavor>

 

    <name>vpc-di-cf-19.2-mano</name>

 

  </flavor>

 

  <flavor>

 

    <name>vpc-di-sf-19.2-mano</name>

 

  </flavor>

 

  <flavor>

 

    <name>vpc-si-19.2-mano</name>

 

  </flavor>

 

  <image>

 

    <name>vpc-di-cf1-19.2-mano</name>

 

  </image>

 

  <image>

 

    <name>vpc-di-cf2-19.2-mano</name>

 

  </image>

 

  <image>

 

    <name>vpc-di-sf-19.2-mano</name>

 

  </image>

 

  <image>

 

    <name>vpc-si-19.2-mano</name>

 

  </image>

 

</esc>

 

</onboarding>

 

<tailf-esc-internal xmlns="http://tail-f.com/pkg/tailf-nfvo-esc">

 

  <vnf-deployment>

 

    <tenant>mano</tenant>

 

    <deployment-name>vpc_di_SAEGW</deployment-name>

 

    <esc>ESC0</esc>

 

  </vnf-deployment>

 

</tailf-esc-internal>

 

<settings-esc xmlns="http://tail-f.com/pkg/tailf-nfvo-esc"/>

 

</nfvo>

 

<vpc-mme-sae-gw xmlns="http://com/example/vpcmmesaegw">

 

  <tenant>mano</tenant>

 

  <deployment-name>vpc_di_SAEGW</deployment-name>

 

  <esc>ESC0</esc>

 

</vpc-mme-sae-gw>

 

  <operations>

 

    <lock>/api/running/_lock</lock>

 

    <rollback>/api/running/_rollback</rollback>

 

  </operations>

 

</data>

 

[mano@localhost createbundle-1.0]$ curl -i -u admin:admin http://localhost:8080/api/running/vpc-mme-sae-gw -X GET -H "Content-Type: application/vnd.yang.data+xml"

 

HTTP/1.1 200 OK

 

Server:

 

Date: Tue, 03 Jan 2017 20:50:12 GMT

 

Last-Modified: Tue, 03 Jan 2017 20:08:15 GMT

 

Cache-Control: private, no-cache, must-revalidate, proxy-revalidate

 

Etag: 1483-474098-213291

 

Content-Type: application/vnd.yang.collection+xml

 

Transfer-Encoding: chunked

 

Pragma: no-cache

 

 

<collection xmlns:y="http://tail-f.com/ns/rest">

 

  <vpc-mme-sae-gw xmlns="http://com/example/vpcmmesaegw">

 

    <tenant>mano</tenant>

 

    <deployment-name>vpc_di_SAEGW</deployment-name>

 

    <esc>ESC0</esc>

 

    <license-key>VER=1|DOI=1481051803|DOE=1496776603|ISS=3|NUM=192253|CMT=Vmware_test_system|LSG=1000|LEC=3000|FIS=Y|FR4=Y|FTC=Y|FSR=Y|FPM=Y|FID=Y|FI6=Y|FLI=Y|FFA=Y|FCA=Y|FTM=Y|FTP=Y|FDR=Y|FDC=Y|FGR=Y|FAA=Y|FDQ=Y|FEL=Y|BEP=Y|FAI=Y|FCP=Y|LCF=1000|LPP=1000|LSF=1000|FLS=Y|FSG=Y|LGW=1000|HIL=SCALE|LSB=1000|LMM=1000|FIB=Y|FND=Y|FMS=Y|FAP=Y|FRE=Y|FHE=Y|FCG=Y|FUO=Y|LPT=1000|FUR=Y|FOP=Y|FRB=Y|FCF=Y|FOO=Y|FAL=Y|FVO=Y|FST=Y|FSI=Y|FRV=Y|FSV=Y|F6D=Y|F13=Y|FIM=Y|FLP=Y|LEP=1000|LHN=1000|LHR=1000|FFS=Y|FMF=Y|FEE=Y|FHH=Y|FIT=Y|LEW=1000|FSB=Y|FDS=Y|LSE=1000|FMX=Y|FUZ=Y|LEN=2000|FLR=Y|FLG=Y|LSO=1000|FMC=Y|FOC=Y|FOS=Y|FIR=Y|FGD=Y|LIP=1000|FOE=Y|FWP=Y|FAU=Y|FPA=Y|FEG=Y|FL2=Y|FSH=Y|FLF=Y|FSP=Y|FNI=Y|FCI=Y|FSF=Y|FGO=Y|FPE=Y|FWI=Y|FAC=Y|FIE=Y|FSM=Y|FAG=Y|FNQ=Y|SIG=MC0CFQCl7a/BKev8CANkeeW7a8ykgtSOvgIUPquDZg/JtHYPHs8Ia4/UWQGmjeo</license-key>

 

    <servicenet-vlsm>24</servicenet-vlsm>

 

    <hostname>saegw-mano</hostname>

 

    <remote-as>200</remote-as>

 

    <dns-server-primary>10.10.1.3</dns-server-primary>

 

    <num-of-sf-cards>4</num-of-sf-cards>

 

    <service-gw-type>SAEGW</service-gw-type>

 

    <vpc-service-operation-type>INSTANTIATE_AND_APPLY_OAM_GW</vpc-service-operation-type>

 

    <vnfr xmlns="http://com/example/vpcmmesaegw">

 

      <id>VPCDI-SAEGW</id>

 

    </vnfr>

 

    <y:operations>

 

      <check-sync>/api/running/vpc-mme-sae-gw/mano,vpc_di_SAEGW,ESC0/_operations/check-sync</check-sync>

 

      <deep-check-sync>/api/running/vpc-mme-sae-gw/mano,vpc_di_SAEGW,ESC0/_operations/deep-check-sync</deep-check-sync>

 

      <re-deploy>/api/running/vpc-mme-sae-gw/mano,vpc_di_SAEGW,ESC0/_operations/re-deploy</re-deploy>

 

      <reactive-re-deploy>/api/running/vpc-mme-sae-gw/mano,vpc_di_SAEGW,ESC0/_operations/reactive-re-deploy</reactive-re-deploy>

 

      <touch>/api/running/vpc-mme-sae-gw/mano,vpc_di_SAEGW,ESC0/_operations/touch</touch>

 

      <get-modifications>/api/running/vpc-mme-sae-gw/mano,vpc_di_SAEGW,ESC0/_operations/get-modifications</get-modifications>

 

      <un-deploy>/api/running/vpc-mme-sae-gw/mano,vpc_di_SAEGW,ESC0/_operations/un-deploy</un-deploy>

 

      <self-test>/api/running/vpc-mme-sae-gw/mano,vpc_di_SAEGW,ESC0/_operations/self-test</self-test>

 

    </y:operations>

 

  </vpc-mme-sae-gw>

 

</collection>

 

[mano@localhost createbundle-1.0]$ curl -i -u admin:admin http://localhost:8080/api/running/vpc-mme-sae-gw/mano/vpc_di_SAEGW/ESC0/_operations/check_sync -X POST -H "Content-Type: application/vnd.yang.data+xml"

 

HTTP/1.1 404 Not Found

 

Server:

 

Date: Tue, 03 Jan 2017 20:51:10 GMT

 

Cache-Control: private, no-cache, must-revalidate, proxy-revalidate

 

Content-Length: 193

 

Content-Type: text/xml

 

Vary: Accept-Encoding

 

Pragma: no-cache

 

 

 

<errors xmlns="http://tail-f.com/ns/tailf-rest-error">

 

  <error>

 

    <error-tag>unknown-element</error-tag>

 

    <error-message>wrong number of identifiers</error-message>

 

  </error>

 

</errors>

 

[mano@localhost createbundle-1.0]$ ncs_cli -u admin

 

 

admin@ncs# vpc-mme-sae-gw mano vpc_di_SAEGW ESC0

 

Possible completions:

 

  check-sync         - Check if device config is according to the service

 

  commit-queue       -

 

  deep-check-sync    - Check if device config is according to the service

 

  get-modifications  - Get the data this service created

 

  log                -

 

  re-deploy          - Run/Dryrun the service logic again

 

  reactive-re-deploy - Reactive redeploy of service logic

 

  self-test          - Perform self-test of the service

 

  touch              - Touch a service

 

  un-deploy          - Undo the effects of this service

 

admin@ncs# vpc-mme-sae-gw mano vpc_di_SAEGW ESC0 check-sync

 

in-sync true

 

admin@ncs#

 

4 REPLIES 4
khgrant
Cisco Employee

 

But my service instance is defined as the same on my URL follows as shown on the CLi:

 

 

admin@ncs# vpc-mme-sae-gw ?

 

Possible completions:

 

  mano

 

admin@ncs# vpc-mme-sae-gw mano ?

 

Possible completions:

 

  vpc_di_SAEGW

 

admin@ncs# vpc-mme-sae-gw mano vpc_di_SAEGW ?

 

Possible completions:

 

  ESC0

 

admin@ncs# vpc-mme-sae-gw mano vpc_di_SAEGW ESC0 ?

 

Possible completions:

 

  check-sync         - Check if device config is according to the service

 

  commit-queue       -

 

  deep-check-sync    - Check if device config is according to the service

 

  get-modifications  - Get the data this service created

 

  log                -

 

  re-deploy          - Run/Dryrun the service logic again

 

  reactive-re-deploy - Reactive redeploy of service logic

 

  self-test          - Perform self-test of the service

 

  touch              - Touch a service

 

  un-deploy          - Undo the effects of this service

 

admin@ncs# vpc-mme-sae-gw mano vpc_di_SAEGW ESC0

 

khgrant
Cisco Employee

 

Hi JA,

 

 

I suspect the key to the instance is “vpc_di_SAEGW” and “ESC0” combined, if that is the case you’ll need to use a comma (,) between the two elements in the URL instead of a “/”. That probably generates the “wrong number of identifiers” error.

 

 

Either way, you can run a GET request on http://localhost:8080/api/running/vpc-mme-sae-gw/mano to get the list of current operations with their URL path. i.e.:

 

 

# curl -X GET -u root:user http://localhost:8080/api/running/services/test

 

<collection xmlns:y="http://tail-f.com/ns/rest">

 

  <test xmlns="http://com/example/test">

 

    <name>AAA</name>

 

    <name1>BBB</name1>

 

    <device>nx0</device>

 

    <interf>1/1</interf>

 

    <vlan>100</vlan>

 

    <y:operations>

 

      <check-sync>/api/running/services/test:test/AAA,BBB/_operations/check-sync</check-sync>

 

      <deep-check-sync>/api/running/services/test:test/AAA,BBB/_operations/deep-check-sync</deep-check-sync>

 

      <re-deploy>/api/running/services/test:test/AAA,BBB/_operations/re-deploy</re-deploy>

 

      <reactive-re-deploy>/api/running/services/test:test/AAA,BBB/_operations/reactive-re-deploy</reactive-re-deploy>

 

      <touch>/api/running/services/test:test/AAA,BBB/_operations/touch</touch>

 

      <get-modifications>/api/running/services/test:test/AAA,BBB/_operations/get-modifications</get-modifications>

 

      <un-deploy>/api/running/services/test:test/AAA,BBB/_operations/un-deploy</un-deploy>

 

    </y:operations>

 

  </test>

 

</collection>

 

 

 

Best Regards,

 

  .:|:.:|:. Michel Papiashvili

khgrant
Cisco Employee

 

I just noticed “mano” is also part of the key, so your URL should be (replaced “/” with commas “,”):

 

 

http://localhost:8080/api/running/vpc-mme-sae-gw/mano,vpc_di_SAEGW,ESC0/_operations/check_sync

 

 

Best Regards,

 

 

.:|:.:|:. Michel Papiashvili

 

khgrant
Cisco Employee

 

Hi team – has anyone done any automation work with Stealthwatch product using NSO?  Thanks in advance.

 

 
Nick Khemani

Content for Community-Ad

This widget could not be displayed.