View Repositories

Details

API DetailsRelease-Specific Information
CloudCenter Platform 4xCloudCenter Suite 5x
NameView Repositories
Description

Displays information for all configured repositories or for a specified repository

Allowed Role(s)WM_USER
MethodGET
URI
  • repositories
  • repositories/repositoryId
  • cloudcenter-ccm-backend/api/repositories
  • cloudcenter-ccm-backend/api/repositories/repositoryId
Sample Request
curl -k -X GET -H "Accept: application/json" -u cloudcenteradmin:40E45DBE57E35ECB "https://<HOST>:<PORT>/repositories/repositoryId"  
curl -k -X GET -H "Accept: application/json" -u cloudcenteradmin:40E45DBE57E35ECB "https://<HOST>:<PORT>/cloudcenter-ccm-backend/api/repositories/repositoryId"  
Release

Introduced in CloudCenter 4.8

Modified in CloudCenter Suite 5.0.0

Notes
  • Only resource owners and users with WRITE perms can view all the fields for this resource.
  • Other users can only view common fields like name, description, and so forth. See Permission Control for additional context.
Back To LinksCloudCenter Platform 4x APIWorkload Manager API

ESB Header

  • action: get.repositories
  • action: get.repositories.repositoryId

See the Enterprise Service Bus (ESB) section for additional context.

Not applicable

Sample Response 1 – repositories/repositoryId

curl -k -X GET -H "Accept: application/json" -u cloudcenteradmin:40E45DBE57E35ECB "https://<HOST>:<PORT>/repositories/5"  

Response

{
   "id":"5",
   "resource":"https://<HOST>:<PORT>/repositories/5",
   "perms":[
      "delete",
      "administration",
      "write",
      "read"
   ],
   "displayName":"S3",
   "description":"Standard S3 Repository",
   "type":"AMAZON_S_3",
   "hostname":null,
   "port":null,
   "usernamePassword":null,
   "sslCredential":null,
   "bucketName":"s3.cliqrtech.com",
   "region":"US_EAST_2",
   "accessKey":"===redacted===",
   "accessSecret":"===redacted===",
   "chefUser":null,
   "chefUserKey":null,
   "trustedCert":null,
   "chefValidationKey":null,
   "certname":null,
   "bundleStore":false
}

Example 2 – All Configured Repositories

curl -k -X GET -H "Accept: application/json" -u cloudcenteradmin:40E45DBE57E35ECB "https://<HOST>:<PORT>/reositories"  

Response

{
   "resource":"https://<HOST>:<PORT>/repositories",
   "size":0,
   "pageNumber":0,
   "totalElements":0,
   "totalPages":0,
   "repositories":[
      {
         "id":"1",
         "resource":"https://<HOST>:<PORT>/repositories/1",
         "perms":[
            "delete",
            "administration",
            "write",
            "read"
         ],
         "displayName":"Artifactory",
         "description":"Standard Artifactory Repository",
         "type":"ARTIFACTORY",
         "hostname":"artifactory.cliqrtech.com",
         "port":8081,
         "usernamePassword":{
            "username":"admin",
            "password":"===redacted==="
         },
         "sslCredential":{
            "privateKey":"",
            "certChain":"",
            "trustedCert":""
         },
         "bucketName":null,
         "region":null,
         "accessKey":null,
         "accessSecret":null,
         "chefUser":null,
         "chefUserKey":null,
         "trustedCert":null,
         "chefValidationKey":null,
         "certname":null,
         "bundleStore":false
      },
      {
         "id":"2",
         "resource":"https://<HOST>:<PORT>/repositories/2",
         "perms":[
            "delete",
            "administration",
            "write",
            "read"
         ],
         "displayName":"FTP",
         "description":"Standard FTP Repository",
         "type":"FTP",
         "hostname":"ftp.cliqrtech.com",
         "port":21,
         "usernamePassword":{
            "username":"ftp-user",
            "password":"===redacted==="
         },
         "sslCredential":null,
         "bucketName":null,
         "region":null,
         "accessKey":null,
         "accessSecret":null,
         "chefUser":null,
         "chefUserKey":null,
         "trustedCert":null,
         "chefValidationKey":null,
         "certname":null,
         "bundleStore":false
      },
      {
         "id":"4",
         "resource":"https://<HOST>:<PORT>/repositories/4",
         "perms":[
            "delete",
            "administration",
            "write",
            "read"
         ],
         "displayName":"HTTPS",
         "description":"Standard HTTPS Repository",
         "type":"HTTPS",
         "hostname":"https.cliqrtech.com",
         "port":443,
         "usernamePassword":{
            "username":"",
            "password":""
         },
         "sslCredential":null,
         "bucketName":null,
         "region":null,
         "accessKey":null,
         "accessSecret":null,
         "chefUser":null,
         "chefUserKey":null,
         "trustedCert":null,
         "chefValidationKey":null,
         "certname":null,
         "bundleStore":false
      },
      {
         "id":"5",
         "resource":"https://<HOST>:<PORT>/repositories/5",
         "perms":[
            "delete",
            "administration",
            "write",
            "read"
         ],
         "displayName":"S3",
         "description":"Standard S3 Repository",
         "type":"AMAZON_S_3",
         "hostname":null,
         "port":null,
         "usernamePassword":null,
         "sslCredential":null,
         "bucketName":"s3.cliqrtech.com",
         "region":"US_EAST_2",
         "accessKey":"===redacted===",
         "accessSecret":"===redacted===",
         "chefUser":null,
         "chefUserKey":null,
         "trustedCert":null,
         "chefValidationKey":null,
         "certname":null,
         "bundleStore":false
      },
      {
         "id":"6",
         "resource":"https://<HOST>:<PORT>/repositories/6",
         "perms":[
            "delete",
            "administration",
            "write",
            "read"
         ],
         "displayName":"AWS HTTP",
         "description":"",
         "type":"HTTP",
         "hostname":"===redacted===",
         "port":80,
         "usernamePassword":{
            "username":"",
            "password":""
         },
         "sslCredential":null,
         "bucketName":null,
         "region":null,
         "accessKey":null,
         "accessSecret":null,
         "chefUser":null,
         "chefUserKey":null,
         "trustedCert":null,
         "chefValidationKey":null,
         "certname":null,
         "bundleStore":false
      },
      {
         "id":"7",
         "resource":"https://<HOST>:<PORT>/repositories/7",
         "perms":[
            "delete",
            "administration",
            "write",
            "read"
         ],
         "displayName":"egdmz",
         "description":"",
         "type":"HTTP",
         "hostname":"egdmz.cisco.com",
         "port":80,
         "usernamePassword":{
            "username":"",
            "password":""
         },
         "sslCredential":null,
         "bucketName":null,
         "region":null,
         "accessKey":null,
         "accessSecret":null,
         "chefUser":null,
         "chefUserKey":null,
         "trustedCert":null,
         "chefValidationKey":null,
         "certname":null,
         "bundleStore":false
      },
      {
         "id":"13",
         "resource":"https://<HOST>:<PORT>/repositories/13",
         "perms":[
            "delete",
            "administration",
            "write",
            "read"
         ],
         "displayName":"aws",
         "description":"",
         "type":"HTTP",
         "hostname":"===redacted===",
         "port":80,
         "usernamePassword":{
            "username":"",
            "password":""
         },
         "sslCredential":null,
         "bucketName":null,
         "region":null,
         "accessKey":null,
         "accessSecret":null,
         "chefUser":null,
         "chefUserKey":null,
         "trustedCert":null,
         "chefValidationKey":null,
         "certname":null,
         "bundleStore":false
      },
      {
         "id":"14",
         "resource":"https://<HOST>:<PORT>/repositories/14",
         "perms":[
            "delete",
            "administration",
            "write",
            "read"
         ],
         "displayName":"dmz180",
         "description":"",
         "type":"HTTP",
         "hostname":"demo.cisco.com",
         "port":80,
         "usernamePassword":{
            "username":"",
            "password":""
         },
         "sslCredential":null,
         "bucketName":null,
         "region":null,
         "accessKey":null,
         "accessSecret":null,
         "chefUser":null,
         "chefUserKey":null,
         "trustedCert":null,
         "chefValidationKey":null,
         "certname":null,
         "bundleStore":false
      },
      {
         "id":"16",
         "resource":"https://<HOST>:<PORT>/repositories/16",
         "perms":[
            "delete",
            "administration",
            "write",
            "read"
         ],
         "displayName":"http_ramya",
         "description":"",
         "type":"HTTP",
         "hostname":"env.cliqrtech.com",
         "port":80,
         "usernamePassword":{
            "username":"",
            "password":""
         },
         "sslCredential":null,
         "bucketName":null,
         "region":null,
         "accessKey":null,
         "accessSecret":null,
         "chefUser":null,
         "chefUserKey":null,
         "trustedCert":null,
         "chefValidationKey":null,
         "certname":null,
         "bundleStore":false
      },
      {
         "id":"17",
         "resource":"https://<HOST>:<PORT>/repositories/17",
         "perms":[
            "delete",
            "administration",
            "write",
            "read"
         ],
         "displayName":"velhttp",
         "description":"",
         "type":"HTTP",
         "hostname":"===redacted===",
         "port":80,
         "usernamePassword":{
            "username":"",
            "password":""
         },
         "sslCredential":null,
         "bucketName":null,
         "region":null,
         "accessKey":null,
         "accessSecret":null,
         "chefUser":null,
         "chefUserKey":null,
         "trustedCert":null,
         "chefValidationKey":null,
         "certname":null,
         "bundleStore":false
      },
      {
         "id":"18",
         "resource":"https://<HOST>:<PORT>/repositories/18",
         "perms":[
            "delete",
            "administration",
            "write",
            "read"
         ],
         "displayName":"egsus",
         "description":"~",
         "type":"HTTP",
         "hostname":"egsus.cisco.com",
         "port":80,
         "usernamePassword":{
            "username":"",
            "password":""
         },
         "sslCredential":null,
         "bucketName":null,
         "region":null,
         "accessKey":null,
         "accessSecret":null,
         "chefUser":null,
         "chefUserKey":null,
         "trustedCert":null,
         "chefValidationKey":null,
         "certname":null,
         "bundleStore":false
      },
      {
         "id":"15",
         "resource":"https://<HOST>:<PORT>/repositories/15",
         "perms":[
            "delete",
            "administration",
            "write",
            "read"
         ],
         "displayName":"envcliqrtech",
         "description":"",
         "type":"HTTP",
         "hostname":"env.cliqrtech.com",
         "port":80,
         "usernamePassword":{
            "username":"dummyuser",
            "password":"===redacted==="
         },
         "sslCredential":null,
         "bucketName":null,
         "region":null,
         "accessKey":null,
         "accessSecret":null,
         "chefUser":null,
         "chefUserKey":null,
         "trustedCert":null,
         "chefValidationKey":null,
         "certname":null,
         "bundleStore":false
      }
   ]
}


Request Attributes

repositoryId
  • Description: Unique, system-generated identifier for the repository.  See the Artifact Repository and the Create and Share Artifact Repositories sections for the relevant release for additional context. This ID refers to the location where the exported CloudCenter ZIP file is stored.
  • Type: String

Response Attributes

repositories
  • Description: Identifies attributes for stores and repositories. See Artifact Repository for additional context
  • Type: Array of mapped attribute

    id
    • DescriptionUnique, system-generated identifier for this CloudCenter Resource.

    • Type: String
    resource
    • Description: Unique URL to access this resource.
    • Type: String
    perms (click for additional details)
    displayName
    • DescriptionA descriptive name for this CloudCenter resource.
    • Type: String
    hostName
    • Description: The DNS host name for this VM.

    • Type: String
    protocol
    • Description: Defines the protocol to be used by VMs running this service.
    • Type: Enumeration:

      ProtocolDescription
      TCPTransmission Control Protocol
      UDPUser Datagram Protocol
    description
    • DescriptionA brief description for this CloudCenter Resource.

    • Type: String
    port
    • Description: Identifies the port used by the Artifact Repository server or the Container.
    • Type: Integer



  • No labels
Terms & Conditions Privacy Statement Cookies Trademarks