You can view the application blueprint associated with an application version and the specific node component details of the application blueprint.

Get Application Blueprint

Retrieves the application blueprint for an application version.

All of the Application Services roles can access this API.

HTTP Method

GET

URI Syntax

https://ApplicationServicesServerIP:8443/darwin/api/2.0/blueprint/ApplicationVersionID

You must type the URI syntax because the copy and paste operation removes formatting from the text.

Example URI syntax:

https://ApplicationServicesServerIP:8443/darwin/api/2.0/blueprint/598

Response

{
  "errors": false,
  "messageList": [],
  "result": {
    "id": "99",
    "lockVersion": 1,
    "nodes": [
      {
        "id": "98",
        "lockVersion": 1,
        "name": "AppServer",
        "description": "Application/web server tier node",
        "cluster": true,
        "clusterSize": 1,
        "memoryMb": 2048,
        "vcpuCount": 1,
        "hostname": "",
        "logicalTemplateVersionRef": {
          "uri": "/darwin/api/2.0/logical-template-version/313",
          "id": "313",
          "name": "W2K8 R2 Enterprise SP1 v1.0.0"
        },
        "osVersionRef": {
          "uri": "/darwin/api/2.0/operating-system-version/111",
          "id": "111",
          "name": "WIN64 v6.1.7601"
        },
        "serviceNodeComponents": [
[…]
          {
            "id": "498",
            "lockVersion": 0,
            "name": "IIS_with_.NET_W2K8R2",
            "description": null,
            "nodeComponentDetailsRef": {
              "uri": "/darwin/api/2.0/node-component-details/498",
              "id": "498",
              "name": "IIS_with_.NET_W2K8R2"
            },
            "serviceRef": {
              "uri": "/darwin/api/2.0/service-version/297",
              "id": "297",
              "name": "Microsoft IIS with .Net Framework on W2K8R2 v1.0.0"
            },
            "preinstalled": false,
            "applicationNodeComponents": [
              {
                "id": "495",
                "lockVersion": 0,
                "name": "DotShoppingCart_App",
                "description": null,
                "nodeComponentDetailsRef": {
                  "uri": "/darwin/api/2.0/node-component-details/495",
                  "id": "495",
                  "name": "DotShoppingCart_App"
                }
              }
            ]
          }
        ],
        "applicationNodeComponents": [],
        "disks": [
										{
	            "description": "disk to store archive data",
	            "id": "23",
	            "lockVersion": 2,
	            "name": "archives",
	            "properties": [
	                {
	                    "overrideable": true,
	                    "propertyDefinition": {
	                        "description": null,
	                        "id": "173683",
	                        "key": "ProvisionMode",
	                        "lockVersion": 0,
	                        "name": "ProvisionMode",
	                        "required": true,
	                        "secure": false,
	                        "type": "STRING"
	                    },
	                    "value": "THICK"
	                },
	                {
	                    "overrideable": true,
	                    "propertyDefinition": {
	                        "description": null,
	                        "id": "173684",
	                        "key": "DiskSize",
	                        "lockVersion": 0,
	                        "name": "DiskSize",
	                        "required": true,
	                        "secure": false,
	                        "type": "STRING"
	                    },
	                    "value": "100"
	                },
	                {
	                    "overrideable": true,
	                    "propertyDefinition": {
	                        "description": null,
	                        "id": "173685",
	                        "key": "FileSystem",
	                        "lockVersion": 0,
	                        "name": "FileSystem",
	                        "required": true,
	                        "secure": false,
	                        "type": "STRING"
	                    },
	                    "value": ""
	                },
	                {
	                    "overrideable": true,
	                    "propertyDefinition": {
	                        "description": null,
	                        "id": "173686",
	                        "key": "MountPoint",
	                        "lockVersion": 0,
	                        "name": "MountPoint",
	                        "required": true,
	                        "secure": false,
	                        "type": "STRING"
	                    },
	                    "value": "/database/archives"
	                }
	            ],
	            "tags": [
	                {
	                    "createUser": "SYSTEM",
	                    "created": 1385434700027,
	                    "description": "Disk to store archive files.",
	                    "id": "49",
	                    "lastUpdateUser": "SYSTEM",
	                    "lastUpdated": 1385434700027,
	                    "lockVersion": 1,
	                    "name": "Archive",
	                    "type": "Disk Type"
	                }
	            ]
	        }
				],
        "nics": [
          {
            "id": "98",
            "lockVersion": 1,
            "name": "NIC0",
            "description": null,
            "networkName": "ServiceNetwork"
          }
        ]
      },
 […]
    ],
    "dependencies": [
      {
        "id": null,
        "lockVersion": 0,
        "fromComponentId": "496",
        "toComponentId": "497"
      },
[…]
    ],
    "applicationVersionRef": {
      "uri": "/darwin/api/2.0/application-version/598",
      "id": "598",
      "name": "Clustered DotShoppingCart v1.0.0"
    }
  }
}

Get Node Component Information

Retrieves the node component information such as property details, scripts, and overridable node component values.

All of the Application Services roles can access this API.

HTTP Method

GET

URI Syntax

https://ApplicationServicesServerIP:8443/darwin/api/2.0/node-component-details/NodeComponentID

You must type the URI syntax because the copy and paste operation removes formatting from the text.

Example URI syntax:

https://ApplicationServicesServerIP:8443/darwin/api/2.0/node-component-details/495

Response

{
  "errors": false,
  "messageList": [],
  "result": {
    "id": "495",
    "lockVersion": 0,
    "properties": [
      {
        "propertyDefinition": {
          "id": "782",
          "lockVersion": 0,
          "name": null,
          "description": null,
          "key": "NODE_INDEX",
          "type": "STRING",
          "secure": false,
          "required": true
        },
        "value": "${['self']['host']['node_array_index']}",
        "overrideable": false
      },
[…]
    ],
    "scripts": [
      {
        "id": "140",
        "lockVersion": 1,
        "lifecycleStage": "INSTALL",
        "scriptType": "Windows Cmd Script",
        "script": "[…]\n",
        "rebootAfter": false
      },
[…]
    ]
  }
}