GetAgentSpace

Updated at:

Queries the AgentSpace.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

agentloop:GetAgentSpace

get

*AgentSpace

acs:agentloop:{#regionId}:{#accountId}:agentspace/{#AgentSpaceName}

None None

Request syntax

GET /agentspace/{agentSpace} HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

agentSpace

string

Yes

The name of the AgentSpace.

test-agent-space

Request parameters

Parameter

Type

Required

Description

Example

No parameters required.

Response elements

Element

Type

Description

Example

object

The response data.

requestId

string

The request ID.

D0173835-9E0F-508F-8BFA-9F556E59C302

agentSpace

string

The name of the AgentSpace.

test-agent-space

description

string

The description.

test

cmsWorkspace

string

The CMS workspace.

test-cms-workspace

mseNamespace

object

The MSE namespace.

namespaceName

string

The name of the MSE namespace.

terraform-alicloud-modules

namespaceId

string

The ID of the MSE namespace.

emr-dataware

bindType

string

The attach type of the MSE namespace. AutoCreated indicates automatic creation by AgentLoop. UserSelected indicates that you select and attach an existing namespace when creating the AgentSpace.

AutoCreated

slsProject

string

The name of the Simple Log Service project.

default-cms-1837787111545040-cn-beijing

regionId

string

The region ID.

cn-hangzhou

createTime

string

The creation time.

2026-05-05T12:39:36Z

updateTime

string

The update time.

2025-10-20T02:28:14Z

cmsWorkspaceBindType

string

The binding type of the CloudMonitor 2.0 workspace.

Valid values:

  • AutoCreated :

    AutoCreated

  • UserSelected :

    UserSelected

AutoCreated

tags

array<object>

The complete standard tags of the active AgentSpace in the current region. An empty array is returned if it is confirmed that no tags exist. This field is omitted if the AgentSpace is not active or the tags cannot be determined. The omission of this field does not indicate that no tags exist.

[{"key":"env","value":"test"}]

object

The tag information.

{"key":"env","value":"test"}

key

string

The tag key.

env

value

string

The tag value, which can be an empty string.

test

Examples

Success response

JSON format

{
  "requestId": "D0173835-9E0F-508F-8BFA-9F556E59C302",
  "agentSpace": "test-agent-space",
  "description": "test",
  "cmsWorkspace": "test-cms-workspace",
  "mseNamespace": {
    "namespaceName": "terraform-alicloud-modules",
    "namespaceId": "emr-dataware",
    "bindType": "AutoCreated"
  },
  "slsProject": "default-cms-1837787111545040-cn-beijing",
  "regionId": "cn-hangzhou",
  "createTime": "2026-05-05T12:39:36Z",
  "updateTime": "2025-10-20T02:28:14Z",
  "cmsWorkspaceBindType": "AutoCreated",
  "tags": [
    {
      "key": "env",
      "value": "test"
    }
  ]
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.