
# 批量获取资产信息(邀测) - ListEntityDetails
#### 功能介绍
批量获取资产信息列表。
#### 调用方法
请参见[如何调用API](https://support.huaweicloud.com/api-dataartsstudio/making_request.html)。
#### 授权信息
账号具备所有API的调用权限，如果使用账号下的IAM用户调用当前API，该IAM用户需具备调用API所需的权限。
- 如果使用角色与策略授权，具体权限要求请参见[权限和授权项](https://support.huaweicloud.com/api-dataartsstudio/abcd.html)。
- 如果使用身份策略授权，当前API调用无需身份策略权限。
 
#### URI
POST /v1/{project_id}/datamap/entities/guids
表1路径参数 
| 参数         | 是否必选 | 参数类型   | 描述                                                                                                    |
|:---|:---|:---|:---|
| project_id | 是    | String | 项目ID，获取方法请参见[项目ID和账号ID](https://support.huaweicloud.com/api-dataartsstudio/projectid_accountid.html)。 |
   
#### 请求参数
表2请求Header参数 
| 参数           | 是否必选 | 参数类型   | 描述                                                                                                                                                       |
|:---|:---|:---|:---|
| X-Auth-Token | 是    | String | 用户Token，使用[Token认证](https://support.huaweicloud.com/api-dataartsstudio/dataartsstudio_02_0010.html)时必选。通过调用IAM服务的"获取用户Token"接口获取响应消息头中X-Subject-Token的值。 |
| instance     | 是    | String | 实例ID，获取方法请参见[实例ID和工作空间ID](https://support.huaweicloud.com/api-dataartsstudio/dataartsstudio_02_0350.html)。                                               |
   
表3请求Body参数 
| 参数       | 是否必选 | 参数类型             | 描述           |
|:---|:---|:---|:---|
| \[数组元素\] | 是    | Array of strings | 批量获取资产信息请求体。 |
   
#### 响应参数
**状态码：200**
表4响应Body参数 
| 参数                | 参数类型                                                           | 描述                                                     |
|:---|:---|:---|
| entities          | Array of [Entity] objects | 资产信息列表。                                                |
| referred_entities | Object                                                         | 关联资产信息，结构体Map\<String, Entity\>。key：资产guid，value：资产信息。 |
   
 表5Entity 
| 参数                      | 参数类型                                                                           | 描述                                                                                       |
|:---|:---|:---|
| version                 | Number                                                                         | 数据版本。                                                                                    |
| relationship_attributes | Object                                                                         | 关联关系属性，数据类型Map\<String, Object\>，key：关系类型：value：关联关系对象。                                  |
| super_type_names        | Array of strings                                                               | 父类资产类型。                                                                                  |
| business_attributes     | Object                                                                         | 业务属性，数据类型Map\<String, Map\<String, Object\>\>，key：业务关系类型，value：业务关系。                     |
| multi_attributes        | Object                                                                         | 承担密级和标签的多值对象数据结构，数据结构Map\<String, List\<Map\<String, Object\>\>\>，key：综合关系类型，value：综合关系。 |
| privilege_info          | [EntityPrivilegeInfo] object | 实体特权信息。                                                                                  |
| extended_attributes     | Object                                                                         | 拓展属性，数据结构Map\<String, Object\>，key：拓展属性，value：拓展属性值。                                     |
| guid                    | String                                                                         | 资产guid。                                                                                  |
| type_name               | String                                                                         | 资产类型名称。                                                                                  |
| type_display_name       | String                                                                         | 类型展示名称。                                                                                  |
| display_text            | String                                                                         | 展示名称。                                                                                    |
| attributes              | Object                                                                         | 资产属性，Map\<String, Object\>。key：属性，value：属性值。                                             |
| updated_attributes      | Array of strings                                                               | 修改属性列表。                                                                                  |
| project_id              | String                                                                         | 项目id。                                                                                    |
| domain_id               | String                                                                         | 主账号id。                                                                                   |
| instance_id             | Array of strings                                                               | 实例化id。                                                                                   |
| workspace_id            | Array of strings                                                               | 空间id列表。                                                                                  |
| status                  | String                                                                         | 状态。                                                                                      |
| created_by              | String                                                                         | 创建人。                                                                                     |
| updated_by              | String                                                                         | 修改人。                                                                                     |
| create_time             | String                                                                         | 创建时间。                                                                                    |
| update_time             | String                                                                         | 修改时间。                                                                                    |
   
 表6EntityPrivilegeInfo 
| 参数                 | 参数类型             | 描述      |
|:---|:---|:---|
| privileges         | Array of strings | 特权列表。   |
| inherit_privileges | Array of strings | 继承特权列表。 |
   
**状态码：400**
表7响应Body参数 
| 参数         | 参数类型   | 描述    |
|:---|:---|:---|
| error_code | String | 错误码。  |
| error_msg  | String | 错误描述。 |
   
**状态码：401**
表8响应Body参数 
| 参数         | 参数类型   | 描述    |
|:---|:---|:---|
| error_code | String | 错误码。  |
| error_msg  | String | 错误描述。 |
   
**状态码：403**
表9响应Body参数 
| 参数         | 参数类型   | 描述    |
|:---|:---|:---|
| error_code | String | 错误码。  |
| error_msg  | String | 错误描述。 |
   
**状态码：404**
表10响应Body参数 
| 参数         | 参数类型   | 描述    |
|:---|:---|:---|
| error_code | String | 错误码。  |
| error_msg  | String | 错误描述。 |
   
**状态码：500**
表11响应Body参数 
| 参数         | 参数类型   | 描述    |
|:---|:---|:---|
| error_code | String | 错误码。  |
| error_msg  | String | 错误描述。 |
   
#### 请求示例
```
[ "22ec4538216a0ff22a2f336042c7e94b", "a690df51be88b62371899d4e7d8d9392" ]
```
#### 响应示例
**状态码：200**
OK。
```
{
  "entities" : [ {
    "guid" : "22ec4538216a0ff22a2f336042c7e94b",
    "attributes" : {
      "approvalOwner" : "",
      "sourceId" : "gbase@82a0c3b3-adeb-4954-912a-d7c5e6d4adbe",
      "autoCleanStatus" : false,
      "ddlCreateTime" : 1745287026,
      "description" : "",
      "dataConnectionId" : [ "7ca1a01103ef403887034edcf87dbb32" ],
      "baseType" : "Table",
      "totalFrequency" : 0,
      "path" : "/test",
      "tableType" : "BASE TABLE",
      "writeFrequency" : 0,
      "catalogId" : "catalog@cn-north-7",
      "indexLength" : 0,
      "schemaQName" : "",
      "engine" : "EXPRESS",
      "newPrimaryKeys" : [ ],
      "tableSize" : 0,
      "rowFormat" : "Compressed",
      "releaseStatus" : "",
      "alias" : "",
      "dataUpdateTime" : 1745287026,
      "publishStatus" : "",
      "introduction" : "",
      "owner" : "hty",
      "lastAccessTime" : 1745287026,
      "avgRowLength" : 0,
      "qualifiedName" : "test.zptest003@gbase.82a0c3b3-adeb-4954-912a-d7c5e6d4adbe",
      "dataLength" : 0,
      "autoIncrement" : 0,
      "qualityScoreOverall" : 0,
      "dataFree" : 0,
      "readFrequency" : 0,
      "version" : 10,
      "createOption" : "avg_row_length=458",
      "isHidden" : false,
      "tableSpace" : "",
      "sourceType" : "gbase",
      "createTime" : 1745287026,
      "rowCounts" : 0,
      "name" : "zptest003",
      "databaseQName" : "test@gbase.82a0c3b3-adeb-4954-912a-d7c5e6d4adbe",
      "comment" : "",
      "tableCollation" : "utf8_general_ci",
      "sourceName" : "gbase_test_2",
      "businessOwner" : "",
      "lifeCycle" : 0,
      "ddlUpdateTime" : 1745287026
    },
    "status" : "ACTIVE",
    "version" : 2,
    "type_name" : "gbase.Table",
    "type_display_name" : "数据表",
    "project_id" : "0833a5737480d53b2f25c010dc1a7b88",
    "domain_id" : "0833a5736980d53b0f22c0102ffcbfc0",
    "instance_id" : [ "dd97167b873d4a79b2aad54d4370a3bc" ],
    "workspace_id" : [ "27edbfb4c0c04f9d8381e0f915e1df57" ],
    "created_by" : "username",
    "updated_by" : "username",
    "create_time" : "2025-04-22T01:58:02.164+00:00",
    "update_time" : "2025-05-15T01:40:33.808+00:00",
    "relationship_attributes" : {
      "database" : {
        "relationshipGuid" : "9bc7b6cbd16505cac48c0882383d8fe7",
        "typeName" : "dataasset.tables_database",
        "attributes" : { },
        "guid" : "a1316df229ddf6bb7cd68bea77211ea6",
        "entity" : null
      },
      "columns" : [ {
        "relationshipGuid" : "d25a2abc7f826a8633d56b9df1e04954",
        "typeName" : "dataasset.table_columns",
        "attributes" : {
          "__index" : 1,
          "__key" : null
        },
        "guid" : "b35671759741869926fa7edee2993cbd",
        "entity" : null
      }, {
        "relationshipGuid" : "ac31da43fd521e5726d7a5239343a9a9",
        "typeName" : "dataasset.table_columns",
        "attributes" : {
          "__index" : 2,
          "__key" : null
        },
        "guid" : "a86073a85d1012fc36312b672614deae",
        "entity" : null
      }, {
        "relationshipGuid" : "d51287bd450f2893b1738abf5109e978",
        "typeName" : "dataasset.table_columns",
        "attributes" : {
          "__index" : 3,
          "__key" : null
        },
        "guid" : "712715ba7e539dce71f3591baf1d45f3",
        "entity" : null
      } ],
      "partitionKeys" : [ {
        "relationshipGuid" : "63d8f08ed807b67e438bbcd89f6358ee",
        "typeName" : "dataasset.table_partition_keys",
        "attributes" : { },
        "guid" : "b35671759741869926fa7edee2993cbd",
        "entity" : null
      }, {
        "relationshipGuid" : "a4ea87572cbed46c13ef4a273f97216b",
        "typeName" : "dataasset.table_partition_keys",
        "attributes" : { },
        "guid" : "a86073a85d1012fc36312b672614deae",
        "entity" : null
      }, {
        "relationshipGuid" : "5731b9399b4b375c5f14d4feb70ef9b7",
        "typeName" : "dataasset.table_partition_keys",
        "attributes" : { },
        "guid" : "712715ba7e539dce71f3591baf1d45f3",
        "entity" : null
      } ]
    },
    "super_type_names" : [ "base.DataAsset", "dataasset.Table", "base.DataSet", "base.Asset" ],
    "business_attributes" : {
      "securityLevel" : {
        "confidence" : 0,
        "name" : "8a0e4aea8bb7081d018bb708772a0000",
        "display_name" : "一般",
        "confirmed" : false,
        "slevel" : 1
      },
      "businessName" : {
        "confidence" : 1,
        "name" : "zptest003",
        "confirmed" : true
      }
    },
    "multi_attributes" : {
      "tags" : [ ]
    },
    "extended_attributes" : { },
    "display_text" : "zptest003"
  } ],
  "referred_entities" : {
    "a86073a85d1012fc36312b672614deae" : {
      "guid" : "a86073a85d1012fc36312b672614deae",
      "attributes" : {
        "approvalOwner" : null,
        "sourceId" : "gbase@82a0c3b3-adeb-4954-912a-d7c5e6d4adbe",
        "defaultValue" : null,
        "description" : null,
        "type" : "date",
        "dataConnectionId" : [ "7ca1a01103ef403887034edcf87dbb32" ],
        "baseType" : "Column",
        "path" : "/test/zptest003",
        "catalogId" : "catalog@cn-north-7",
        "characterName" : "",
        "alias" : null,
        "publishStatus" : null,
        "collationName" : "",
        "owner" : "hty",
        "ordinalNumber" : 3,
        "qualifiedName" : "test.zptest003.birthdate@gbase.82a0c3b3-adeb-4954-912a-d7c5e6d4adbe",
        "dataType" : "date",
        "isPartitionColumn" : null,
        "isPrimaryKey" : null,
        "isHidden" : null,
        "isForeignKey" : null,
        "sourceType" : "gbase",
        "isNullable" : "YES",
        "name" : "birthdate",
        "comment" : "",
        "sourceName" : "gbase_test_2",
        "checkExpression" : null,
        "businessOwner" : null
      },
      "status" : "ACTIVE",
      "version" : 1,
      "type_name" : "gbase.Column",
      "type_display_name" : "字段",
      "project_id" : "0833a5737480d53b2f25c010dc1a7b88",
      "domain_id" : "0833a5736980d53b0f22c0102ffcbfc0",
      "instance_id" : [ "dd97167b873d4a79b2aad54d4370a3bc" ],
      "workspace_id" : [ "27edbfb4c0c04f9d8381e0f915e1df57" ],
      "created_by" : "username",
      "updated_by" : "username",
      "create_time" : "2025-04-22T01:58:02.166+00:00",
      "update_time" : "2025-04-22T01:58:02.166+00:00",
      "favorite_count" : 0,
      "click_through" : 0,
      "super_type_names" : [ "base.DataAsset", "base.DataSet", "base.Asset", "dataasset.Column" ],
      "business_attributes" : {
        "businessName" : {
          "confidence" : 1,
          "name" : "birthdate",
          "confirmed" : true
        }
      },
      "multi_attributes" : {
        "classifications" : [ ],
        "tags" : [ ]
      },
      "extended_attributes" : { },
      "display_text" : "birthdate"
    },
    "b35671759741869926fa7edee2993cbd" : {
      "guid" : "b35671759741869926fa7edee2993cbd",
      "attributes" : {
        "approvalOwner" : null,
        "sourceId" : "gbase@82a0c3b3-adeb-4954-912a-d7c5e6d4adbe",
        "defaultValue" : null,
        "description" : null,
        "type" : "varchar(100)",
        "dataConnectionId" : [ "7ca1a01103ef403887034edcf87dbb32" ],
        "baseType" : "Column",
        "path" : "/test/zptest003",
        "catalogId" : "catalog@cn-north-7",
        "characterName" : "utf8",
        "alias" : null,
        "publishStatus" : null,
        "collationName" : "utf8_general_ci",
        "owner" : "hty",
        "ordinalNumber" : 2,
        "qualifiedName" : "test.zptest003.email@gbase.82a0c3b3-adeb-4954-912a-d7c5e6d4adbe",
        "dataType" : "varchar",
        "isPartitionColumn" : null,
        "isPrimaryKey" : null,
        "isHidden" : null,
        "isForeignKey" : null,
        "sourceType" : "gbase",
        "isNullable" : "NO",
        "name" : "email",
        "comment" : "",
        "sourceName" : "gbase_test_2",
        "checkExpression" : null,
        "businessOwner" : null
      },
      "status" : "ACTIVE",
      "version" : 1,
      "type_name" : "gbase.Column",
      "type_display_name" : "字段",
      "project_id" : "0833a5737480d53b2f25c010dc1a7b88",
      "domain_id" : "0833a5736980d53b0f22c0102ffcbfc0",
      "instance_id" : [ "dd97167b873d4a79b2aad54d4370a3bc" ],
      "workspace_id" : [ "27edbfb4c0c04f9d8381e0f915e1df57" ],
      "created_by" : "username",
      "updated_by" : "username",
      "create_time" : "2025-04-22T01:58:02.165+00:00",
      "update_time" : "2025-04-22T01:58:02.165+00:00",
      "favorite_count" : 0,
      "click_through" : 0,
      "super_type_names" : [ "base.DataAsset", "base.DataSet", "base.Asset", "dataasset.Column" ],
      "business_attributes" : {
        "businessName" : {
          "confidence" : 1,
          "name" : "email",
          "confirmed" : true
        }
      },
      "multi_attributes" : {
        "classifications" : [ ],
        "tags" : [ ]
      },
      "extended_attributes" : { },
      "display_text" : "email"
    },
    "712715ba7e539dce71f3591baf1d45f3" : {
      "guid" : "712715ba7e539dce71f3591baf1d45f3",
      "attributes" : {
        "approvalOwner" : null,
        "sourceId" : "gbase@82a0c3b3-adeb-4954-912a-d7c5e6d4adbe",
        "defaultValue" : null,
        "description" : null,
        "type" : "tinyint(1)",
        "dataConnectionId" : [ "7ca1a01103ef403887034edcf87dbb32" ],
        "baseType" : "Column",
        "path" : "/test/zptest003",
        "catalogId" : "catalog@cn-north-7",
        "characterName" : "",
        "alias" : null,
        "publishStatus" : null,
        "collationName" : "",
        "owner" : "hty",
        "ordinalNumber" : 4,
        "qualifiedName" : "test.zptest003.is_active@gbase.82a0c3b3-adeb-4954-912a-d7c5e6d4adbe",
        "dataType" : "tinyint",
        "isPartitionColumn" : null,
        "isPrimaryKey" : null,
        "isHidden" : null,
        "isForeignKey" : null,
        "sourceType" : "gbase",
        "isNullable" : "YES",
        "name" : "is_active",
        "comment" : "",
        "sourceName" : "gbase_test_2",
        "checkExpression" : null,
        "businessOwner" : null
      },
      "status" : "ACTIVE",
      "version" : 1,
      "type_name" : "gbase.Column",
      "type_display_name" : "字段",
      "project_id" : "0833a5737480d53b2f25c010dc1a7b88",
      "domain_id" : "0833a5736980d53b0f22c0102ffcbfc0",
      "instance_id" : [ "dd97167b873d4a79b2aad54d4370a3bc" ],
      "workspace_id" : [ "27edbfb4c0c04f9d8381e0f915e1df57" ],
      "created_by" : "username",
      "updated_by" : "username",
      "create_time" : "2025-04-22T01:58:02.166+00:00",
      "update_time" : "2025-04-22T01:58:02.166+00:00",
      "favorite_count" : 0,
      "click_through" : 0,
      "super_type_names" : [ "base.DataAsset", "base.DataSet", "base.Asset", "dataasset.Column" ],
      "business_attributes" : {
        "businessName" : {
          "confidence" : 1,
          "name" : "is_active",
          "confirmed" : true
        }
      },
      "multi_attributes" : {
        "classifications" : [ ],
        "tags" : [ ]
      },
      "extended_attributes" : { },
      "display_text" : "is_active"
    },
    "a1316df229ddf6bb7cd68bea77211ea6" : {
      "guid" : "a1316df229ddf6bb7cd68bea77211ea6",
      "attributes" : {
        "approvalOwner" : "",
        "owner" : "hty",
        "sourceId" : "gbase@82a0c3b3-adeb-4954-912a-d7c5e6d4adbe",
        "sqlPath" : "",
        "qualifiedName" : "test@gbase.82a0c3b3-adeb-4954-912a-d7c5e6d4adbe",
        "characterSetName" : "utf8",
        "description" : "",
        "dataConnectionId" : [ "7ca1a01103ef403887034edcf87dbb32" ],
        "baseType" : "Database",
        "isHidden" : false,
        "path" : "/",
        "catalogId" : "catalog@cn-north-7",
        "sourceType" : "gbase",
        "name" : "test",
        "comment" : "",
        "sourceName" : "gbase_test_2",
        "businessOwner" : "",
        "collationName" : "utf8_general_ci"
      },
      "status" : "ACTIVE",
      "version" : 1,
      "type_name" : "gbase.Database",
      "type_display_name" : "数据库",
      "project_id" : "0833a5737480d53b2f25c010dc1a7b88",
      "domain_id" : "0833a5736980d53b0f22c0102ffcbfc0",
      "instance_id" : [ "dd97167b873d4a79b2aad54d4370a3bc" ],
      "workspace_id" : [ "27edbfb4c0c04f9d8381e0f915e1df57" ],
      "created_by" : "username",
      "updated_by" : "username",
      "create_time" : "2025-04-22T01:56:19.019+00:00",
      "update_time" : "2025-05-14T07:56:02.851+00:00",
      "favorite_count" : 0,
      "click_through" : 5,
      "super_type_names" : [ "base.DataAsset", "base.Asset", "dataasset.Database" ],
      "business_attributes" : {
        "businessName" : {
          "confidence" : 1,
          "name" : "test",
          "confirmed" : true
        }
      },
      "multi_attributes" : {
        "tags" : [ ]
      },
      "extended_attributes" : { },
      "display_text" : "test"
    }
  }
}
```
#### SDK代码示例
SDK代码示例如下。
- [Java]
  ```
  package com.huaweicloud.sdk.test;
  import com.huaweicloud.sdk.core.auth.ICredential;
  import com.huaweicloud.sdk.core.auth.BasicCredentials;
  import com.huaweicloud.sdk.core.exception.ConnectionException;
  import com.huaweicloud.sdk.core.exception.RequestTimeoutException;
  import com.huaweicloud.sdk.core.exception.ServiceResponseException;
  import com.huaweicloud.sdk.dataartsstudio.v1.region.DataArtsStudioRegion;
  import com.huaweicloud.sdk.dataartsstudio.v1.*;
  import com.huaweicloud.sdk.dataartsstudio.v1.model.*;
  public class ListEntityDetailsSolution {
      public static void main(String[] args) {
          // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted during use to ensure security.
          // In this example, AK and SK are stored in environment variables for authentication. Before running this example, set environment variables CLOUD_SDK_AK and CLOUD_SDK_SK in the local environment
          String ak = System.getenv("CLOUD_SDK_AK");
          String sk = System.getenv("CLOUD_SDK_SK");
          String projectId = "{project_id}";
          ICredential auth = new BasicCredentials()
                  .withProjectId(projectId)
                  .withAk(ak)
                  .withSk(sk);
          DataArtsStudioClient client = DataArtsStudioClient.newBuilder()
                  .withCredential(auth)
                  .withRegion(DataArtsStudioRegion.valueOf("<YOUR REGION>"))
                  .build();
          ListEntityDetailsRequest request = new ListEntityDetailsRequest();
          try {
              ListEntityDetailsResponse response = client.listEntityDetails(request);
              System.out.println(response.toString());
          } catch (ConnectionException e) {
              e.printStackTrace();
          } catch (RequestTimeoutException e) {
              e.printStackTrace();
          } catch (ServiceResponseException e) {
              e.printStackTrace();
              System.out.println(e.getHttpStatusCode());
              System.out.println(e.getRequestId());
              System.out.println(e.getErrorCode());
              System.out.println(e.getErrorMsg());
          }
      }
  }
  ```
- [Python]
  ```
  # coding: utf-8
  import os
  from huaweicloudsdkcore.auth.credentials import BasicCredentials
  from huaweicloudsdkdataartsstudio.v1.region.dataartsstudio_region import DataArtsStudioRegion
  from huaweicloudsdkcore.exceptions import exceptions
  from huaweicloudsdkdataartsstudio.v1 import *
  if __name__ == "__main__":
      # The AK and SK used for authentication are hard-coded or stored in plaintext, which has great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted during use to ensure security.
      # In this example, AK and SK are stored in environment variables for authentication. Before running this example, set environment variables CLOUD_SDK_AK and CLOUD_SDK_SK in the local environment
      ak = os.environ["CLOUD_SDK_AK"]
      sk = os.environ["CLOUD_SDK_SK"]
      projectId = "{project_id}"
      credentials = BasicCredentials(ak, sk, projectId)
      client = DataArtsStudioClient.new_builder() \
          .with_credentials(credentials) \
          .with_region(DataArtsStudioRegion.value_of("<YOUR REGION>")) \
          .build()
      try:
          request = ListEntityDetailsRequest()
          response = client.list_entity_details(request)
          print(response)
      except exceptions.ClientRequestException as e:
          print(e.status_code)
          print(e.request_id)
          print(e.error_code)
          print(e.error_msg)
  ```
- [Go]
  ```
  package main
  import (
  "fmt"
  "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/auth/basic"
      dataartsstudio "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dataartsstudio/v1"
  "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dataartsstudio/v1/model"
      region "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dataartsstudio/v1/region"
  )
  func main() {
      // The AK and SK used for authentication are hard-coded or stored in plaintext, which has great security risks. It is recommended that the AK and SK be stored in ciphertext in configuration files or environment variables and decrypted during use to ensure security.
      // In this example, AK and SK are stored in environment variables for authentication. Before running this example, set environment variables CLOUD_SDK_AK and CLOUD_SDK_SK in the local environment
      ak := os.Getenv("CLOUD_SDK_AK")
      sk := os.Getenv("CLOUD_SDK_SK")
      projectId := "{project_id}"
      auth, err := basic.NewCredentialsBuilder().
          WithAk(ak).
          WithSk(sk).
          WithProjectId(projectId).
          SafeBuild()
      if err != nil {
          fmt.Println(err)
          return
      }
      hcClient, err := dataartsstudio.DataArtsStudioClientBuilder().
           WithRegion(region.ValueOf("<YOUR REGION>")).
           WithCredential(auth).
           SafeBuild()
      if err != nil {
          fmt.Println(err)
          return
      }
      client := dataartsstudio.NewDataArtsStudioClient(hcClient)
      request := &model.ListEntityDetailsRequest{}
  response, err := client.ListEntityDetails(request)
  if err == nil {
          fmt.Printf("%+v\n", response)
      } else {
          fmt.Println(err)
      }
  }
  ```
- [更多]
  更多编程语言的SDK代码示例，请参见[API Explorer](https://console.huaweicloud.com/apiexplorer/#/openapi/DataArtsStudio/sdk?api=ListEntityDetails)的代码示例页签，可生成自动对应的SDK代码示例。
#### 状态码
| 状态码 | 描述                   |
|:---|:---|
| 200 | OK。                  |
| 400 | BadRequest。          |
| 401 | Unauthorized。        |
| 403 | Forbidden。           |
| 404 | Not Found。           |
| 500 | InternalServerError。 |
   
