# Alibaba Cloud Cloud Native Application Performance Optimizer API

> Alibaba Cloud Cloud Native Application Performance Optimizer API on Apizie: 27 endpoints (Change resource group, Check slr service role, Create Experiment Plan, Create/Update Test Plan Template, …) returned as clean JSON through one API key. Send your own provider key in the x-upstream-key header. Call it over REST at https://apizie.tech/v1/cloud:aliyun-eflo-cnp/{endpoint} or from Claude, ChatGPT and Cursor through the Apizie MCP server. Free plan: 1,000 requests a month.

- Project key: `cloud:aliyun-eflo-cnp`
- Category: Cloud
- Status: byok
- Source: https://api.alibabacloud.com/product/eflo-cnp
- Page: https://apizie.tech/api/cloud/aliyun-eflo-cnp
- OpenAPI: https://apizie.tech/api/cloud/aliyun-eflo-cnp/openapi.json

Alibaba Cloud OpenAPI for Cloud Native Application Performance Optimizer (eflo-cnp, version 2023-08-28). Calls are signed with ACS3-HMAC-SHA256 using your AccessKey ID and secret.

## Endpoints

### Change resource group
`POST https://apizie.tech/v1/cloud:aliyun-eflo-cnp/change-resource-group` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| ResourceType | string | no | The resource type |
| ResourceId | string | yes | The resource id |
| RegionId | string | no | Region Id |
| ResourceGroupId | string | yes | The resource group id |

### Check slr service role
`POST https://apizie.tech/v1/cloud:aliyun-eflo-cnp/check-service-linked-role-eflo-cnp-for-deleting` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| RoleArn | string | no | The Alibaba Cloud Resource Name (ARN) of the RAM role. The trusted entity of the RAM role is an Alibaba Cloud account. For more… |
| ServiceName | string | no | The Service Name |
| SPIRegionId | string | no | The ID of the region |
| DeletionTaskId | string | no | The ID of the deletion task |
| AccountId | string | no | The ID of the cloud account |

### Create Experiment Plan
`POST https://apizie.tech/v1/cloud:aliyun-eflo-cnp/create-experiment-plan` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| TemplateId | integer | yes | Template ID |
| ResourceId | integer | yes | Resource ID |
| ExternalParams | string | no | Additional parameters (JSON-encoded) |
| ResourceGroupId | string | no | Resource group ID |
| Tag | string | no | Resource tags (JSON-encoded) |
| PlanTemplateName | string | no | Plan Template Name |

### Create/Update Test Plan Template
`POST https://apizie.tech/v1/cloud:aliyun-eflo-cnp/create-experiment-plan-template` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| TemplateId | integer | no | Template ID |
| TemplateName | string | yes | Template Name |
| TemplateDescription | string | no | Template Description |
| PrivacyLevel | string | yes | Privacy Level |
| TemplatePipeline | string | yes | Template Pipeline (JSON-encoded) |

### Adds information about a cluster
`POST https://apizie.tech/v1/cloud:aliyun-eflo-cnp/create-resource` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| ClusterName | string | yes | The name of the cluster |
| ClusterDesc | string | no | The description of the cluster |
| ClusterId | string | yes | The ID of the cluster |
| MachineTypes | string | yes | The machine types (JSON-encoded) |
| UserAccessParam | string | yes | The user authorization parameters (JSON-encoded) |

### Delete Experiment
`POST https://apizie.tech/v1/cloud:aliyun-eflo-cnp/delete-experiment` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| ExperimentId | integer | yes | Plan ID |
| ResourceGroupId | string | no | Resource Group Id |

### Delete Experiment Plan
`POST https://apizie.tech/v1/cloud:aliyun-eflo-cnp/delete-experiment-plan` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| PlanId | integer | yes | Plan ID |

### Delete Test Plan Template
`POST https://apizie.tech/v1/cloud:aliyun-eflo-cnp/delete-experiment-plan-template` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| TemplateId | integer | yes | Template ID |

### Retrieves the details of an experiment
`POST https://apizie.tech/v1/cloud:aliyun-eflo-cnp/get-experiment` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| ExperimentId | integer | yes | The experiment ID |
| ResourceGroupId | string | no | Resource Group Id |

### Retrieves the details of an experiment plan
`POST https://apizie.tech/v1/cloud:aliyun-eflo-cnp/get-experiment-plan` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| PlanId | integer | yes | The ID of the plan |

### Queries the details of a test plan template
`POST https://apizie.tech/v1/cloud:aliyun-eflo-cnp/get-experiment-plan-template` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| TemplateId | integer | yes | The template ID |

### Fetch Experiment Result Data
`POST https://apizie.tech/v1/cloud:aliyun-eflo-cnp/get-experiment-result-data` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| ExperimentId | integer | yes | Experiment ID |
| Hostname | string | no | Hostname |
| WorkloadType | string | no | Workload Type |
| ResourceGroupId | string | no | Resource Group Id |

### Get Resource Information
`POST https://apizie.tech/v1/cloud:aliyun-eflo-cnp/get-resource` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| ClusterId | string | yes | The cluster ID of Lingjun |

### Query the resource prediction results of the test plan template
`POST https://apizie.tech/v1/cloud:aliyun-eflo-cnp/get-resource-predict-result` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| TemplateId | integer | yes | Template ID |
| ResourceId | integer | no | Resource ID |

### Retrieve workload information by ID
`POST https://apizie.tech/v1/cloud:aliyun-eflo-cnp/get-workload` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| WorkloadId | integer | yes | Workload ID |

### Query Test Plan Template List
`POST https://apizie.tech/v1/cloud:aliyun-eflo-cnp/list-experiment-plan-templates` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| PrivacyLevel | string | no | The sharing level of the template, default is private, options are public and private |

### Lists experiment plans
`POST https://apizie.tech/v1/cloud:aliyun-eflo-cnp/list-experiment-plans` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| ResourceName | string | no | The resources (JSON-encoded) |
| PlanTaskStatus | string | no | The execution status (JSON-encoded) |
| CreatTimeOrder | string | no | The sort order for the creation time |
| StartTimeOrder | string | no | The sort order for the start time |
| EndTimeOrder | string | no | The sort order for the end time |
| Page | integer | no | The page number |
| Size | integer | no | The number of entries per page |
| ResourceGroupId | string | no | The ID of the resource group |
| Tag | string | no | The tags (JSON-encoded) |
| TemplateId | integer | no | The template ID |
| ResourceId | integer | no | The resource ID |

### Retrieves a list of experiments
`POST https://apizie.tech/v1/cloud:aliyun-eflo-cnp/list-experiments` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| PlanId | integer | no | The plan ID |
| Order | integer | no | The order |
| ResourceGroupId | string | no | The resource group ID |

### Query Resource Tags
`POST https://apizie.tech/v1/cloud:aliyun-eflo-cnp/list-tag-resources` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| ResourceType | string | yes | Resource type |
| ResourceId | string | no | ResourceId (JSON-encoded) |
| Tag | string | no | The list of tags to be queried. The value range for N is 1~20 (JSON-encoded) |
| NextToken | string | no | Next token for the next query |

### Get Workload List
`POST https://apizie.tech/v1/cloud:aliyun-eflo-cnp/list-workloads` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| Scope | string | no | Scope |

### Stop Experiment
`POST https://apizie.tech/v1/cloud:aliyun-eflo-cnp/stop-experiment` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| ExperimentId | integer | yes | Plan ID |
| ResourceGroupId | string | no | Resource Group Id |

### Tag Resources with User Labels
`POST https://apizie.tech/v1/cloud:aliyun-eflo-cnp/tag-resources` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| ResourceType | string | yes | Resource type |
| ResourceId | string | yes | ResourceId (JSON-encoded) |
| Tag | string | yes | List of tags, up to 20 (JSON-encoded) |

### Remove User Tags from Resources
`POST https://apizie.tech/v1/cloud:aliyun-eflo-cnp/untag-resources` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| ResourceType | string | yes | Resource type |
| ResourceId | string | yes | Resource ID (JSON-encoded) |
| TagKey | string | yes | Tag key group, up to 20 items (JSON-encoded) |
| All | string | no | Whether to delete all, only effective when TagKey.N is empty. Allowed values: true, false, True, False. Default is false |

### Update Experiment Plan
`POST https://apizie.tech/v1/cloud:aliyun-eflo-cnp/update-experiment-plan` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| PlanId | integer | yes | Experiment plan ID |
| PlanTemplateName | string | yes | Experiment plan name |

### Update Test Plan Template
`POST https://apizie.tech/v1/cloud:aliyun-eflo-cnp/update-experiment-plan-template` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| TemplateId | integer | yes | Template code |
| TemplatePipeline | string | yes | Template pipeline (JSON-encoded) |

### Resource Connectivity Test
`POST https://apizie.tech/v1/cloud:aliyun-eflo-cnp/validate-resource` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| ClusterId | string | yes | Resource ID |
| UserAccessParam | string | no | User Authorization Parameters (JSON-encoded) |

### version
`POST https://apizie.tech/v1/cloud:aliyun-eflo-cnp/version` (byok)

## Example
```
curl "https://apizie.tech/v1/cloud:aliyun-eflo-cnp/change-resource-group" \
  -H "x-api-key: $APIZIE_KEY" \
  -H "x-upstream-key: $PROVIDER_KEY"
```

## FAQ

### How do I call the Alibaba Cloud Cloud Native Application Performance Optimizer API?
Create a free Apizie key, then send POST https://apizie.tech/v1/cloud:aliyun-eflo-cnp/change-resource-group with the header x-api-key. Every endpoint returns { project, data, timestamp }.

### Is the Alibaba Cloud Cloud Native Application Performance Optimizer API free on Apizie?
Yes. The Free plan includes 1,000 requests a month at 100 requests a minute, no credit card. Alibaba Cloud Cloud Native Application Performance Optimizer itself also needs your own key from aliyuncs.com.

### Can AI agents use the Alibaba Cloud Cloud Native Application Performance Optimizer API?
Yes. Add the Apizie MCP server (https://apizie.tech/mcp) to Claude, ChatGPT, Cursor or VS Code, then ask in plain language. The agent calls run_scraper with project key cloud:aliyun-eflo-cnp.

### What is the status of the Alibaba Cloud Cloud Native Application Performance Optimizer API?
Needs your own provider key (bring your own key)
