1. Packages
  2. Packages
  3. Thoth
  4. API Docs
  5. browser
  6. Enrollment
Viewing docs for Thoth v0.1.15
published on Thursday, Jul 23, 2026 by Aten Security
thoth logo
Viewing docs for Thoth v0.1.15
published on Thursday, Jul 23, 2026 by Aten Security

    Create Enrollment Resource

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

    Constructor syntax

    new Enrollment(name: string, args: EnrollmentArgs, opts?: CustomResourceOptions);
    @overload
    def Enrollment(resource_name: str,
                   args: EnrollmentArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def Enrollment(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   device_id: Optional[str] = None,
                   provider_name: Optional[str] = None,
                   user_id: Optional[str] = None,
                   browser_profile: Optional[str] = None,
                   enrollment_id: Optional[str] = None,
                   last_seen_at: Optional[str] = None,
                   metadata_json: Optional[str] = None,
                   status: Optional[str] = None)
    func NewEnrollment(ctx *Context, name string, args EnrollmentArgs, opts ...ResourceOption) (*Enrollment, error)
    public Enrollment(string name, EnrollmentArgs args, CustomResourceOptions? opts = null)
    public Enrollment(String name, EnrollmentArgs args)
    public Enrollment(String name, EnrollmentArgs args, CustomResourceOptions options)
    
    type: thoth:browser:Enrollment
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "thoth_browser_enrollment" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args EnrollmentArgs
    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 EnrollmentArgs
    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 EnrollmentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EnrollmentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args EnrollmentArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var enrollmentResource = new Thoth.Browser.Enrollment("enrollmentResource", new()
    {
        DeviceId = "string",
        ProviderName = "string",
        UserId = "string",
        BrowserProfile = "string",
        EnrollmentId = "string",
        LastSeenAt = "string",
        MetadataJson = "string",
        Status = "string",
    });
    
    example, err := browser.NewEnrollment(ctx, "enrollmentResource", &browser.EnrollmentArgs{
    	DeviceId:       pulumi.String("string"),
    	ProviderName:   pulumi.String("string"),
    	UserId:         pulumi.String("string"),
    	BrowserProfile: pulumi.String("string"),
    	EnrollmentId:   pulumi.String("string"),
    	LastSeenAt:     pulumi.String("string"),
    	MetadataJson:   pulumi.String("string"),
    	Status:         pulumi.String("string"),
    })
    
    resource "thoth_browser_enrollment" "enrollmentResource" {
      lifecycle {
        create_before_destroy = true
      }
      device_id       = "string"
      provider_name   = "string"
      user_id         = "string"
      browser_profile = "string"
      enrollment_id   = "string"
      last_seen_at    = "string"
      metadata_json   = "string"
      status          = "string"
    }
    
    var enrollmentResource = new Enrollment("enrollmentResource", EnrollmentArgs.builder()
        .deviceId("string")
        .providerName("string")
        .userId("string")
        .browserProfile("string")
        .enrollmentId("string")
        .lastSeenAt("string")
        .metadataJson("string")
        .status("string")
        .build());
    
    enrollment_resource = thoth.browser.Enrollment("enrollmentResource",
        device_id="string",
        provider_name="string",
        user_id="string",
        browser_profile="string",
        enrollment_id="string",
        last_seen_at="string",
        metadata_json="string",
        status="string")
    
    const enrollmentResource = new thoth.browser.Enrollment("enrollmentResource", {
        deviceId: "string",
        providerName: "string",
        userId: "string",
        browserProfile: "string",
        enrollmentId: "string",
        lastSeenAt: "string",
        metadataJson: "string",
        status: "string",
    });
    
    type: thoth:browser:Enrollment
    properties:
        browserProfile: string
        deviceId: string
        enrollmentId: string
        lastSeenAt: string
        metadataJson: string
        providerName: string
        status: string
        userId: string
    

    Enrollment 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 Enrollment resource accepts the following input properties:

    DeviceId string
    Device identifier for enrollment.
    ProviderName string
    Browser provider slug.
    UserId string
    User identifier for enrollment.
    BrowserProfile string
    Browser profile identifier.
    EnrollmentId string
    Enrollment ID; generated by GovAPI if omitted.
    LastSeenAt string
    Last-seen timestamp (RFC3339).
    MetadataJson string
    Metadata JSON object.
    Status string
    Enrollment status (active, pending, disabled).
    DeviceId string
    Device identifier for enrollment.
    ProviderName string
    Browser provider slug.
    UserId string
    User identifier for enrollment.
    BrowserProfile string
    Browser profile identifier.
    EnrollmentId string
    Enrollment ID; generated by GovAPI if omitted.
    LastSeenAt string
    Last-seen timestamp (RFC3339).
    MetadataJson string
    Metadata JSON object.
    Status string
    Enrollment status (active, pending, disabled).
    device_id string
    Device identifier for enrollment.
    provider_name string
    Browser provider slug.
    user_id string
    User identifier for enrollment.
    browser_profile string
    Browser profile identifier.
    enrollment_id string
    Enrollment ID; generated by GovAPI if omitted.
    last_seen_at string
    Last-seen timestamp (RFC3339).
    metadata_json string
    Metadata JSON object.
    status string
    Enrollment status (active, pending, disabled).
    deviceId String
    Device identifier for enrollment.
    providerName String
    Browser provider slug.
    userId String
    User identifier for enrollment.
    browserProfile String
    Browser profile identifier.
    enrollmentId String
    Enrollment ID; generated by GovAPI if omitted.
    lastSeenAt String
    Last-seen timestamp (RFC3339).
    metadataJson String
    Metadata JSON object.
    status String
    Enrollment status (active, pending, disabled).
    deviceId string
    Device identifier for enrollment.
    providerName string
    Browser provider slug.
    userId string
    User identifier for enrollment.
    browserProfile string
    Browser profile identifier.
    enrollmentId string
    Enrollment ID; generated by GovAPI if omitted.
    lastSeenAt string
    Last-seen timestamp (RFC3339).
    metadataJson string
    Metadata JSON object.
    status string
    Enrollment status (active, pending, disabled).
    device_id str
    Device identifier for enrollment.
    provider_name str
    Browser provider slug.
    user_id str
    User identifier for enrollment.
    browser_profile str
    Browser profile identifier.
    enrollment_id str
    Enrollment ID; generated by GovAPI if omitted.
    last_seen_at str
    Last-seen timestamp (RFC3339).
    metadata_json str
    Metadata JSON object.
    status str
    Enrollment status (active, pending, disabled).
    deviceId String
    Device identifier for enrollment.
    providerName String
    Browser provider slug.
    userId String
    User identifier for enrollment.
    browserProfile String
    Browser profile identifier.
    enrollmentId String
    Enrollment ID; generated by GovAPI if omitted.
    lastSeenAt String
    Last-seen timestamp (RFC3339).
    metadataJson String
    Metadata JSON object.
    status String
    Enrollment status (active, pending, disabled).

    Outputs

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

    CreatedAt string
    Creation timestamp.
    Id string
    The provider-assigned unique ID for this managed resource.
    TenantId string
    Tenant ID from provider configuration.
    UpdatedAt string
    Update timestamp.
    CreatedAt string
    Creation timestamp.
    Id string
    The provider-assigned unique ID for this managed resource.
    TenantId string
    Tenant ID from provider configuration.
    UpdatedAt string
    Update timestamp.
    created_at string
    Creation timestamp.
    id string
    The provider-assigned unique ID for this managed resource.
    tenant_id string
    Tenant ID from provider configuration.
    updated_at string
    Update timestamp.
    createdAt String
    Creation timestamp.
    id String
    The provider-assigned unique ID for this managed resource.
    tenantId String
    Tenant ID from provider configuration.
    updatedAt String
    Update timestamp.
    createdAt string
    Creation timestamp.
    id string
    The provider-assigned unique ID for this managed resource.
    tenantId string
    Tenant ID from provider configuration.
    updatedAt string
    Update timestamp.
    created_at str
    Creation timestamp.
    id str
    The provider-assigned unique ID for this managed resource.
    tenant_id str
    Tenant ID from provider configuration.
    updated_at str
    Update timestamp.
    createdAt String
    Creation timestamp.
    id String
    The provider-assigned unique ID for this managed resource.
    tenantId String
    Tenant ID from provider configuration.
    updatedAt String
    Update timestamp.

    Look up Existing Enrollment Resource

    Get an existing Enrollment 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?: EnrollmentState, opts?: CustomResourceOptions): Enrollment
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            browser_profile: Optional[str] = None,
            created_at: Optional[str] = None,
            device_id: Optional[str] = None,
            enrollment_id: Optional[str] = None,
            last_seen_at: Optional[str] = None,
            metadata_json: Optional[str] = None,
            provider_name: Optional[str] = None,
            status: Optional[str] = None,
            tenant_id: Optional[str] = None,
            updated_at: Optional[str] = None,
            user_id: Optional[str] = None) -> Enrollment
    func GetEnrollment(ctx *Context, name string, id IDInput, state *EnrollmentState, opts ...ResourceOption) (*Enrollment, error)
    public static Enrollment Get(string name, Input<string> id, EnrollmentState? state, CustomResourceOptions? opts = null)
    public static Enrollment get(String name, Output<String> id, EnrollmentState state, CustomResourceOptions options)
    resources:  _:    type: thoth:browser:Enrollment    get:      id: ${id}
    import {
      to = thoth_browser_enrollment.example
      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:
    BrowserProfile string
    Browser profile identifier.
    CreatedAt string
    Creation timestamp.
    DeviceId string
    Device identifier for enrollment.
    EnrollmentId string
    Enrollment ID; generated by GovAPI if omitted.
    LastSeenAt string
    Last-seen timestamp (RFC3339).
    MetadataJson string
    Metadata JSON object.
    ProviderName string
    Browser provider slug.
    Status string
    Enrollment status (active, pending, disabled).
    TenantId string
    Tenant ID from provider configuration.
    UpdatedAt string
    Update timestamp.
    UserId string
    User identifier for enrollment.
    BrowserProfile string
    Browser profile identifier.
    CreatedAt string
    Creation timestamp.
    DeviceId string
    Device identifier for enrollment.
    EnrollmentId string
    Enrollment ID; generated by GovAPI if omitted.
    LastSeenAt string
    Last-seen timestamp (RFC3339).
    MetadataJson string
    Metadata JSON object.
    ProviderName string
    Browser provider slug.
    Status string
    Enrollment status (active, pending, disabled).
    TenantId string
    Tenant ID from provider configuration.
    UpdatedAt string
    Update timestamp.
    UserId string
    User identifier for enrollment.
    browser_profile string
    Browser profile identifier.
    created_at string
    Creation timestamp.
    device_id string
    Device identifier for enrollment.
    enrollment_id string
    Enrollment ID; generated by GovAPI if omitted.
    last_seen_at string
    Last-seen timestamp (RFC3339).
    metadata_json string
    Metadata JSON object.
    provider_name string
    Browser provider slug.
    status string
    Enrollment status (active, pending, disabled).
    tenant_id string
    Tenant ID from provider configuration.
    updated_at string
    Update timestamp.
    user_id string
    User identifier for enrollment.
    browserProfile String
    Browser profile identifier.
    createdAt String
    Creation timestamp.
    deviceId String
    Device identifier for enrollment.
    enrollmentId String
    Enrollment ID; generated by GovAPI if omitted.
    lastSeenAt String
    Last-seen timestamp (RFC3339).
    metadataJson String
    Metadata JSON object.
    providerName String
    Browser provider slug.
    status String
    Enrollment status (active, pending, disabled).
    tenantId String
    Tenant ID from provider configuration.
    updatedAt String
    Update timestamp.
    userId String
    User identifier for enrollment.
    browserProfile string
    Browser profile identifier.
    createdAt string
    Creation timestamp.
    deviceId string
    Device identifier for enrollment.
    enrollmentId string
    Enrollment ID; generated by GovAPI if omitted.
    lastSeenAt string
    Last-seen timestamp (RFC3339).
    metadataJson string
    Metadata JSON object.
    providerName string
    Browser provider slug.
    status string
    Enrollment status (active, pending, disabled).
    tenantId string
    Tenant ID from provider configuration.
    updatedAt string
    Update timestamp.
    userId string
    User identifier for enrollment.
    browser_profile str
    Browser profile identifier.
    created_at str
    Creation timestamp.
    device_id str
    Device identifier for enrollment.
    enrollment_id str
    Enrollment ID; generated by GovAPI if omitted.
    last_seen_at str
    Last-seen timestamp (RFC3339).
    metadata_json str
    Metadata JSON object.
    provider_name str
    Browser provider slug.
    status str
    Enrollment status (active, pending, disabled).
    tenant_id str
    Tenant ID from provider configuration.
    updated_at str
    Update timestamp.
    user_id str
    User identifier for enrollment.
    browserProfile String
    Browser profile identifier.
    createdAt String
    Creation timestamp.
    deviceId String
    Device identifier for enrollment.
    enrollmentId String
    Enrollment ID; generated by GovAPI if omitted.
    lastSeenAt String
    Last-seen timestamp (RFC3339).
    metadataJson String
    Metadata JSON object.
    providerName String
    Browser provider slug.
    status String
    Enrollment status (active, pending, disabled).
    tenantId String
    Tenant ID from provider configuration.
    updatedAt String
    Update timestamp.
    userId String
    User identifier for enrollment.

    Package Details

    Repository
    thoth atensecurity/pulumi-thoth
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the thoth Terraform Provider.
    thoth logo
    Viewing docs for Thoth v0.1.15
    published on Thursday, Jul 23, 2026 by Aten Security

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial