@alicloud/agentcore20260804 2.4.0 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +144 -24
- package/dist/client.js +335 -24
- package/dist/client.js.map +1 -1
- package/dist/models/CreateCustomAgentRequest.d.ts +63 -33
- package/dist/models/CreateCustomAgentRequest.js +27 -1
- package/dist/models/CreateCustomAgentRequest.js.map +1 -1
- package/dist/models/CreateCustomAgentResponseBody.d.ts +193 -41
- package/dist/models/CreateCustomAgentResponseBody.js +59 -1
- package/dist/models/CreateCustomAgentResponseBody.js.map +1 -1
- package/dist/models/CreateCustomAgentShrinkRequest.d.ts +1 -1
- package/dist/models/CreateImageCacheRequest.d.ts +122 -0
- package/dist/models/CreateImageCacheRequest.js +96 -0
- package/dist/models/CreateImageCacheRequest.js.map +1 -0
- package/dist/models/CreateImageCacheResponse.d.ts +19 -0
- package/dist/models/CreateImageCacheResponse.js +69 -0
- package/dist/models/CreateImageCacheResponse.js.map +1 -0
- package/dist/models/CreateImageCacheResponseBody.d.ts +260 -0
- package/dist/models/CreateImageCacheResponseBody.js +140 -0
- package/dist/models/CreateImageCacheResponseBody.js.map +1 -0
- package/dist/models/CreateImageCacheShrinkRequest.d.ts +50 -0
- package/dist/models/CreateImageCacheShrinkRequest.js +64 -0
- package/dist/models/CreateImageCacheShrinkRequest.js.map +1 -0
- package/dist/models/DeleteImageCacheRequest.d.ts +33 -0
- package/dist/models/DeleteImageCacheRequest.js +60 -0
- package/dist/models/DeleteImageCacheRequest.js.map +1 -0
- package/dist/models/DeleteImageCacheResponse.d.ts +19 -0
- package/dist/models/DeleteImageCacheResponse.js +69 -0
- package/dist/models/DeleteImageCacheResponse.js.map +1 -0
- package/dist/models/DeleteImageCacheResponseBody.d.ts +102 -0
- package/dist/models/DeleteImageCacheResponseBody.js +92 -0
- package/dist/models/DeleteImageCacheResponseBody.js.map +1 -0
- package/dist/models/GetCustomAgentResponseBody.d.ts +130 -66
- package/dist/models/GetCustomAgentResponseBody.js +31 -1
- package/dist/models/GetCustomAgentResponseBody.js.map +1 -1
- package/dist/models/GetImageCacheRequest.d.ts +33 -0
- package/dist/models/GetImageCacheRequest.js +60 -0
- package/dist/models/GetImageCacheRequest.js.map +1 -0
- package/dist/models/GetImageCacheResponse.d.ts +19 -0
- package/dist/models/GetImageCacheResponse.js +69 -0
- package/dist/models/GetImageCacheResponse.js.map +1 -0
- package/dist/models/GetImageCacheResponseBody.d.ts +264 -0
- package/dist/models/GetImageCacheResponseBody.js +140 -0
- package/dist/models/GetImageCacheResponseBody.js.map +1 -0
- package/dist/models/GetWorkspaceAcrRamAuthorizeUrlRequest.d.ts +2 -2
- package/dist/models/GetWorkspaceAcrRamAuthorizeUrlResponseBody.d.ts +23 -1
- package/dist/models/GetWorkspaceAcrRamAuthorizeUrlResponseBody.js.map +1 -1
- package/dist/models/ListImageCachesRequest.d.ts +113 -0
- package/dist/models/ListImageCachesRequest.js +80 -0
- package/dist/models/ListImageCachesRequest.js.map +1 -0
- package/dist/models/ListImageCachesResponse.d.ts +19 -0
- package/dist/models/ListImageCachesResponse.js +69 -0
- package/dist/models/ListImageCachesResponse.js.map +1 -0
- package/dist/models/ListImageCachesResponseBody.d.ts +290 -0
- package/dist/models/ListImageCachesResponseBody.js +146 -0
- package/dist/models/ListImageCachesResponseBody.js.map +1 -0
- package/dist/models/RetryImageCacheRequest.d.ts +60 -0
- package/dist/models/RetryImageCacheRequest.js +82 -0
- package/dist/models/RetryImageCacheRequest.js.map +1 -0
- package/dist/models/RetryImageCacheResponse.d.ts +19 -0
- package/dist/models/RetryImageCacheResponse.js +69 -0
- package/dist/models/RetryImageCacheResponse.js.map +1 -0
- package/dist/models/RetryImageCacheResponseBody.d.ts +264 -0
- package/dist/models/RetryImageCacheResponseBody.js +140 -0
- package/dist/models/RetryImageCacheResponseBody.js.map +1 -0
- package/dist/models/RetryImageCacheShrinkRequest.d.ts +48 -0
- package/dist/models/RetryImageCacheShrinkRequest.js +64 -0
- package/dist/models/RetryImageCacheShrinkRequest.js.map +1 -0
- package/dist/models/UpdateCustomAgentRequest.d.ts +68 -35
- package/dist/models/UpdateCustomAgentRequest.js +27 -1
- package/dist/models/UpdateCustomAgentRequest.js.map +1 -1
- package/dist/models/UpdateCustomAgentResponseBody.d.ts +184 -49
- package/dist/models/UpdateCustomAgentResponseBody.js +59 -1
- package/dist/models/UpdateCustomAgentResponseBody.js.map +1 -1
- package/dist/models/UpdateCustomAgentShrinkRequest.d.ts +2 -2
- package/dist/models/VerifyWorkspaceAcrRamAuthorizationResponseBody.d.ts +33 -3
- package/dist/models/VerifyWorkspaceAcrRamAuthorizationResponseBody.js.map +1 -1
- package/dist/models/model.d.ts +35 -0
- package/dist/models/model.js +157 -86
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +371 -24
- package/src/models/CreateCustomAgentRequest.ts +80 -33
- package/src/models/CreateCustomAgentResponseBody.ts +233 -41
- package/src/models/CreateCustomAgentShrinkRequest.ts +1 -1
- package/src/models/CreateImageCacheRequest.ts +164 -0
- package/src/models/CreateImageCacheResponse.ts +40 -0
- package/src/models/CreateImageCacheResponseBody.ts +337 -0
- package/src/models/CreateImageCacheShrinkRequest.ts +69 -0
- package/src/models/DeleteImageCacheRequest.ts +48 -0
- package/src/models/DeleteImageCacheResponse.ts +40 -0
- package/src/models/DeleteImageCacheResponseBody.ts +140 -0
- package/src/models/GetCustomAgentResponseBody.ts +151 -66
- package/src/models/GetImageCacheRequest.ts +48 -0
- package/src/models/GetImageCacheResponse.ts +40 -0
- package/src/models/GetImageCacheResponseBody.ts +341 -0
- package/src/models/GetWorkspaceAcrRamAuthorizeUrlRequest.ts +2 -2
- package/src/models/GetWorkspaceAcrRamAuthorizeUrlResponseBody.ts +23 -1
- package/src/models/ListImageCachesRequest.ts +148 -0
- package/src/models/ListImageCachesResponse.ts +40 -0
- package/src/models/ListImageCachesResponseBody.ts +373 -0
- package/src/models/RetryImageCacheRequest.ts +90 -0
- package/src/models/RetryImageCacheResponse.ts +40 -0
- package/src/models/RetryImageCacheResponseBody.ts +341 -0
- package/src/models/RetryImageCacheShrinkRequest.ts +67 -0
- package/src/models/UpdateCustomAgentRequest.ts +85 -35
- package/src/models/UpdateCustomAgentResponseBody.ts +224 -49
- package/src/models/UpdateCustomAgentShrinkRequest.ts +2 -2
- package/src/models/VerifyWorkspaceAcrRamAuthorizationResponseBody.ts +33 -3
- package/src/models/model.ts +35 -0
package/src/client.ts
CHANGED
|
@@ -503,8 +503,8 @@ export default class Client extends OpenApi {
|
|
|
503
503
|
* @remarks
|
|
504
504
|
* Before you call this operation, prepare a writable workspace, a RAM role ARN, an ACR container image, and a runtime configuration. You must specify name, artifact, roleArn, and runtime. The runtime parameter must include both compute and sessionPolicy.
|
|
505
505
|
* Currently, only ACR container image deployment is supported. Use artifact.container and specify the service listening port in artifact.port. Omit artifact.code. The image must have the required access permissions and be accessible over the network allowed by the workspace.
|
|
506
|
-
* The creation is an asynchronous process. A successful response indicates that the request is accepted. Use the returned agentId to call GetCustomAgent and check latestVersionStatus, latestExecutionError, and status for the corresponding latestSpecVersion to confirm the deployment result. After the deployment is ready, you can call CreateServiceEndpoint to configure
|
|
507
|
-
* The clientToken parameter does not currently provide idempotency guarantees. Do not rely on this parameter to prevent duplicate requests. The healthyThreshold parameter for health checks does not take effect. Omit this parameter.
|
|
506
|
+
* The creation is an asynchronous process. A successful response indicates that the request is accepted. Use the returned agentId to call GetCustomAgent and check latestVersionStatus, latestExecutionError, and status for the corresponding latestSpecVersion to confirm the deployment result. After the deployment is ready, you can call CreateServiceEndpoint to configure an access endpoint.
|
|
507
|
+
* The clientToken parameter does not currently provide idempotency guarantees. Do not rely on this parameter to prevent duplicate requests. The healthyThreshold parameter for health checks does not currently take effect. Omit this parameter.
|
|
508
508
|
*
|
|
509
509
|
* @param tmpReq - CreateCustomAgentRequest
|
|
510
510
|
* @param headers - map
|
|
@@ -554,8 +554,8 @@ export default class Client extends OpenApi {
|
|
|
554
554
|
* @remarks
|
|
555
555
|
* Before you call this operation, prepare a writable workspace, a RAM role ARN, an ACR container image, and a runtime configuration. You must specify name, artifact, roleArn, and runtime. The runtime parameter must include both compute and sessionPolicy.
|
|
556
556
|
* Currently, only ACR container image deployment is supported. Use artifact.container and specify the service listening port in artifact.port. Omit artifact.code. The image must have the required access permissions and be accessible over the network allowed by the workspace.
|
|
557
|
-
* The creation is an asynchronous process. A successful response indicates that the request is accepted. Use the returned agentId to call GetCustomAgent and check latestVersionStatus, latestExecutionError, and status for the corresponding latestSpecVersion to confirm the deployment result. After the deployment is ready, you can call CreateServiceEndpoint to configure
|
|
558
|
-
* The clientToken parameter does not currently provide idempotency guarantees. Do not rely on this parameter to prevent duplicate requests. The healthyThreshold parameter for health checks does not take effect. Omit this parameter.
|
|
557
|
+
* The creation is an asynchronous process. A successful response indicates that the request is accepted. Use the returned agentId to call GetCustomAgent and check latestVersionStatus, latestExecutionError, and status for the corresponding latestSpecVersion to confirm the deployment result. After the deployment is ready, you can call CreateServiceEndpoint to configure an access endpoint.
|
|
558
|
+
* The clientToken parameter does not currently provide idempotency guarantees. Do not rely on this parameter to prevent duplicate requests. The healthyThreshold parameter for health checks does not currently take effect. Omit this parameter.
|
|
559
559
|
*
|
|
560
560
|
* @param request - CreateCustomAgentRequest
|
|
561
561
|
* @returns CreateCustomAgentResponse
|
|
@@ -731,6 +731,77 @@ export default class Client extends OpenApi {
|
|
|
731
731
|
return await this.createIdentityProviderWithOptions(workspaceId, request, headers, runtime);
|
|
732
732
|
}
|
|
733
733
|
|
|
734
|
+
/**
|
|
735
|
+
* Creates an image cache.
|
|
736
|
+
*
|
|
737
|
+
* @remarks
|
|
738
|
+
* Creates or reuses an image cache in the current workspace based on the image source and tag. Both public and private images uniformly reuse the workspace\\"s source image pull authorization and resource roles. The resource manager parses the tag during the transfer node and performs image replication based on the parsed summary. The digest is empty before parsing is complete. For regular tags, the saved summary is reused after parsing. For the latest tag, it is parsed again when registered after reaching the desired state, and duplicate registrations in progress reuse the node. The logical imageId remains stable. accessInternet and accessVpc only determine the source reading and transfer for the current request and do not modify the agent network. An HTTP 200 response returns an acceptance snapshot of PENDING, READY, or FAILED, which does not indicate that the creation is complete. ClientToken does not guarantee to deduplicate requests or recover the original result. If the result is unconfirmed, query the query cache status first before deciding whether to recommit.
|
|
739
|
+
*
|
|
740
|
+
* @param tmpReq - CreateImageCacheRequest
|
|
741
|
+
* @param headers - map
|
|
742
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
743
|
+
* @returns CreateImageCacheResponse
|
|
744
|
+
*/
|
|
745
|
+
async createImageCacheWithOptions(tmpReq: $_model.CreateImageCacheRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.CreateImageCacheResponse> {
|
|
746
|
+
tmpReq.validate();
|
|
747
|
+
let request = new $_model.CreateImageCacheShrinkRequest({ });
|
|
748
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
749
|
+
if (!$dara.isNull(tmpReq.body)) {
|
|
750
|
+
request.bodyShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.body, "body", "json");
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
let query : {[key: string ]: any} = { };
|
|
754
|
+
if (!$dara.isNull(request.clientToken)) {
|
|
755
|
+
query["clientToken"] = request.clientToken;
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
if (!$dara.isNull(request.regionId)) {
|
|
759
|
+
query["regionId"] = request.regionId;
|
|
760
|
+
}
|
|
761
|
+
|
|
762
|
+
if (!$dara.isNull(request.workspaceId)) {
|
|
763
|
+
query["workspaceId"] = request.workspaceId;
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
let body : {[key: string ]: any} = { };
|
|
767
|
+
if (!$dara.isNull(request.bodyShrink)) {
|
|
768
|
+
body["body"] = request.bodyShrink;
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
772
|
+
headers: headers,
|
|
773
|
+
query: OpenApiUtil.query(query),
|
|
774
|
+
body: OpenApiUtil.parseToMap(body),
|
|
775
|
+
});
|
|
776
|
+
let params = new $OpenApiUtil.Params({
|
|
777
|
+
action: "CreateImageCache",
|
|
778
|
+
version: "2026-08-04",
|
|
779
|
+
protocol: "HTTPS",
|
|
780
|
+
pathname: `/image-caches`,
|
|
781
|
+
method: "POST",
|
|
782
|
+
authType: "AK",
|
|
783
|
+
style: "ROA",
|
|
784
|
+
reqBodyType: "formData",
|
|
785
|
+
bodyType: "json",
|
|
786
|
+
});
|
|
787
|
+
return $dara.cast<$_model.CreateImageCacheResponse>(await this.callApi(params, req, runtime), new $_model.CreateImageCacheResponse({}));
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
/**
|
|
791
|
+
* Creates an image cache.
|
|
792
|
+
*
|
|
793
|
+
* @remarks
|
|
794
|
+
* Creates or reuses an image cache in the current workspace based on the image source and tag. Both public and private images uniformly reuse the workspace\\"s source image pull authorization and resource roles. The resource manager parses the tag during the transfer node and performs image replication based on the parsed summary. The digest is empty before parsing is complete. For regular tags, the saved summary is reused after parsing. For the latest tag, it is parsed again when registered after reaching the desired state, and duplicate registrations in progress reuse the node. The logical imageId remains stable. accessInternet and accessVpc only determine the source reading and transfer for the current request and do not modify the agent network. An HTTP 200 response returns an acceptance snapshot of PENDING, READY, or FAILED, which does not indicate that the creation is complete. ClientToken does not guarantee to deduplicate requests or recover the original result. If the result is unconfirmed, query the query cache status first before deciding whether to recommit.
|
|
795
|
+
*
|
|
796
|
+
* @param request - CreateImageCacheRequest
|
|
797
|
+
* @returns CreateImageCacheResponse
|
|
798
|
+
*/
|
|
799
|
+
async createImageCache(request: $_model.CreateImageCacheRequest): Promise<$_model.CreateImageCacheResponse> {
|
|
800
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
801
|
+
let headers : {[key: string ]: string} = { };
|
|
802
|
+
return await this.createImageCacheWithOptions(request, headers, runtime);
|
|
803
|
+
}
|
|
804
|
+
|
|
734
805
|
/**
|
|
735
806
|
* Creates a managed agent in a specified workspace.
|
|
736
807
|
*
|
|
@@ -1652,6 +1723,61 @@ export default class Client extends OpenApi {
|
|
|
1652
1723
|
return await this.deleteIdentityProviderWithOptions(workspaceId, identityProviderType, request, headers, runtime);
|
|
1653
1724
|
}
|
|
1654
1725
|
|
|
1726
|
+
/**
|
|
1727
|
+
* Deletes an image cache.
|
|
1728
|
+
*
|
|
1729
|
+
* @remarks
|
|
1730
|
+
* Deletes the logical image cache of the current workspace. The deletion requires that no enabled agent configurations reference the cache and no active instances are using it. Concurrency is rechecked upon submission. Caches in the PENDING or FAILED state can still be deleted, and the backend handles the cleanup. An HTTP 200 response returns an imageId that matches the request. If deletionPending is true, the current workspace is still undergoing deletion, and a Get request returns DELETING until ImageCacheNotFound is explicitly returned. If false, the deletion is complete or the current workspace no longer exists. Usage by other workspaces does not block the deletion for the current workspace. The physical content is reclaimed only after all workspaces in the same region have removed their associations and no active instances are using it.
|
|
1731
|
+
*
|
|
1732
|
+
* @param request - DeleteImageCacheRequest
|
|
1733
|
+
* @param headers - map
|
|
1734
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
1735
|
+
* @returns DeleteImageCacheResponse
|
|
1736
|
+
*/
|
|
1737
|
+
async deleteImageCacheWithOptions(imageId: string, request: $_model.DeleteImageCacheRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.DeleteImageCacheResponse> {
|
|
1738
|
+
request.validate();
|
|
1739
|
+
let query : {[key: string ]: any} = { };
|
|
1740
|
+
if (!$dara.isNull(request.regionId)) {
|
|
1741
|
+
query["regionId"] = request.regionId;
|
|
1742
|
+
}
|
|
1743
|
+
|
|
1744
|
+
if (!$dara.isNull(request.workspaceId)) {
|
|
1745
|
+
query["workspaceId"] = request.workspaceId;
|
|
1746
|
+
}
|
|
1747
|
+
|
|
1748
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
1749
|
+
headers: headers,
|
|
1750
|
+
query: OpenApiUtil.query(query),
|
|
1751
|
+
});
|
|
1752
|
+
let params = new $OpenApiUtil.Params({
|
|
1753
|
+
action: "DeleteImageCache",
|
|
1754
|
+
version: "2026-08-04",
|
|
1755
|
+
protocol: "HTTPS",
|
|
1756
|
+
pathname: `/image-caches/${$dara.URL.percentEncode(imageId)}`,
|
|
1757
|
+
method: "DELETE",
|
|
1758
|
+
authType: "AK",
|
|
1759
|
+
style: "ROA",
|
|
1760
|
+
reqBodyType: "json",
|
|
1761
|
+
bodyType: "json",
|
|
1762
|
+
});
|
|
1763
|
+
return $dara.cast<$_model.DeleteImageCacheResponse>(await this.callApi(params, req, runtime), new $_model.DeleteImageCacheResponse({}));
|
|
1764
|
+
}
|
|
1765
|
+
|
|
1766
|
+
/**
|
|
1767
|
+
* Deletes an image cache.
|
|
1768
|
+
*
|
|
1769
|
+
* @remarks
|
|
1770
|
+
* Deletes the logical image cache of the current workspace. The deletion requires that no enabled agent configurations reference the cache and no active instances are using it. Concurrency is rechecked upon submission. Caches in the PENDING or FAILED state can still be deleted, and the backend handles the cleanup. An HTTP 200 response returns an imageId that matches the request. If deletionPending is true, the current workspace is still undergoing deletion, and a Get request returns DELETING until ImageCacheNotFound is explicitly returned. If false, the deletion is complete or the current workspace no longer exists. Usage by other workspaces does not block the deletion for the current workspace. The physical content is reclaimed only after all workspaces in the same region have removed their associations and no active instances are using it.
|
|
1771
|
+
*
|
|
1772
|
+
* @param request - DeleteImageCacheRequest
|
|
1773
|
+
* @returns DeleteImageCacheResponse
|
|
1774
|
+
*/
|
|
1775
|
+
async deleteImageCache(imageId: string, request: $_model.DeleteImageCacheRequest): Promise<$_model.DeleteImageCacheResponse> {
|
|
1776
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
1777
|
+
let headers : {[key: string ]: string} = { };
|
|
1778
|
+
return await this.deleteImageCacheWithOptions(imageId, request, headers, runtime);
|
|
1779
|
+
}
|
|
1780
|
+
|
|
1655
1781
|
/**
|
|
1656
1782
|
* Deletes a specified managed agent.
|
|
1657
1783
|
*
|
|
@@ -2693,12 +2819,12 @@ export default class Client extends OpenApi {
|
|
|
2693
2819
|
}
|
|
2694
2820
|
|
|
2695
2821
|
/**
|
|
2696
|
-
* Queries the details of a custom agent in a specified workspace, including
|
|
2822
|
+
* Queries the details of a custom agent in a specified workspace, including deployment configurations, the execute status of the latest configuration version, and the running instance status statistics.
|
|
2697
2823
|
*
|
|
2698
2824
|
* @remarks
|
|
2699
|
-
* After
|
|
2700
|
-
* The returned configuration is the
|
|
2701
|
-
* If
|
|
2825
|
+
* After you create or update a custom agent, you can poll this operation to query the execution result of the latest configuration version. `latestVersionStatus` corresponds to `latestSpecVersion`. `latestExecutionError` indicates the cause of the pending or failed status for this version. If `retryable` is true, you can query again later.
|
|
2826
|
+
* The returned configuration is the most recently submitted configuration and may not have taken effect. Verify the deployment and running status by checking `latestVersionStatus`, the overall agent status `status`, and the running instance statistics `sandboxPhaseCounts`.
|
|
2827
|
+
* If the queried custom agent does not exist, has been deleted, or does not belong to the specified workspace, a resource not found error is returned.
|
|
2702
2828
|
*
|
|
2703
2829
|
* @param request - GetCustomAgentRequest
|
|
2704
2830
|
* @param headers - map
|
|
@@ -2725,12 +2851,12 @@ export default class Client extends OpenApi {
|
|
|
2725
2851
|
}
|
|
2726
2852
|
|
|
2727
2853
|
/**
|
|
2728
|
-
* Queries the details of a custom agent in a specified workspace, including
|
|
2854
|
+
* Queries the details of a custom agent in a specified workspace, including deployment configurations, the execute status of the latest configuration version, and the running instance status statistics.
|
|
2729
2855
|
*
|
|
2730
2856
|
* @remarks
|
|
2731
|
-
* After
|
|
2732
|
-
* The returned configuration is the
|
|
2733
|
-
* If
|
|
2857
|
+
* After you create or update a custom agent, you can poll this operation to query the execution result of the latest configuration version. `latestVersionStatus` corresponds to `latestSpecVersion`. `latestExecutionError` indicates the cause of the pending or failed status for this version. If `retryable` is true, you can query again later.
|
|
2858
|
+
* The returned configuration is the most recently submitted configuration and may not have taken effect. Verify the deployment and running status by checking `latestVersionStatus`, the overall agent status `status`, and the running instance statistics `sandboxPhaseCounts`.
|
|
2859
|
+
* If the queried custom agent does not exist, has been deleted, or does not belong to the specified workspace, a resource not found error is returned.
|
|
2734
2860
|
*
|
|
2735
2861
|
* @param request - GetCustomAgentRequest
|
|
2736
2862
|
* @returns GetCustomAgentResponse
|
|
@@ -2870,6 +2996,61 @@ export default class Client extends OpenApi {
|
|
|
2870
2996
|
return await this.getIdentityProviderWithOptions(workspaceId, identityProviderType, request, headers, runtime);
|
|
2871
2997
|
}
|
|
2872
2998
|
|
|
2999
|
+
/**
|
|
3000
|
+
* Queries the details of an image cache.
|
|
3001
|
+
*
|
|
3002
|
+
* @remarks
|
|
3003
|
+
* Queries the details of the logical image cache in the current workspace. Returns the complete source, current digest, actual size, creation time, status, and secure error messages. AgentCount counts configuration references with the switch enabled. CanDelete verifies both configuration references and instance usage. If the switch is disabled, the count is 0, but deletion is still prohibited if old instances are not released. If the resource does not belong to the current workspace, resources with the same content from other workspaces are not returned.
|
|
3004
|
+
*
|
|
3005
|
+
* @param request - GetImageCacheRequest
|
|
3006
|
+
* @param headers - map
|
|
3007
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
3008
|
+
* @returns GetImageCacheResponse
|
|
3009
|
+
*/
|
|
3010
|
+
async getImageCacheWithOptions(imageId: string, request: $_model.GetImageCacheRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.GetImageCacheResponse> {
|
|
3011
|
+
request.validate();
|
|
3012
|
+
let query : {[key: string ]: any} = { };
|
|
3013
|
+
if (!$dara.isNull(request.regionId)) {
|
|
3014
|
+
query["regionId"] = request.regionId;
|
|
3015
|
+
}
|
|
3016
|
+
|
|
3017
|
+
if (!$dara.isNull(request.workspaceId)) {
|
|
3018
|
+
query["workspaceId"] = request.workspaceId;
|
|
3019
|
+
}
|
|
3020
|
+
|
|
3021
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
3022
|
+
headers: headers,
|
|
3023
|
+
query: OpenApiUtil.query(query),
|
|
3024
|
+
});
|
|
3025
|
+
let params = new $OpenApiUtil.Params({
|
|
3026
|
+
action: "GetImageCache",
|
|
3027
|
+
version: "2026-08-04",
|
|
3028
|
+
protocol: "HTTPS",
|
|
3029
|
+
pathname: `/image-caches/${$dara.URL.percentEncode(imageId)}`,
|
|
3030
|
+
method: "GET",
|
|
3031
|
+
authType: "AK",
|
|
3032
|
+
style: "ROA",
|
|
3033
|
+
reqBodyType: "json",
|
|
3034
|
+
bodyType: "json",
|
|
3035
|
+
});
|
|
3036
|
+
return $dara.cast<$_model.GetImageCacheResponse>(await this.callApi(params, req, runtime), new $_model.GetImageCacheResponse({}));
|
|
3037
|
+
}
|
|
3038
|
+
|
|
3039
|
+
/**
|
|
3040
|
+
* Queries the details of an image cache.
|
|
3041
|
+
*
|
|
3042
|
+
* @remarks
|
|
3043
|
+
* Queries the details of the logical image cache in the current workspace. Returns the complete source, current digest, actual size, creation time, status, and secure error messages. AgentCount counts configuration references with the switch enabled. CanDelete verifies both configuration references and instance usage. If the switch is disabled, the count is 0, but deletion is still prohibited if old instances are not released. If the resource does not belong to the current workspace, resources with the same content from other workspaces are not returned.
|
|
3044
|
+
*
|
|
3045
|
+
* @param request - GetImageCacheRequest
|
|
3046
|
+
* @returns GetImageCacheResponse
|
|
3047
|
+
*/
|
|
3048
|
+
async getImageCache(imageId: string, request: $_model.GetImageCacheRequest): Promise<$_model.GetImageCacheResponse> {
|
|
3049
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
3050
|
+
let headers : {[key: string ]: string} = { };
|
|
3051
|
+
return await this.getImageCacheWithOptions(imageId, request, headers, runtime);
|
|
3052
|
+
}
|
|
3053
|
+
|
|
2873
3054
|
/**
|
|
2874
3055
|
* Queries the details of a specified managed agent.
|
|
2875
3056
|
*
|
|
@@ -3575,10 +3756,10 @@ export default class Client extends OpenApi {
|
|
|
3575
3756
|
}
|
|
3576
3757
|
|
|
3577
3758
|
/**
|
|
3578
|
-
* Queries the RAM authorization URL
|
|
3759
|
+
* Queries the ACR RAM authorization URL of a workspace.
|
|
3579
3760
|
*
|
|
3580
3761
|
* @remarks
|
|
3581
|
-
* ACR and user OSS mounts share the workspace role. If no existing role is found, AliyunAgentCoreWorkspace-{workspaceId} is used. If a valid legacy OSS mount role exists, it is
|
|
3762
|
+
* ACR and user OSS mounts share the workspace role. If no existing role is found, AliyunAgentCoreWorkspace-{workspaceId} is used. If a valid legacy OSS mount role exists, it is reused and permissions are appended without overwriting existing OSS policies. Fixed historical shared roles continue to be reused and are not recreated or renamed due to new naming templates. The acrInstanceId, namespace, and repository parameters are required. The region and account are derived from the workspace context. Returns the role resolved by the backend and the authorization URL for the target repository. This operation does not create ACR or agent execution versions, nor does it deliver runtime configurations. After authorization is complete, you can call Verify before creating or updating an agent, without the need to call an independent Ensure operation.
|
|
3582
3763
|
*
|
|
3583
3764
|
* @param request - GetWorkspaceAcrRamAuthorizeUrlRequest
|
|
3584
3765
|
* @param headers - map
|
|
@@ -3619,10 +3800,10 @@ export default class Client extends OpenApi {
|
|
|
3619
3800
|
}
|
|
3620
3801
|
|
|
3621
3802
|
/**
|
|
3622
|
-
* Queries the RAM authorization URL
|
|
3803
|
+
* Queries the ACR RAM authorization URL of a workspace.
|
|
3623
3804
|
*
|
|
3624
3805
|
* @remarks
|
|
3625
|
-
* ACR and user OSS mounts share the workspace role. If no existing role is found, AliyunAgentCoreWorkspace-{workspaceId} is used. If a valid legacy OSS mount role exists, it is
|
|
3806
|
+
* ACR and user OSS mounts share the workspace role. If no existing role is found, AliyunAgentCoreWorkspace-{workspaceId} is used. If a valid legacy OSS mount role exists, it is reused and permissions are appended without overwriting existing OSS policies. Fixed historical shared roles continue to be reused and are not recreated or renamed due to new naming templates. The acrInstanceId, namespace, and repository parameters are required. The region and account are derived from the workspace context. Returns the role resolved by the backend and the authorization URL for the target repository. This operation does not create ACR or agent execution versions, nor does it deliver runtime configurations. After authorization is complete, you can call Verify before creating or updating an agent, without the need to call an independent Ensure operation.
|
|
3626
3807
|
*
|
|
3627
3808
|
* @param request - GetWorkspaceAcrRamAuthorizeUrlRequest
|
|
3628
3809
|
* @returns GetWorkspaceAcrRamAuthorizeUrlResponse
|
|
@@ -4410,6 +4591,101 @@ export default class Client extends OpenApi {
|
|
|
4410
4591
|
return await this.listIdentityProvidersWithOptions(workspaceId, request, headers, runtime);
|
|
4411
4592
|
}
|
|
4412
4593
|
|
|
4594
|
+
/**
|
|
4595
|
+
* Queries image caches.
|
|
4596
|
+
*
|
|
4597
|
+
* @remarks
|
|
4598
|
+
* Queries the logical image caches within the current account, region, and workspace. WorkspaceId is required, and caches are not visible across workspaces. All conditions filter the full set using the AND operator before pagination is calculated. Results are sorted in descending order of logical resource creation time and ascending order of ImageId. The cursor is bound to the account, region, workspace, all filters, and the sort order. Returns the complete cache objects, the AgentCount based on the configuration switch, and the actual deletion eligibility. Query failures do not return a disguised empty list, and the nextToken on the last page is an empty string.
|
|
4599
|
+
*
|
|
4600
|
+
* @param request - ListImageCachesRequest
|
|
4601
|
+
* @param headers - map
|
|
4602
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4603
|
+
* @returns ListImageCachesResponse
|
|
4604
|
+
*/
|
|
4605
|
+
async listImageCachesWithOptions(request: $_model.ListImageCachesRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.ListImageCachesResponse> {
|
|
4606
|
+
request.validate();
|
|
4607
|
+
let query : {[key: string ]: any} = { };
|
|
4608
|
+
if (!$dara.isNull(request.acrInstanceId)) {
|
|
4609
|
+
query["acrInstanceId"] = request.acrInstanceId;
|
|
4610
|
+
}
|
|
4611
|
+
|
|
4612
|
+
if (!$dara.isNull(request.digest)) {
|
|
4613
|
+
query["digest"] = request.digest;
|
|
4614
|
+
}
|
|
4615
|
+
|
|
4616
|
+
if (!$dara.isNull(request.imageRefContains)) {
|
|
4617
|
+
query["imageRefContains"] = request.imageRefContains;
|
|
4618
|
+
}
|
|
4619
|
+
|
|
4620
|
+
if (!$dara.isNull(request.maxResults)) {
|
|
4621
|
+
query["maxResults"] = request.maxResults;
|
|
4622
|
+
}
|
|
4623
|
+
|
|
4624
|
+
if (!$dara.isNull(request.namespace)) {
|
|
4625
|
+
query["namespace"] = request.namespace;
|
|
4626
|
+
}
|
|
4627
|
+
|
|
4628
|
+
if (!$dara.isNull(request.nextToken)) {
|
|
4629
|
+
query["nextToken"] = request.nextToken;
|
|
4630
|
+
}
|
|
4631
|
+
|
|
4632
|
+
if (!$dara.isNull(request.regionId)) {
|
|
4633
|
+
query["regionId"] = request.regionId;
|
|
4634
|
+
}
|
|
4635
|
+
|
|
4636
|
+
if (!$dara.isNull(request.registry)) {
|
|
4637
|
+
query["registry"] = request.registry;
|
|
4638
|
+
}
|
|
4639
|
+
|
|
4640
|
+
if (!$dara.isNull(request.repository)) {
|
|
4641
|
+
query["repository"] = request.repository;
|
|
4642
|
+
}
|
|
4643
|
+
|
|
4644
|
+
if (!$dara.isNull(request.status)) {
|
|
4645
|
+
query["status"] = request.status;
|
|
4646
|
+
}
|
|
4647
|
+
|
|
4648
|
+
if (!$dara.isNull(request.tag)) {
|
|
4649
|
+
query["tag"] = request.tag;
|
|
4650
|
+
}
|
|
4651
|
+
|
|
4652
|
+
if (!$dara.isNull(request.workspaceId)) {
|
|
4653
|
+
query["workspaceId"] = request.workspaceId;
|
|
4654
|
+
}
|
|
4655
|
+
|
|
4656
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
4657
|
+
headers: headers,
|
|
4658
|
+
query: OpenApiUtil.query(query),
|
|
4659
|
+
});
|
|
4660
|
+
let params = new $OpenApiUtil.Params({
|
|
4661
|
+
action: "ListImageCaches",
|
|
4662
|
+
version: "2026-08-04",
|
|
4663
|
+
protocol: "HTTPS",
|
|
4664
|
+
pathname: `/image-caches`,
|
|
4665
|
+
method: "GET",
|
|
4666
|
+
authType: "AK",
|
|
4667
|
+
style: "ROA",
|
|
4668
|
+
reqBodyType: "json",
|
|
4669
|
+
bodyType: "json",
|
|
4670
|
+
});
|
|
4671
|
+
return $dara.cast<$_model.ListImageCachesResponse>(await this.callApi(params, req, runtime), new $_model.ListImageCachesResponse({}));
|
|
4672
|
+
}
|
|
4673
|
+
|
|
4674
|
+
/**
|
|
4675
|
+
* Queries image caches.
|
|
4676
|
+
*
|
|
4677
|
+
* @remarks
|
|
4678
|
+
* Queries the logical image caches within the current account, region, and workspace. WorkspaceId is required, and caches are not visible across workspaces. All conditions filter the full set using the AND operator before pagination is calculated. Results are sorted in descending order of logical resource creation time and ascending order of ImageId. The cursor is bound to the account, region, workspace, all filters, and the sort order. Returns the complete cache objects, the AgentCount based on the configuration switch, and the actual deletion eligibility. Query failures do not return a disguised empty list, and the nextToken on the last page is an empty string.
|
|
4679
|
+
*
|
|
4680
|
+
* @param request - ListImageCachesRequest
|
|
4681
|
+
* @returns ListImageCachesResponse
|
|
4682
|
+
*/
|
|
4683
|
+
async listImageCaches(request: $_model.ListImageCachesRequest): Promise<$_model.ListImageCachesResponse> {
|
|
4684
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
4685
|
+
let headers : {[key: string ]: string} = { };
|
|
4686
|
+
return await this.listImageCachesWithOptions(request, headers, runtime);
|
|
4687
|
+
}
|
|
4688
|
+
|
|
4413
4689
|
/**
|
|
4414
4690
|
* Queries the list of managed agents in a specified workspace.
|
|
4415
4691
|
*
|
|
@@ -5986,6 +6262,77 @@ export default class Client extends OpenApi {
|
|
|
5986
6262
|
return await this.resetUserPasswordWithOptions(workspaceId, request, headers, runtime);
|
|
5987
6263
|
}
|
|
5988
6264
|
|
|
6265
|
+
/**
|
|
6266
|
+
* Retries the image cache.
|
|
6267
|
+
*
|
|
6268
|
+
* @remarks
|
|
6269
|
+
* Retries the image cache for the original ImageId in the current workspace. WorkspaceId is required. The business request body is not required and can be omitted or provided as an empty object. The source authorization and transfer network reuse the trusted context of the original registration. If a digest exists, the retry uses the original digest. If no digest exists, the original tag is resolved again. A new request for a FAILED status can start a new production round. PENDING and READY statuses are reused. DELETING status is rejected, and deleted resources are not recreated. PUBLIC and PRIVATE statuses reuse the pull authorization of the original workspace. Returns a complete acceptance snapshot and retains the original ImageId and CreatedAt. ClientToken does not guarantee request deduplication. If the result is not confirmed, query the real-time status first before deciding whether to resubmit.
|
|
6270
|
+
*
|
|
6271
|
+
* @param tmpReq - RetryImageCacheRequest
|
|
6272
|
+
* @param headers - map
|
|
6273
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
6274
|
+
* @returns RetryImageCacheResponse
|
|
6275
|
+
*/
|
|
6276
|
+
async retryImageCacheWithOptions(imageId: string, tmpReq: $_model.RetryImageCacheRequest, headers: {[key: string ]: string}, runtime: $dara.RuntimeOptions): Promise<$_model.RetryImageCacheResponse> {
|
|
6277
|
+
tmpReq.validate();
|
|
6278
|
+
let request = new $_model.RetryImageCacheShrinkRequest({ });
|
|
6279
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
6280
|
+
if (!$dara.isNull(tmpReq.body)) {
|
|
6281
|
+
request.bodyShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.body, "body", "json");
|
|
6282
|
+
}
|
|
6283
|
+
|
|
6284
|
+
let query : {[key: string ]: any} = { };
|
|
6285
|
+
if (!$dara.isNull(request.clientToken)) {
|
|
6286
|
+
query["clientToken"] = request.clientToken;
|
|
6287
|
+
}
|
|
6288
|
+
|
|
6289
|
+
if (!$dara.isNull(request.regionId)) {
|
|
6290
|
+
query["regionId"] = request.regionId;
|
|
6291
|
+
}
|
|
6292
|
+
|
|
6293
|
+
if (!$dara.isNull(request.workspaceId)) {
|
|
6294
|
+
query["workspaceId"] = request.workspaceId;
|
|
6295
|
+
}
|
|
6296
|
+
|
|
6297
|
+
let body : {[key: string ]: any} = { };
|
|
6298
|
+
if (!$dara.isNull(request.bodyShrink)) {
|
|
6299
|
+
body["body"] = request.bodyShrink;
|
|
6300
|
+
}
|
|
6301
|
+
|
|
6302
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
6303
|
+
headers: headers,
|
|
6304
|
+
query: OpenApiUtil.query(query),
|
|
6305
|
+
body: OpenApiUtil.parseToMap(body),
|
|
6306
|
+
});
|
|
6307
|
+
let params = new $OpenApiUtil.Params({
|
|
6308
|
+
action: "RetryImageCache",
|
|
6309
|
+
version: "2026-08-04",
|
|
6310
|
+
protocol: "HTTPS",
|
|
6311
|
+
pathname: `/image-caches/${$dara.URL.percentEncode(imageId)}/retry`,
|
|
6312
|
+
method: "POST",
|
|
6313
|
+
authType: "AK",
|
|
6314
|
+
style: "ROA",
|
|
6315
|
+
reqBodyType: "formData",
|
|
6316
|
+
bodyType: "json",
|
|
6317
|
+
});
|
|
6318
|
+
return $dara.cast<$_model.RetryImageCacheResponse>(await this.callApi(params, req, runtime), new $_model.RetryImageCacheResponse({}));
|
|
6319
|
+
}
|
|
6320
|
+
|
|
6321
|
+
/**
|
|
6322
|
+
* Retries the image cache.
|
|
6323
|
+
*
|
|
6324
|
+
* @remarks
|
|
6325
|
+
* Retries the image cache for the original ImageId in the current workspace. WorkspaceId is required. The business request body is not required and can be omitted or provided as an empty object. The source authorization and transfer network reuse the trusted context of the original registration. If a digest exists, the retry uses the original digest. If no digest exists, the original tag is resolved again. A new request for a FAILED status can start a new production round. PENDING and READY statuses are reused. DELETING status is rejected, and deleted resources are not recreated. PUBLIC and PRIVATE statuses reuse the pull authorization of the original workspace. Returns a complete acceptance snapshot and retains the original ImageId and CreatedAt. ClientToken does not guarantee request deduplication. If the result is not confirmed, query the real-time status first before deciding whether to resubmit.
|
|
6326
|
+
*
|
|
6327
|
+
* @param request - RetryImageCacheRequest
|
|
6328
|
+
* @returns RetryImageCacheResponse
|
|
6329
|
+
*/
|
|
6330
|
+
async retryImageCache(imageId: string, request: $_model.RetryImageCacheRequest): Promise<$_model.RetryImageCacheResponse> {
|
|
6331
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
6332
|
+
let headers : {[key: string ]: string} = { };
|
|
6333
|
+
return await this.retryImageCacheWithOptions(imageId, request, headers, runtime);
|
|
6334
|
+
}
|
|
6335
|
+
|
|
5989
6336
|
/**
|
|
5990
6337
|
* Retrieves long-term memory from a MemoryStore based on semantics queries.
|
|
5991
6338
|
*
|
|
@@ -6470,9 +6817,9 @@ export default class Client extends OpenApi {
|
|
|
6470
6817
|
* Updates the configuration of a specified custom agent in a workspace and executes the update asynchronously. Omitted top-level fields retain their original configurations. You can call the GetCustomAgent operation to query the update result.
|
|
6471
6818
|
*
|
|
6472
6819
|
* @remarks
|
|
6473
|
-
*
|
|
6474
|
-
* When updating an image, you must specify artifact.port and the type, instanceId, namespace, repo, and tag fields of artifact.container. To retain a custom startup command, also provide the entrypoint field. Currently, only
|
|
6475
|
-
* When providing the runtime field, both compute and sessionPolicy must be present. If you omit hpa or
|
|
6820
|
+
* Specify at least one top-level field to update. Omitted top-level fields retain their original configurations. When providing a configuration object, specify its required subfields and include any optional configurations that you want to retain. Arrays are replaced as a whole. Pass an empty array [] to clear a list. The agenticFsMounts field does not accept null. Pass null for the description field to clear the description, and pass null for the healthCheck field to remove the health check.
|
|
6821
|
+
* When updating an image, you must specify artifact.port and the type, instanceId, namespace, repo, and tag fields of artifact.container. To retain a custom startup command, also provide the entrypoint field. Currently, only ACR container image deployment is supported. Omit the artifact.code field.
|
|
6822
|
+
* When providing the runtime field, both compute and sessionPolicy must be present. If you omit hpa or any of its fields, unspecified elastic configurations use default values. To retain the original elastic configurations, provide them all. When providing the network field, omitted access items are treated as allowed, but actual access is still subject to the workspace network restrictions. To retain the original restrictions, provide both accessInternet and accessVpc. When providing healthCheck, you must specify the port field, and other unspecified items use default values. When providing logging.sls, you must specify both project and logstore.
|
|
6476
6823
|
* The update is an asynchronous process. A successful response indicates that the request is accepted. You can call the GetCustomAgent operation to query latestSpecVersion, latestVersionStatus, and latestExecutionError, and check the status field to confirm the update result.
|
|
6477
6824
|
* The clientToken field currently does not provide idempotency guarantees. Do not rely on this parameter to prevent duplicate requests. The healthyThreshold field for health checks currently does not take effect. Omit this field.
|
|
6478
6825
|
*
|
|
@@ -6522,9 +6869,9 @@ export default class Client extends OpenApi {
|
|
|
6522
6869
|
* Updates the configuration of a specified custom agent in a workspace and executes the update asynchronously. Omitted top-level fields retain their original configurations. You can call the GetCustomAgent operation to query the update result.
|
|
6523
6870
|
*
|
|
6524
6871
|
* @remarks
|
|
6525
|
-
*
|
|
6526
|
-
* When updating an image, you must specify artifact.port and the type, instanceId, namespace, repo, and tag fields of artifact.container. To retain a custom startup command, also provide the entrypoint field. Currently, only
|
|
6527
|
-
* When providing the runtime field, both compute and sessionPolicy must be present. If you omit hpa or
|
|
6872
|
+
* Specify at least one top-level field to update. Omitted top-level fields retain their original configurations. When providing a configuration object, specify its required subfields and include any optional configurations that you want to retain. Arrays are replaced as a whole. Pass an empty array [] to clear a list. The agenticFsMounts field does not accept null. Pass null for the description field to clear the description, and pass null for the healthCheck field to remove the health check.
|
|
6873
|
+
* When updating an image, you must specify artifact.port and the type, instanceId, namespace, repo, and tag fields of artifact.container. To retain a custom startup command, also provide the entrypoint field. Currently, only ACR container image deployment is supported. Omit the artifact.code field.
|
|
6874
|
+
* When providing the runtime field, both compute and sessionPolicy must be present. If you omit hpa or any of its fields, unspecified elastic configurations use default values. To retain the original elastic configurations, provide them all. When providing the network field, omitted access items are treated as allowed, but actual access is still subject to the workspace network restrictions. To retain the original restrictions, provide both accessInternet and accessVpc. When providing healthCheck, you must specify the port field, and other unspecified items use default values. When providing logging.sls, you must specify both project and logstore.
|
|
6528
6875
|
* The update is an asynchronous process. A successful response indicates that the request is accepted. You can call the GetCustomAgent operation to query latestSpecVersion, latestVersionStatus, and latestExecutionError, and check the status field to confirm the update result.
|
|
6529
6876
|
* The clientToken field currently does not provide idempotency guarantees. Do not rely on this parameter to prevent duplicate requests. The healthyThreshold field for health checks currently does not take effect. Omit this field.
|
|
6530
6877
|
*
|
|
@@ -7617,7 +7964,7 @@ export default class Client extends OpenApi {
|
|
|
7617
7964
|
* Verifies the ACR RAM authorization for a workspace.
|
|
7618
7965
|
*
|
|
7619
7966
|
* @remarks
|
|
7620
|
-
* ACR and user OSS mounts share the workspace role. If no existing role is
|
|
7967
|
+
* ACR and user OSS mounts share the workspace role. If no existing role is found, AliyunAgentCoreWorkspace-{workspaceId} is used. If a valid legacy OSS mount role exists, it is retained and only new permissions are appended without overwriting existing OSS policies. Fixed historical shared roles continue to be reused and are not recreated or renamed due to new naming templates. This operation performs a read-only check to verify whether the custom policies corresponding to the target instance, namespace, and repository are attached to the shared role, and checks the workspace prerequisites. It does not create execution versions or trigger configuration delivery. AUTHORIZED only indicates that the custom policy for the target name is attached, without parsing the policy content or simulating the final permissions. ELIGIBLE does not mean that RuntimeManager capacity or template admission is complete, nor does it require ACR configuration to be delivered. Creating or updating an agent re-verifies permissions and processes ACR dependencies on the backend. Configuration waiting, failures, and retries are reported through agent details.
|
|
7621
7968
|
*
|
|
7622
7969
|
* @param request - VerifyWorkspaceAcrRamAuthorizationRequest
|
|
7623
7970
|
* @param headers - map
|
|
@@ -7661,7 +8008,7 @@ export default class Client extends OpenApi {
|
|
|
7661
8008
|
* Verifies the ACR RAM authorization for a workspace.
|
|
7662
8009
|
*
|
|
7663
8010
|
* @remarks
|
|
7664
|
-
* ACR and user OSS mounts share the workspace role. If no existing role is
|
|
8011
|
+
* ACR and user OSS mounts share the workspace role. If no existing role is found, AliyunAgentCoreWorkspace-{workspaceId} is used. If a valid legacy OSS mount role exists, it is retained and only new permissions are appended without overwriting existing OSS policies. Fixed historical shared roles continue to be reused and are not recreated or renamed due to new naming templates. This operation performs a read-only check to verify whether the custom policies corresponding to the target instance, namespace, and repository are attached to the shared role, and checks the workspace prerequisites. It does not create execution versions or trigger configuration delivery. AUTHORIZED only indicates that the custom policy for the target name is attached, without parsing the policy content or simulating the final permissions. ELIGIBLE does not mean that RuntimeManager capacity or template admission is complete, nor does it require ACR configuration to be delivered. Creating or updating an agent re-verifies permissions and processes ACR dependencies on the backend. Configuration waiting, failures, and retries are reported through agent details.
|
|
7665
8012
|
*
|
|
7666
8013
|
* @param request - VerifyWorkspaceAcrRamAuthorizationRequest
|
|
7667
8014
|
* @returns VerifyWorkspaceAcrRamAuthorizationResponse
|