Connect to Apsara DevOps Flow
After you connect pipelines in an Apsara DevOps organization to a Digital Employee, conversations and long-running tasks can access these pipelines within the selected scope.
Prerequisites
-
A Digital Employee has been created.
-
An accessible Apsara DevOps organization is available, along with a personal access token (PAT) that has read-only permissions on pipelines in that organization.
-
When you use a Region site, the organization has enabled Internet access. If the organization is configured with an IP whitelist, add the STAROps egress IP to the whitelist.
Procedure
1. Open Pipeline
Click Settings > Connectors > Pipeline.
2. Select Apsara DevOps Flow
-
Click Add pipeline.
-
Select Apsara DevOps Flow.
-
Click Next.
3. Enter the connection method
-
Connector ID: Uniquely identifies the connector and cannot be modified after creation. Rules: 1 to 64 characters, consisting of only lowercase letters, digits, and hyphens, starting with a letter and ending with a letter or digit.
-
Name: Used to distinguish connections in the list.
-
Select the Apsara DevOps site:
-
Central site: Connects to Apsara DevOps central-site organizations discoverable by the current Alibaba Cloud account.
-
Region site: After you select a region, the system automatically loads the organizations that can be connected and their Internet access domains.
-
A Region site must have Internet access enabled before STAROps can connect to it. To ensure security, we recommend that you configure a whitelist for the STAROps egress IP.
-
-
Custom account: Manually enter the site type, organization, access domain, and account information of another account.
-
4. Configure the organization and credentials
-
Select the organization to connect to. If no manageable organization is found under the current account, check the account's management permissions on Apsara DevOps.
-
Enter the personal access token (PAT) for that organization.
-
For the steps to obtain a personal access token, see Obtain an access token. We recommend that you set a longer validity period to avoid frequent connector updates. You can grant read-only or read-write permissions as needed.
-
-
Click Verify pipeline permissions. After verification succeeds, the page displays the current account and you can proceed to the access scope.
A saved token is not displayed again. You must re-enter the PAT when you verify again.
-
Note: If the PAT is valid but has no permission to access the selected organization, replace it with a PAT for that organization. If verification fails for a Region site, also check the PAT and the organization's dedicated domain.
-
5. Select pipelines
In Access scope, select the pipelines that this connector is allowed to access. You can search by name. After you confirm, click Next.
If the PAT cannot read the pipelines of the selected organization, grant read-only pipeline permissions and try again.
6. Configure data modeling
-
Basic modeling: Always on. After the connector is created, the selected pipelines and their basic relationships are modeled.
-
Agentic relationship exploration: Optional. After basic modeling, it explores cross-source relationships with applications, infrastructure, observable data, and more. Modeling starts conversations and is billed based on the selected model and actual usage.
7. Check and save
In Check and add, verify the connector ID, site, organization, the number of selected pipelines, and the modeling configuration. Then click Finish.
After you save, the system checks the connection status. The connector appears in the Pipeline list.
Verification
We recommend that you verify whether the connector is added successfully as follows:
-
In the Pipeline list, the connector's name, type (Apsara DevOps Flow), status (Succeeded), organization, and number of selected pipelines are consistent with what you configured.
-
Open the details and verify Connection and authentication and Organization and pipelines.
FAQ
Failed to load Apsara DevOps organizations, or a message indicates no permission to view organizations
The current Alibaba Cloud account cannot list Apsara DevOps organizations. Contact your administrator for authorization and try again. For a Region site, also make sure the account has permission to view Region organizations.
The PAT is invalid
Check whether the token has expired and whether it belongs to the selected organization. For a Region site, also check the organization's dedicated domain.
Connection verification failed
Check the organization domain and the Internet access configuration. If the organization indicates that an IP whitelist is required, add the STAROps egress IP to the organization's whitelist before you continue.
Pipeline permission verification failed, or the access scope failed to load
Make sure the PAT has read-only pipeline permissions, check the network, and try again.
A message indicates that the connector ID already exists when saving
Change the connector ID and try again.
The connector status is Failed
You can recheck the connection status. If it still fails, delete the connector and create a new one.