Download Logs

Details

API Details
NameDownload Logs
Description

Download logs for the CCO or CCM components. See Download Log File  for additional context.

MethodGET
URI
  • v1/downloadLogs?componentType=CCM (CCM)
  • v1/downloadLogs?componentType=CCO&regionId=CCORegionId  (CCO)
CloudCenter ReleaseIntroduced in CloudCenter 4.7.0.
Notes
  • For additional context on <PORT> usage in the following example(s), see Base URI Format.
  • Users with the following permissions can download log files:

    ServerAPI Permissions
    CCMOnly root admin
    CCOAny tenant admin with the following permissions:
    • Has access to the cloud region
    • Has a user cloud account configured on the CCO
ESB Header
  • action (CCM): get.downloadLogs
    actionparam:
    componentType=CCM 
  • action (CCO): get.logs
    actionparam:
    componentType=CCO&regionId=CCORegionId

Example 1 – CCM

curl -k -X GET -H "Accept: application/json" -u cliqradmin:40E45DBE57E35ECB "https://<HOST>:<PORT>/ v1/downloadLogs?componentType=CCM" 

Response

When you issue this API request, you receive a browser popup requesting permission to open the downloaded file. The content of the downloaded CCM file is similar to the following example.

2017-01-06 10:07:57.063] [INFO] com.osmosix.mgmt.bootstrap.CCMX509BootstrapTask [localhost-startStop-1] executing CCMX509BootstrapTask 
[2017-01-06 10:07:57.064] [INFO] com.osmosix.commons.security.authentication.X509BootstrapTask [localhost-startStop-1] executing X509BootstrapTask 
[2017-01-06 10:07:57.064] [INFO] com.osmosix.commons.security.authentication.CliqrX509UserDetailsService [localhost-startStop-1] Cloud Center ID: devCloudCenter 
[2017-01-06 10:07:57.065] [INFO] com.osmosix.commons.security.authentication.CliqrX509UserDetailsService [localhost-startStop-1] Cloud Center Common Name: devCC 
[2017-01-06 10:07:57.122] [INFO] com.osmosix.mgmt.app.impl.AppManagementServiceImpl [localhost-startStop-1] Init of the distributed job template repository. 
[2017-01-06 10:07:57.268] [INFO] com.osmosix.mgmt.content.impl.DistributedJobTemplateContentReadWriteImpl [localhost-startStop-1] Defining/updating the nt profile content template. 
[2017-01-06 10:07:57.385] [INFO] com.osmosix.mgmt.app.impl.AppManagementServiceImpl [localhost-startStop-1] Init of the migration service framework helper. 
[2017-01-06 10:07:57.385] [INFO] com.osmosix.mgmt.content.impl.DistributedJobTemplateRepositoryImpl [localhost-startStop-1] Db Migrated :true 
[2017-01-06 10:07:57.387] [INFO] com.osmosix.mgmt.service.MigrationToServiceLifecycleFrameworkHelper [localhost-startStop-1] MigrationToServiceLifecycleFrameworkHelper: Check Migrate to slm: false 
[2017-01-06 10:07:57.438] [INFO] org.springframework.web.context.ContextLoader [localhost-startStop-1] Root WebApplicationContext: initialization completed in 238670 ms 
[2017-01-06 10:07:57.762] [INFO] org.springframework.web.servlet.DispatcherServlet [localhost-startStop-1] FrameworkServlet 'mgmtserver': initialization started 
[2017-01-06 10:07:57.789] [INFO] 
...

Example 2 – CCO

curl -k -X GET -H "Accept: application/json" -u cliqradmin:40E45DBE57E35ECB "https://<HOST>:<PORT>/ v1/downloadLogs?componentType=CCO&regionId=1" 

Response

When you issue this API request, you receive a browser popup requesting permission to open the downloaded file. The content of the downloaded CCO file is similar to the following example.

[2017-01-06 10:08:28.334] [INFO] com.osmosix.commons.security.authentication.X509BootstrapTask [localhost-startStop-1] executing X509BootstrapTask 
[2017-01-06 10:08:28.337] [INFO] com.osmosix.commons.security.authentication.CliqrX509UserDetailsService [localhost-startStop-1] Cloud Center ID: devCloudCenter 
[2017-01-06 10:08:28.414] [INFO] com.osmosix.commons.security.authentication.CliqrX509UserDetailsService [localhost-startStop-1] Cloud Center Common Name: devCC 
[2017-01-06 10:08:28.831] [INFO] com.osmosix.gateway.lifecycle.persistence.LifecyclePortableFactory [localhost-startStop-1] Disabling Lifecycle stubs from factory 
[2017-01-06 10:08:28.839] [INFO] com.osmosix.gateway.config.impl.GatewayConfigurationServiceImpl [localhost-startStop-1] Event Context id org.springframework.web.context.WebApplicationContext: ,name Root WebApplicationContext 
[2017-01-06 10:08:28.840] [INFO] com.osmosix.gateway.config.impl.GatewayConfigurationServiceImpl [localhost-startStop-1] Inject Context id org.springframework.web.context.WebApplicationContext: ,name Root WebApplicationContext 
[2017-01-06 10:08:49.340] [INFO] com.osmosix.gateway.config.impl.GatewayConfigurationServiceImpl [localhost-startStop-1] Unable to retrieve cloud information from management server for cloud type: Amazon_N_cloud-us-west-1. 
[2017-01-06 10:08:58.651] [INFO] com.osmosix.gateway.policy.GatewayPolicyServiceImpl [localhost-startStop-1] Inject Context id org.springframework.web.context.WebApplicationContext: ,name Root WebApplicationContext 
...

Request Attributes

componentType
  • Description: A string that identifies the component server for the log file download.
  • Type: Enumeration

    EnumerationDescription
    CCMThe CCM component
    CCOThe CCO component

regionId
  • DescriptionUnique, system-generated identifier for the cloud region 
  • Type: String

The region identifier for the CCO

Response Attributes

None

 

  • No labels