RE: 1. I can’t get job status using GET: /cce/jobmanager/jobs
Instance and lifecycle operations currently return a job reference (job id and nodeAlias) for a job executed on the remote node without a ‘wrapper’ job on CCE. The difference is that CCE does not monitor their progress/status and to do that from the client you need to use a slightly different REST API which requires you to track/know the nodeAlias in addition to jobId
NOTE1: that such jobs do not show up in the CC Web UI Jobs view as well. You can only ‘see’ them via the above API.
RE: 2. When new instance is created it doesn’t have any licenses.
Yes, this is a limitation in 9.6/9.7 - the license file cannot be provided as part of the instance creation and has to be applied afterwards.
NOTE: that in 9.8 we added optional parameters including license.file and db.xxx parameters for DB connection
As far your particular issue - I see to mistakes:
- If you created a new instance with a name other than ‘default’, say ‘inst1’, then runtime component ids for this instance are: OSGI-IS_inst1 and integrationServer-inst1. You are using OSGI-IS_default as for the ‘default’ instance
- COMMON-PORTS-DefaultPrimary is a port for integrationServer-inst1 component and not OSGI-IS_inst1. The correct command is
cc get configuration data local integrationServer-inst1 COMMON-PORTS-DefaultPrimary
Also NOTE that IS instance must be running in order for you to get this configuration.
Each REST API call should use information from the previous call. For example to request configuration data for a given configuration instance, first you need to get the list of configuration instances for this component. To get the list of components you need to ask component inventory, etc.
For more information please see http://en.wikipedia.org/wiki/HATEOAS and tons of links on the web.
In an ideal case you never construct URI, you always follow links from the previous call.
CCE REST API is not 100% there yet but it follows the general principle.
Hope this helps
I’m curios, what is the main use case / reason for using REST API instead of CC CLI and scripting?