1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. AccessTag
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi

cloudflare.AccessTag

Explore with Pulumi AI

cloudflare logo
Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi
    Deprecated: cloudflare.index/accesstag.AccessTag has been deprecated in favor of cloudflare.index/zerotrustaccesstag.ZeroTrustAccessTag

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as cloudflare from "@pulumi/cloudflare";
    
    const exampleZeroTrustAccessTag = new cloudflare.ZeroTrustAccessTag("example_zero_trust_access_tag", {
        accountId: "023e105f4ecef8ad9ca31a8372d0c353",
        name: "engineers",
    });
    
    import pulumi
    import pulumi_cloudflare as cloudflare
    
    example_zero_trust_access_tag = cloudflare.ZeroTrustAccessTag("example_zero_trust_access_tag",
        account_id="023e105f4ecef8ad9ca31a8372d0c353",
        name="engineers")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := cloudflare.NewZeroTrustAccessTag(ctx, "example_zero_trust_access_tag", &cloudflare.ZeroTrustAccessTagArgs{
    			AccountId: pulumi.String("023e105f4ecef8ad9ca31a8372d0c353"),
    			Name:      pulumi.String("engineers"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Cloudflare = Pulumi.Cloudflare;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleZeroTrustAccessTag = new Cloudflare.ZeroTrustAccessTag("example_zero_trust_access_tag", new()
        {
            AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
            Name = "engineers",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.cloudflare.ZeroTrustAccessTag;
    import com.pulumi.cloudflare.ZeroTrustAccessTagArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var exampleZeroTrustAccessTag = new ZeroTrustAccessTag("exampleZeroTrustAccessTag", ZeroTrustAccessTagArgs.builder()
                .accountId("023e105f4ecef8ad9ca31a8372d0c353")
                .name("engineers")
                .build());
    
        }
    }
    
    resources:
      exampleZeroTrustAccessTag:
        type: cloudflare:ZeroTrustAccessTag
        name: example_zero_trust_access_tag
        properties:
          accountId: 023e105f4ecef8ad9ca31a8372d0c353
          name: engineers
    

    Create AccessTag Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AccessTag(name: string, args: AccessTagArgs, opts?: CustomResourceOptions);
    @overload
    def AccessTag(resource_name: str,
                  args: AccessTagArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def AccessTag(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  account_id: Optional[str] = None,
                  name: Optional[str] = None)
    func NewAccessTag(ctx *Context, name string, args AccessTagArgs, opts ...ResourceOption) (*AccessTag, error)
    public AccessTag(string name, AccessTagArgs args, CustomResourceOptions? opts = null)
    public AccessTag(String name, AccessTagArgs args)
    public AccessTag(String name, AccessTagArgs args, CustomResourceOptions options)
    
    type: cloudflare:AccessTag
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args AccessTagArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args AccessTagArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args AccessTagArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AccessTagArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AccessTagArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    AccessTag Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The AccessTag resource accepts the following input properties:

    AccountId string
    Identifier.
    Name string
    The name of the tag
    AccountId string
    Identifier.
    Name string
    The name of the tag
    accountId String
    Identifier.
    name String
    The name of the tag
    accountId string
    Identifier.
    name string
    The name of the tag
    account_id str
    Identifier.
    name str
    The name of the tag
    accountId String
    Identifier.
    name String
    The name of the tag

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AccessTag resource produces the following output properties:

    AppCount int
    The number of applications that have this tag
    CreatedAt string
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedAt string
    AppCount int
    The number of applications that have this tag
    CreatedAt string
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedAt string
    appCount Integer
    The number of applications that have this tag
    createdAt String
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt String
    appCount number
    The number of applications that have this tag
    createdAt string
    id string
    The provider-assigned unique ID for this managed resource.
    updatedAt string
    app_count int
    The number of applications that have this tag
    created_at str
    id str
    The provider-assigned unique ID for this managed resource.
    updated_at str
    appCount Number
    The number of applications that have this tag
    createdAt String
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt String

    Look up Existing AccessTag Resource

    Get an existing AccessTag resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: AccessTagState, opts?: CustomResourceOptions): AccessTag
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            account_id: Optional[str] = None,
            app_count: Optional[int] = None,
            created_at: Optional[str] = None,
            name: Optional[str] = None,
            updated_at: Optional[str] = None) -> AccessTag
    func GetAccessTag(ctx *Context, name string, id IDInput, state *AccessTagState, opts ...ResourceOption) (*AccessTag, error)
    public static AccessTag Get(string name, Input<string> id, AccessTagState? state, CustomResourceOptions? opts = null)
    public static AccessTag get(String name, Output<String> id, AccessTagState state, CustomResourceOptions options)
    resources:  _:    type: cloudflare:AccessTag    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AccountId string
    Identifier.
    AppCount int
    The number of applications that have this tag
    CreatedAt string
    Name string
    The name of the tag
    UpdatedAt string
    AccountId string
    Identifier.
    AppCount int
    The number of applications that have this tag
    CreatedAt string
    Name string
    The name of the tag
    UpdatedAt string
    accountId String
    Identifier.
    appCount Integer
    The number of applications that have this tag
    createdAt String
    name String
    The name of the tag
    updatedAt String
    accountId string
    Identifier.
    appCount number
    The number of applications that have this tag
    createdAt string
    name string
    The name of the tag
    updatedAt string
    account_id str
    Identifier.
    app_count int
    The number of applications that have this tag
    created_at str
    name str
    The name of the tag
    updated_at str
    accountId String
    Identifier.
    appCount Number
    The number of applications that have this tag
    createdAt String
    name String
    The name of the tag
    updatedAt String

    Import

    $ pulumi import cloudflare:index/accessTag:AccessTag example '<account_id>/<tag_name>'
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Cloudflare pulumi/pulumi-cloudflare
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the cloudflare Terraform Provider.
    cloudflare logo
    Cloudflare v6.1.2 published on Monday, Apr 28, 2025 by Pulumi