Analysis: Entity

Analysis: Entity

#340610

Description

The /analysis/<platformType>/<platformSubType> resource is used to return a list of analyses currently in the Densify system. The /analysis/<platformType>/<platformSubType>/<analysisId> resource is used to return the details of a specific analysis currently in Densify. An analysis entity encompasses infrastructure resources within a predefined environment scope, specific to the platform and cloud vendor. The infrastructure resources are analyzed to determine optimal recommendations.

See Analysis: Cloud and Analysis: Containers for the two platform types of analyses supported in Densify.

Resource

/analysis/<platformType>/<platformSubType>

/analysis/<platformType>/<platformSubType>/<analysisId>

Supported Operations

Table: Analysis Supported Operations

Operation

HTTP Method

Input

Output

Description

List all analyses for a particular platform and vendor

GET /analysis/<platformType>/<platformSubType>

Path Parameter:

Collection of:

Use this resource to return a list of existing analyses for a particular platform and sub-platform (vendor).

Example: Listing All Kubernetes Container Analyses

Example: Listing All AWS Analyses

Example: Listing All Azure Analyses

Get a specific analysis

GET /analysis/<platformType>/<platformSubType>/<analysisId>

Path Parameter:

Use this resource to return a specific analysis with a known analysis ID.

Example: Getting Details of a Specific Kubernetes Container Analysis

Parameters

Path Parameters

Table: Analysis Path Parameters

Parameter Name

Type

Description

platformType

string

[cloud|containers]

The technology platform of the analysis.

platformSubType

string

The platform sub-type of the analysis. This is typically the vendor/flavor of the technology platform.

Possible platform sub-types depend on the platformType specified:

  • For platformType = cloud, platformSubType = [aws|gcp|azure]
  • For platformType = containers, platformSubType = [kubernetes]

analysisId

string

The unique referenced ID of the analysis.

Response

Table: Analysis Response Schema

Element

Type

Filter/Sort

Description

accountId

string

 

The technology account identifier (i.e. AWS account number, Azure subscription ID, GCP project ID, etc.).

This element is not returned for container analyses.

 

accountName

string

 

The technology platform account name (e.g. AWS account name).

This element is not returned for container analyses.

 

analysisCompletedOn

string

 

The date and time (in milliseconds) when the last analysis completed.

If an analysis has never been completed, "0" is returned.

analysisId

string

 

The unique identifier for the analysis entity in Densify.

analysisName

string

Filter by:

  • analysisName
  • analysisName_like

The name given to the analysis entity.

The analysis name typically corresponds to the cluster name, account ID, subscription ID, or project ID from the infrastructure data collected.

Use the analysisName and analysisName_like filter to return only analyses you are interested in. For example, /cloud/aws?analysisName_like=bob will return all AWS analyses with a "bob" substring in the analysis name.

analysisResults

string

 

The referenced resource to the recommendations of the analysis.

For details of the various analysis recommendations, see:

analysisStatus

string

 

The referenced resource to the status of the analysis.

See Analysis: Status for details.

href

string

 

The referenced resource to the analysis entity.

message

string

 

For errors, the message for the status response is returned.

policyInstanceId

string

 

The Densify policy instance GUID used for optimization analysis.

 

policyName

string

 

The Densify policy name used for optimization analysis.

 

status

number

 

The HTTP response code of the request error. Possible status values include:

  • 200—success with request;
  • 400—invalid parameters;
  • 401—authentication failed;
  • 404—resource not found;
  • 500—internal server error.

Examples

Example: Listing All Kubernetes Container Analyses

The following example shows you how to list all Kubernetes container analyses in Densify.

Example: Listing All AWS Analyses

The following example shows you how to list all AWS analyses in Densify.

Example: Listing All Azure Analyses

The following example shows you how to list all Azure analyses in Densify.

Example: Listing All GCP Analyses

The following example shows you how to list all GCP analyses in Densify.

Example: Getting Details of a Specific Kubernetes Container Analysis

The following example shows you how to get the details of a Kubernetes container analysis in Densify with a known analysis ID.