Help Center/ Organizations/ API Reference/ APIs/ Others/ Listing Resource Types That Support Enforcement
Updated on 2025-04-10 GMT+08:00

Listing Resource Types That Support Enforcement

Function

This API is used to list the resources types that support enforcement with tag policies.

URI

GET https://{endpoint}/v1/organizations/tag-policy-services

Request Parameters

Table 1 Request header parameters

Parameter

Mandatory

Type

Description

X-Security-Token

No

String

Security token (session token) of your temporary security credentials. If a temporary security credential is used, this header is required.

Response Parameters

Status code: 200

Table 2 Response body parameters

Parameter

Type

Description

services

Array of TagPolicyServiceDto objects

Resource types that support enforcement with tag policies.

Table 3 TagPolicyServiceDto

Parameter

Type

Description

service_name

String

Service name.

resource_types

Array of strings

Resource type.

support_all

Boolean

Whether resource_type support all services (wildcard *).

Example Requests

Listing resources types that support enforcement with tag policies

GET https://{endpoint}/v1/internal/organizations/tag-policy-services

Example Responses

Status code: 200

Successful.

{
  "services" : [ {
    "service_name" : "string",
    "resource_types" : [ "account", "ou" ],
    "support_all" : true
  } ]
}

Status Codes

Status Code

Description

200

Successful.

Error Codes

See Error Codes.