Get tags for an account-level resource
Retrieves tags for a specific account-level resource.
Security
API Email + API Key
The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.
X-Auth-Email: user@example.comThe previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.
X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194ParametersExpand Collapse
params AccountTagGetParams
ResourceType param.Field[AccountTagGetParamsResourceType]Query param: The type of the resource.
Query param: The type of the resource.
ReturnsExpand Collapse
type AccountTagGetResponse interface{…}Response for access_application resources
Response for access_application resources
type AccountTagGetResponseResourceTaggingTaggedResourceObjectAccessApplication struct{…}Response for access_application resources
Response for access_application resources
ETag identifier for optimistic concurrency control. Formatted as “v1:
type AccountTagGetResponseResourceTaggingTaggedResourceObjectAccessApplicationPolicy struct{…}Response for access_application_policy resources
Response for access_application_policy resources
Access application ID is required only for access_application_policy resources
ETag identifier for optimistic concurrency control. Formatted as “v1:
type AccountTagGetResponseResourceTaggingTaggedResourceObjectAccessGroup struct{…}Response for access_group resources
Response for access_group resources
ETag identifier for optimistic concurrency control. Formatted as “v1:
type AccountTagGetResponseResourceTaggingTaggedResourceObjectAccount struct{…}Response for account resources
Response for account resources
ETag identifier for optimistic concurrency control. Formatted as “v1:
type AccountTagGetResponseResourceTaggingTaggedResourceObjectAIGateway struct{…}Response for ai_gateway resources
Response for ai_gateway resources
ETag identifier for optimistic concurrency control. Formatted as “v1:
type AccountTagGetResponseResourceTaggingTaggedResourceObjectAlertingPolicy struct{…}Response for alerting_policy resources
Response for alerting_policy resources
ETag identifier for optimistic concurrency control. Formatted as “v1:
type AccountTagGetResponseResourceTaggingTaggedResourceObjectAlertingWebhook struct{…}Response for alerting_webhook resources
Response for alerting_webhook resources
ETag identifier for optimistic concurrency control. Formatted as “v1:
type AccountTagGetResponseResourceTaggingTaggedResourceObjectAPIGatewayOperation struct{…}Response for api_gateway_operation resources
Response for api_gateway_operation resources
ETag identifier for optimistic concurrency control. Formatted as “v1:
type AccountTagGetResponseResourceTaggingTaggedResourceObjectCloudflaredTunnel struct{…}Response for cloudflared_tunnel resources
Response for cloudflared_tunnel resources
ETag identifier for optimistic concurrency control. Formatted as “v1:
type AccountTagGetResponseResourceTaggingTaggedResourceObjectCustomCertificate struct{…}Response for custom_certificate resources
Response for custom_certificate resources
ETag identifier for optimistic concurrency control. Formatted as “v1:
type AccountTagGetResponseResourceTaggingTaggedResourceObjectCustomHostname struct{…}Response for custom_hostname resources
Response for custom_hostname resources
ETag identifier for optimistic concurrency control. Formatted as “v1:
type AccountTagGetResponseResourceTaggingTaggedResourceObjectD1Database struct{…}Response for d1_database resources
Response for d1_database resources
ETag identifier for optimistic concurrency control. Formatted as “v1:
type AccountTagGetResponseResourceTaggingTaggedResourceObjectDNSRecord struct{…}Response for dns_record resources
Response for dns_record resources
ETag identifier for optimistic concurrency control. Formatted as “v1:
type AccountTagGetResponseResourceTaggingTaggedResourceObjectDurableObjectNamespace struct{…}Response for durable_object_namespace resources
Response for durable_object_namespace resources
ETag identifier for optimistic concurrency control. Formatted as “v1:
type AccountTagGetResponseResourceTaggingTaggedResourceObjectGatewayList struct{…}Response for gateway_list resources
Response for gateway_list resources
ETag identifier for optimistic concurrency control. Formatted as “v1:
type AccountTagGetResponseResourceTaggingTaggedResourceObjectGatewayRule struct{…}Response for gateway_rule resources
Response for gateway_rule resources
ETag identifier for optimistic concurrency control. Formatted as “v1:
type AccountTagGetResponseResourceTaggingTaggedResourceObjectImage struct{…}Response for image resources
Response for image resources
ETag identifier for optimistic concurrency control. Formatted as “v1:
type AccountTagGetResponseResourceTaggingTaggedResourceObjectKVNamespace struct{…}Response for kv_namespace resources
Response for kv_namespace resources
ETag identifier for optimistic concurrency control. Formatted as “v1:
type AccountTagGetResponseResourceTaggingTaggedResourceObjectManagedClientCertificate struct{…}Response for managed_client_certificate resources
Response for managed_client_certificate resources
ETag identifier for optimistic concurrency control. Formatted as “v1:
type AccountTagGetResponseResourceTaggingTaggedResourceObjectQueue struct{…}Response for queue resources
Response for queue resources
ETag identifier for optimistic concurrency control. Formatted as “v1:
type AccountTagGetResponseResourceTaggingTaggedResourceObjectR2Bucket struct{…}Response for r2_bucket resources
Response for r2_bucket resources
ETag identifier for optimistic concurrency control. Formatted as “v1:
type AccountTagGetResponseResourceTaggingTaggedResourceObjectResourceShare struct{…}Response for resource_share resources
Response for resource_share resources
ETag identifier for optimistic concurrency control. Formatted as “v1:
type AccountTagGetResponseResourceTaggingTaggedResourceObjectStreamLiveInput struct{…}Response for stream_live_input resources
Response for stream_live_input resources
ETag identifier for optimistic concurrency control. Formatted as “v1:
type AccountTagGetResponseResourceTaggingTaggedResourceObjectStreamVideo struct{…}Response for stream_video resources
Response for stream_video resources
ETag identifier for optimistic concurrency control. Formatted as “v1:
type AccountTagGetResponseResourceTaggingTaggedResourceObjectWorker struct{…}Response for worker resources
Response for worker resources
ETag identifier for optimistic concurrency control. Formatted as “v1:
type AccountTagGetResponseResourceTaggingTaggedResourceObjectWorkerVersion struct{…}Response for worker_version resources
Response for worker_version resources
ETag identifier for optimistic concurrency control. Formatted as “v1:
type AccountTagGetResponseResourceTaggingTaggedResourceObjectZone struct{…}Response for zone resources
Response for zone resources
ETag identifier for optimistic concurrency control. Formatted as “v1:
Get tags for an account-level resource
package main
import (
"context"
"fmt"
"github.com/stainless-sdks/cloudflare-go"
"github.com/stainless-sdks/cloudflare-go/option"
"github.com/stainless-sdks/cloudflare-go/resource_tagging"
)
func main() {
client := cloudflare.NewClient(
option.WithAPIKey("144c9defac04969c7bfad8efaa8ea194"),
option.WithAPIEmail("user@example.com"),
)
accountTag, err := client.ResourceTagging.AccountTags.Get(context.TODO(), resource_tagging.AccountTagGetParams{
AccountID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"),
ResourceID: cloudflare.F("023e105f4ecef8ad9ca31a8372d0c353"),
ResourceType: cloudflare.F(resource_tagging.AccountTagGetParamsResourceTypeWorker),
})
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", accountTag)
}
{
"errors": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"messages": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"success": true,
"result": {
"id": "023e105f4ecef8ad9ca31a8372d0c353",
"etag": "v1:RBNvo1WzZ4oRRq0W9-hkng",
"name": "my-worker-script",
"tags": {
"environment": "production",
"team": "engineering"
},
"type": "access_application"
}
}Returns Examples
{
"errors": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"messages": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"success": true,
"result": {
"id": "023e105f4ecef8ad9ca31a8372d0c353",
"etag": "v1:RBNvo1WzZ4oRRq0W9-hkng",
"name": "my-worker-script",
"tags": {
"environment": "production",
"team": "engineering"
},
"type": "access_application"
}
}