Tüm Ürünler
Search
Belge Merkezi

:TagResources

Son Güncelleme:Oct 02, 2026

ARMS kaynaklarına etiket ekler.

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

arms:TagResources

update

*Prometheus.

acs:arms:{#regionId}:{#accountId}:prometheus/{#ClusterId}

*Retcode uygulaması.

acs:arms:{#regionId}:{#accountId}:retcodeapp/{#Pid}

*İzleme uygulaması.

acs:arms:{#regionId}:{#accountId}:traceapp/{#Pid}

*Ortam.

acs:arms:{#regionId}:{#accountId}:environment/{#EnvironmentId}

*Grafana çalışma alanı.

acs:arms:{#regionId}:{#accountId}:grafanaworkspace/{#GrafanaWorkspaceId}

None None

Request parameters

Parameter

Type

Required

Description

Example

ResourceId

array

Yes

Kaynak kimlikleri. En fazla 50 kaynak kimliği belirtebilirsiniz.

string

No

Kaynak kimliği.

uxqcr8b***

Tag

array<object>

Yes

Kaynağa eklenecek etiketler. En fazla 20 etiket belirtebilirsiniz.

object

No

code!=""

Key

string

No

Etiketin anahtarı.

Key1

Value

string

No

Etiketin değeri.

Test1

ResourceType

string

Yes

Etiketlerini değiştirmek istediğiniz ARMS kaynaklarının türü. Geçerli değerler:

  • WEB: Tarayıcı İzleme

  • APPLICATION: Uygulama İzleme

  • PROMETHEUS: Prometheus için Yönetilen Hizmet

  • SYNTHETICTASK: Sentetik İzleme

  • ALERTRULE: Uygulama İzleme uyarı kuralı

  • PROMETHEUSALERTRULE: Prometheus için Yönetilen Hizmet uyarı kuralı

  • XTRACEAPP: OpenTelemetry için Yönetilen Hizmet

APPLICATION

Response elements

Element

Type

Description

Example

object

Yanıt şeması.

RequestId

string

İstek kimliği.

05919CF2-B8A1-588D-B3DB-89B3********

Data

string

Döndürülen mesaj.

success

Examples

Success response

JSON format

{
  "RequestId": "05919CF2-B8A1-588D-B3DB-89B3********",
  "Data": "success"
}

Error codes

HTTP status code

Error code

Error message

Description

400 DuplicateTagKey Param tagKey is duplicate.
400 NoPermissionKeyOperator user is no permission for operating param tagKey.
400 ResourceIdAndTagIsNull resourceId or tag param must have one
400 TagISNull param tag must be not null. Etiket boş olamaz.
400 TagNumOUT the number of tag is out .
400 ResourceIdIsNull param resourceId must be not null.
400 ResourceTypeIllegal The ResourceType parameter is invalid. ResourceType parametresi geçersiz.
400 NoPermissionUSER user no permission
400 ScopeDisAgreement Param scope is different from before.
400 ParameterNextTokenIllegal param nextToken is invalid.
400 InvalidParameterTagKey The specified TagKey is invalid. TagKey parametresi geçersiz.
400 InvalidParameterTagValue The specified TagValue is invalid. TagValue parametresi geçersiz.
400 TagKeyIsIllegal The specified TagKey is invalid. TagKey parametresi geçersiz.
400 TagValueIsIllegal The specified TagValue is invalid. TagValue parametresi geçersiz.
400 ResourceIDOUT The specified resourceId number is out of range. ResourceId değerlerinin sayısı belirtilen aralığı aştı.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.