View Deployments and VMs

Details

API DetailsRelease-Specific Information
CloudCenter Platform 4xCloudCenter Suite 5x
NameView Deployments and VMs
Description

Displays a a complete list of deployments and virtual machines as explained in the Transferring Ownership use case.

Allowed Role(s)WM_USER
MethodGET
URI

v1/acls/transfer/sourceUserId/resources

cloudcenter-ccm-backend/api/v1/acls/transfer/sourceUserId/resources

Sample Request
curl -k -X GET -H "Accept: application/json" -u cloudcenteradmin:40E45DBE57E35ECB "https://<HOST>:<PORT>/v1/acls/transfer/4/resources"
curl -k -X GET -H "Accept: application/json" -u cloudcenteradmin:40E45DBE57E35ECB "https://<HOST>:<PORT>/cloudcenter-ccm-backend/api/v1/acls/transfer/4/resources"
Release

Introduced in CloudCenter 4.8.1

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.
  • The resources attribute is mandatory in the request URI.
Back To LinksCloudCenter Platform 4x APIWorkload Manager API

ESB Header

action: create.acls.transfer.sourceUserId.resources

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

Not applicable

Sample Response

{
   "deployments":[
      {
         "id":"82",
         "resource":"https://<HOST>:<PORT>/v2/jobs/82",
         "properties":[
            {
               "key":"name",
               "value":"TestAgentUpgrade1"
            }
         ]
      },
      {
         "id":"96",
         "resource":"https://<HOST>:<PORT>/v2/jobs/96",
         "properties":[
            {
               "key":"name",
               "value":"VenTest1"
            }
         ]
      }
   ],
   "virtualMachines":[
      {
         "id":"9",
         "resource":"https://<HOST>:<PORT>/v1/virtualMachines/9",
         "properties":[
            {
               "key":"node_id",
               "value":"i-0b14b8538db22a2f9"
            }
         ]
      }
   ]
}

Request Attributes

sourceUserId
  • DescriptionUnique, system-generated identifier for a user whose resource ownership needs to be transferred as specified in the Transferring Ownership user case.

  • Type: String

Required

Response Attributes

deployments
  • Description: List of deployments attached to the phase.

  • Type: Array of deployments

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

    • Type: String
    resource
    • Description: Unique URL to access this resource.
    • Type: String


    properties
    • Description: Information about the resource property
    • Type: Array of name-value pairs

      name
      • DescriptionThe name assigned for this CloudCenter ResourceValid characters are letters, numbers, underscores, and spaces.

      • Type: String

      value
      • Description: Indicates the set value for this property
      • Type: Float

virtualMachines
  • Description: List of VMs attached to the phase.

  • Type: Array of VMs

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

    • Type: String
    resource
    • Description: Unique URL to access this resource.
    • Type: String
    properties
    • Description: Information about the resource property
    • Type: Array of name-value pairs

      name
      • DescriptionThe name assigned for this CloudCenter ResourceValid characters are letters, numbers, underscores, and spaces.

      • Type: String

      value
      • Description: Indicates the set value for this property
      • Type: Float



  • No labels
© 2017-2019 Cisco Systems, Inc. All rights reserved