Help Center> Organizations> API Reference> API> Others> Listing Resource Types That Support Enforcement
Updated on 2024-05-28 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.

Debugging

You can debug this API through automatic authentication in API Explorer or use the SDK sample code generated by API Explorer.

URI

GET /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.

Minimum: 1

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.

Minimum: 1

Maximum: 64

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://{hostname}/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.