Help Center/ Application Service Mesh/ API Reference/ API/ Service APIs/ Obtaining the Access Authentication Configuration of a Mesh Service
Updated on 2026-06-25 GMT+08:00

Obtaining the Access Authentication Configuration of a Mesh Service

Function

This API is used to obtain the access authentication configuration of a mesh service.

Calling Method

For details, see Calling APIs.

Authorization Information

Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.

  • If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
  • If you are using identity policy-based authorization, the following identity policy-based permissions are required.

    Action

    Access Level

    Resource Type (*: required)

    Condition Key

    Alias

    Dependencies

    asm:mesh:getServiceGovernance

    Read

    mesh *

    • g:EnterpriseProjectId

    • g:ResourceTag/<tag-key>

    -

    -

URI

GET /v3/meshes/{mesh_id}/authorizations

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

mesh_id

Yes

String

Mesh ID

Table 2 Query Parameters

Parameter

Mandatory

Type

Description

service

Yes

String

Service name

namespace

Yes

String

Namespace

Request Parameters

Table 3 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

API calling can be authenticated using a token or AK/SK. If you use a token, this parameter is mandatory and must be set to the token.

Response Parameters

Status code: 200

Table 4 Response body parameters

Parameter

Type

Description

mesh

String

ID of the mesh where a service is located

namespace

String

Namespace of a service

service

String

Service name

accessList

Map<String,Array<String>>

List of services that can be accessed, which consists of key-value pairs. key indicates the namespace name, and value indicates the list of services that can be accessed in the corresponding namespace.

Status code: 500

Table 5 Response body parameters

Parameter

Type

Description

errorCode

String

Error code

Example Requests

None

Example Responses

None

Status Codes

Status Code

Description

200

The access authentication configuration of the mesh service is obtained.

500

Internal error.

Error Codes

See Error Codes.