1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. networkservices
  5. WasmPlugin
Google Cloud v9.3.0 published on Tuesday, Oct 7, 2025 by Pulumi

gcp.networkservices.WasmPlugin

Get Started
gcp logo
Google Cloud v9.3.0 published on Tuesday, Oct 7, 2025 by Pulumi

    WasmPlugin is a resource representing a service executing a customer-provided Wasm module.

    To get more information about WasmPlugin, see:

    Example Usage

    Create WasmPlugin Resource

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

    Constructor syntax

    new WasmPlugin(name: string, args: WasmPluginArgs, opts?: CustomResourceOptions);
    @overload
    def WasmPlugin(resource_name: str,
                   args: WasmPluginArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def WasmPlugin(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   main_version_id: Optional[str] = None,
                   versions: Optional[Sequence[WasmPluginVersionArgs]] = None,
                   description: Optional[str] = None,
                   labels: Optional[Mapping[str, str]] = None,
                   location: Optional[str] = None,
                   log_config: Optional[WasmPluginLogConfigArgs] = None,
                   name: Optional[str] = None,
                   project: Optional[str] = None)
    func NewWasmPlugin(ctx *Context, name string, args WasmPluginArgs, opts ...ResourceOption) (*WasmPlugin, error)
    public WasmPlugin(string name, WasmPluginArgs args, CustomResourceOptions? opts = null)
    public WasmPlugin(String name, WasmPluginArgs args)
    public WasmPlugin(String name, WasmPluginArgs args, CustomResourceOptions options)
    
    type: gcp:networkservices:WasmPlugin
    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 WasmPluginArgs
    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 WasmPluginArgs
    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 WasmPluginArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args WasmPluginArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args WasmPluginArgs
    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 wasmPluginResource = new Gcp.NetworkServices.WasmPlugin("wasmPluginResource", new()
    {
        MainVersionId = "string",
        Versions = new[]
        {
            new Gcp.NetworkServices.Inputs.WasmPluginVersionArgs
            {
                VersionName = "string",
                CreateTime = "string",
                Description = "string",
                ImageDigest = "string",
                ImageUri = "string",
                Labels = 
                {
                    { "string", "string" },
                },
                PluginConfigData = "string",
                PluginConfigDigest = "string",
                PluginConfigUri = "string",
                UpdateTime = "string",
            },
        },
        Description = "string",
        Labels = 
        {
            { "string", "string" },
        },
        Location = "string",
        LogConfig = new Gcp.NetworkServices.Inputs.WasmPluginLogConfigArgs
        {
            Enable = false,
            MinLogLevel = "string",
            SampleRate = 0,
        },
        Name = "string",
        Project = "string",
    });
    
    example, err := networkservices.NewWasmPlugin(ctx, "wasmPluginResource", &networkservices.WasmPluginArgs{
    	MainVersionId: pulumi.String("string"),
    	Versions: networkservices.WasmPluginVersionArray{
    		&networkservices.WasmPluginVersionArgs{
    			VersionName: pulumi.String("string"),
    			CreateTime:  pulumi.String("string"),
    			Description: pulumi.String("string"),
    			ImageDigest: pulumi.String("string"),
    			ImageUri:    pulumi.String("string"),
    			Labels: pulumi.StringMap{
    				"string": pulumi.String("string"),
    			},
    			PluginConfigData:   pulumi.String("string"),
    			PluginConfigDigest: pulumi.String("string"),
    			PluginConfigUri:    pulumi.String("string"),
    			UpdateTime:         pulumi.String("string"),
    		},
    	},
    	Description: pulumi.String("string"),
    	Labels: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Location: pulumi.String("string"),
    	LogConfig: &networkservices.WasmPluginLogConfigArgs{
    		Enable:      pulumi.Bool(false),
    		MinLogLevel: pulumi.String("string"),
    		SampleRate:  pulumi.Float64(0),
    	},
    	Name:    pulumi.String("string"),
    	Project: pulumi.String("string"),
    })
    
    var wasmPluginResource = new WasmPlugin("wasmPluginResource", WasmPluginArgs.builder()
        .mainVersionId("string")
        .versions(WasmPluginVersionArgs.builder()
            .versionName("string")
            .createTime("string")
            .description("string")
            .imageDigest("string")
            .imageUri("string")
            .labels(Map.of("string", "string"))
            .pluginConfigData("string")
            .pluginConfigDigest("string")
            .pluginConfigUri("string")
            .updateTime("string")
            .build())
        .description("string")
        .labels(Map.of("string", "string"))
        .location("string")
        .logConfig(WasmPluginLogConfigArgs.builder()
            .enable(false)
            .minLogLevel("string")
            .sampleRate(0.0)
            .build())
        .name("string")
        .project("string")
        .build());
    
    wasm_plugin_resource = gcp.networkservices.WasmPlugin("wasmPluginResource",
        main_version_id="string",
        versions=[{
            "version_name": "string",
            "create_time": "string",
            "description": "string",
            "image_digest": "string",
            "image_uri": "string",
            "labels": {
                "string": "string",
            },
            "plugin_config_data": "string",
            "plugin_config_digest": "string",
            "plugin_config_uri": "string",
            "update_time": "string",
        }],
        description="string",
        labels={
            "string": "string",
        },
        location="string",
        log_config={
            "enable": False,
            "min_log_level": "string",
            "sample_rate": 0,
        },
        name="string",
        project="string")
    
    const wasmPluginResource = new gcp.networkservices.WasmPlugin("wasmPluginResource", {
        mainVersionId: "string",
        versions: [{
            versionName: "string",
            createTime: "string",
            description: "string",
            imageDigest: "string",
            imageUri: "string",
            labels: {
                string: "string",
            },
            pluginConfigData: "string",
            pluginConfigDigest: "string",
            pluginConfigUri: "string",
            updateTime: "string",
        }],
        description: "string",
        labels: {
            string: "string",
        },
        location: "string",
        logConfig: {
            enable: false,
            minLogLevel: "string",
            sampleRate: 0,
        },
        name: "string",
        project: "string",
    });
    
    type: gcp:networkservices:WasmPlugin
    properties:
        description: string
        labels:
            string: string
        location: string
        logConfig:
            enable: false
            minLogLevel: string
            sampleRate: 0
        mainVersionId: string
        name: string
        project: string
        versions:
            - createTime: string
              description: string
              imageDigest: string
              imageUri: string
              labels:
                string: string
              pluginConfigData: string
              pluginConfigDigest: string
              pluginConfigUri: string
              updateTime: string
              versionName: string
    

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

    MainVersionId string
    The ID of the WasmPluginVersion resource that is the currently serving one. The version referred to must be a child of this WasmPlugin resource and should be listed in the "versions" field.
    Versions List<WasmPluginVersion>
    All versions of this WasmPlugin resource in the key-value format. The key is the resource ID, and the value is the VersionDetails object. Structure is documented below.
    Description string
    Optional. A human-readable description of the resource.
    Labels Dictionary<string, string>
    Optional. Set of labels associated with the WasmPlugin resource. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
    Location string
    The location of the traffic extension
    LogConfig WasmPluginLogConfig
    Optional. Specifies the logging options for the activity performed by this plugin. If logging is enabled, plugin logs are exported to Cloud Logging. Note that the settings relate to the logs generated by using logging statements in your Wasm code. Structure is documented below.
    Name string
    Identifier. Name of the WasmPlugin resource.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    MainVersionId string
    The ID of the WasmPluginVersion resource that is the currently serving one. The version referred to must be a child of this WasmPlugin resource and should be listed in the "versions" field.
    Versions []WasmPluginVersionArgs
    All versions of this WasmPlugin resource in the key-value format. The key is the resource ID, and the value is the VersionDetails object. Structure is documented below.
    Description string
    Optional. A human-readable description of the resource.
    Labels map[string]string
    Optional. Set of labels associated with the WasmPlugin resource. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
    Location string
    The location of the traffic extension
    LogConfig WasmPluginLogConfigArgs
    Optional. Specifies the logging options for the activity performed by this plugin. If logging is enabled, plugin logs are exported to Cloud Logging. Note that the settings relate to the logs generated by using logging statements in your Wasm code. Structure is documented below.
    Name string
    Identifier. Name of the WasmPlugin resource.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    mainVersionId String
    The ID of the WasmPluginVersion resource that is the currently serving one. The version referred to must be a child of this WasmPlugin resource and should be listed in the "versions" field.
    versions List<WasmPluginVersion>
    All versions of this WasmPlugin resource in the key-value format. The key is the resource ID, and the value is the VersionDetails object. Structure is documented below.
    description String
    Optional. A human-readable description of the resource.
    labels Map<String,String>
    Optional. Set of labels associated with the WasmPlugin resource. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
    location String
    The location of the traffic extension
    logConfig WasmPluginLogConfig
    Optional. Specifies the logging options for the activity performed by this plugin. If logging is enabled, plugin logs are exported to Cloud Logging. Note that the settings relate to the logs generated by using logging statements in your Wasm code. Structure is documented below.
    name String
    Identifier. Name of the WasmPlugin resource.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    mainVersionId string
    The ID of the WasmPluginVersion resource that is the currently serving one. The version referred to must be a child of this WasmPlugin resource and should be listed in the "versions" field.
    versions WasmPluginVersion[]
    All versions of this WasmPlugin resource in the key-value format. The key is the resource ID, and the value is the VersionDetails object. Structure is documented below.
    description string
    Optional. A human-readable description of the resource.
    labels {[key: string]: string}
    Optional. Set of labels associated with the WasmPlugin resource. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
    location string
    The location of the traffic extension
    logConfig WasmPluginLogConfig
    Optional. Specifies the logging options for the activity performed by this plugin. If logging is enabled, plugin logs are exported to Cloud Logging. Note that the settings relate to the logs generated by using logging statements in your Wasm code. Structure is documented below.
    name string
    Identifier. Name of the WasmPlugin resource.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    main_version_id str
    The ID of the WasmPluginVersion resource that is the currently serving one. The version referred to must be a child of this WasmPlugin resource and should be listed in the "versions" field.
    versions Sequence[WasmPluginVersionArgs]
    All versions of this WasmPlugin resource in the key-value format. The key is the resource ID, and the value is the VersionDetails object. Structure is documented below.
    description str
    Optional. A human-readable description of the resource.
    labels Mapping[str, str]
    Optional. Set of labels associated with the WasmPlugin resource. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
    location str
    The location of the traffic extension
    log_config WasmPluginLogConfigArgs
    Optional. Specifies the logging options for the activity performed by this plugin. If logging is enabled, plugin logs are exported to Cloud Logging. Note that the settings relate to the logs generated by using logging statements in your Wasm code. Structure is documented below.
    name str
    Identifier. Name of the WasmPlugin resource.
    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    mainVersionId String
    The ID of the WasmPluginVersion resource that is the currently serving one. The version referred to must be a child of this WasmPlugin resource and should be listed in the "versions" field.
    versions List<Property Map>
    All versions of this WasmPlugin resource in the key-value format. The key is the resource ID, and the value is the VersionDetails object. Structure is documented below.
    description String
    Optional. A human-readable description of the resource.
    labels Map<String>
    Optional. Set of labels associated with the WasmPlugin resource. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
    location String
    The location of the traffic extension
    logConfig Property Map
    Optional. Specifies the logging options for the activity performed by this plugin. If logging is enabled, plugin logs are exported to Cloud Logging. Note that the settings relate to the logs generated by using logging statements in your Wasm code. Structure is documented below.
    name String
    Identifier. Name of the WasmPlugin resource.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

    Outputs

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

    CreateTime string
    Output only. The timestamp when the resource was created.
    EffectiveLabels Dictionary<string, string>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    Id string
    The provider-assigned unique ID for this managed resource.
    PulumiLabels Dictionary<string, string>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    UpdateTime string
    Output only. The timestamp when the resource was updated.
    UsedBies List<WasmPluginUsedBy>
    Output only. List of all extensions that use this WasmPlugin resource. Structure is documented below.
    CreateTime string
    Output only. The timestamp when the resource was created.
    EffectiveLabels map[string]string
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    Id string
    The provider-assigned unique ID for this managed resource.
    PulumiLabels map[string]string
    The combination of labels configured directly on the resource and default labels configured on the provider.
    UpdateTime string
    Output only. The timestamp when the resource was updated.
    UsedBies []WasmPluginUsedBy
    Output only. List of all extensions that use this WasmPlugin resource. Structure is documented below.
    createTime String
    Output only. The timestamp when the resource was created.
    effectiveLabels Map<String,String>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    id String
    The provider-assigned unique ID for this managed resource.
    pulumiLabels Map<String,String>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    updateTime String
    Output only. The timestamp when the resource was updated.
    usedBies List<WasmPluginUsedBy>
    Output only. List of all extensions that use this WasmPlugin resource. Structure is documented below.
    createTime string
    Output only. The timestamp when the resource was created.
    effectiveLabels {[key: string]: string}
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    id string
    The provider-assigned unique ID for this managed resource.
    pulumiLabels {[key: string]: string}
    The combination of labels configured directly on the resource and default labels configured on the provider.
    updateTime string
    Output only. The timestamp when the resource was updated.
    usedBies WasmPluginUsedBy[]
    Output only. List of all extensions that use this WasmPlugin resource. Structure is documented below.
    create_time str
    Output only. The timestamp when the resource was created.
    effective_labels Mapping[str, str]
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    id str
    The provider-assigned unique ID for this managed resource.
    pulumi_labels Mapping[str, str]
    The combination of labels configured directly on the resource and default labels configured on the provider.
    update_time str
    Output only. The timestamp when the resource was updated.
    used_bies Sequence[WasmPluginUsedBy]
    Output only. List of all extensions that use this WasmPlugin resource. Structure is documented below.
    createTime String
    Output only. The timestamp when the resource was created.
    effectiveLabels Map<String>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    id String
    The provider-assigned unique ID for this managed resource.
    pulumiLabels Map<String>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    updateTime String
    Output only. The timestamp when the resource was updated.
    usedBies List<Property Map>
    Output only. List of all extensions that use this WasmPlugin resource. Structure is documented below.

    Look up Existing WasmPlugin Resource

    Get an existing WasmPlugin 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?: WasmPluginState, opts?: CustomResourceOptions): WasmPlugin
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            create_time: Optional[str] = None,
            description: Optional[str] = None,
            effective_labels: Optional[Mapping[str, str]] = None,
            labels: Optional[Mapping[str, str]] = None,
            location: Optional[str] = None,
            log_config: Optional[WasmPluginLogConfigArgs] = None,
            main_version_id: Optional[str] = None,
            name: Optional[str] = None,
            project: Optional[str] = None,
            pulumi_labels: Optional[Mapping[str, str]] = None,
            update_time: Optional[str] = None,
            used_bies: Optional[Sequence[WasmPluginUsedByArgs]] = None,
            versions: Optional[Sequence[WasmPluginVersionArgs]] = None) -> WasmPlugin
    func GetWasmPlugin(ctx *Context, name string, id IDInput, state *WasmPluginState, opts ...ResourceOption) (*WasmPlugin, error)
    public static WasmPlugin Get(string name, Input<string> id, WasmPluginState? state, CustomResourceOptions? opts = null)
    public static WasmPlugin get(String name, Output<String> id, WasmPluginState state, CustomResourceOptions options)
    resources:  _:    type: gcp:networkservices:WasmPlugin    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:
    CreateTime string
    Output only. The timestamp when the resource was created.
    Description string
    Optional. A human-readable description of the resource.
    EffectiveLabels Dictionary<string, string>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    Labels Dictionary<string, string>
    Optional. Set of labels associated with the WasmPlugin resource. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
    Location string
    The location of the traffic extension
    LogConfig WasmPluginLogConfig
    Optional. Specifies the logging options for the activity performed by this plugin. If logging is enabled, plugin logs are exported to Cloud Logging. Note that the settings relate to the logs generated by using logging statements in your Wasm code. Structure is documented below.
    MainVersionId string
    The ID of the WasmPluginVersion resource that is the currently serving one. The version referred to must be a child of this WasmPlugin resource and should be listed in the "versions" field.
    Name string
    Identifier. Name of the WasmPlugin resource.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    PulumiLabels Dictionary<string, string>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    UpdateTime string
    Output only. The timestamp when the resource was updated.
    UsedBies List<WasmPluginUsedBy>
    Output only. List of all extensions that use this WasmPlugin resource. Structure is documented below.
    Versions List<WasmPluginVersion>
    All versions of this WasmPlugin resource in the key-value format. The key is the resource ID, and the value is the VersionDetails object. Structure is documented below.
    CreateTime string
    Output only. The timestamp when the resource was created.
    Description string
    Optional. A human-readable description of the resource.
    EffectiveLabels map[string]string
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    Labels map[string]string
    Optional. Set of labels associated with the WasmPlugin resource. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
    Location string
    The location of the traffic extension
    LogConfig WasmPluginLogConfigArgs
    Optional. Specifies the logging options for the activity performed by this plugin. If logging is enabled, plugin logs are exported to Cloud Logging. Note that the settings relate to the logs generated by using logging statements in your Wasm code. Structure is documented below.
    MainVersionId string
    The ID of the WasmPluginVersion resource that is the currently serving one. The version referred to must be a child of this WasmPlugin resource and should be listed in the "versions" field.
    Name string
    Identifier. Name of the WasmPlugin resource.
    Project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    PulumiLabels map[string]string
    The combination of labels configured directly on the resource and default labels configured on the provider.
    UpdateTime string
    Output only. The timestamp when the resource was updated.
    UsedBies []WasmPluginUsedByArgs
    Output only. List of all extensions that use this WasmPlugin resource. Structure is documented below.
    Versions []WasmPluginVersionArgs
    All versions of this WasmPlugin resource in the key-value format. The key is the resource ID, and the value is the VersionDetails object. Structure is documented below.
    createTime String
    Output only. The timestamp when the resource was created.
    description String
    Optional. A human-readable description of the resource.
    effectiveLabels Map<String,String>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    labels Map<String,String>
    Optional. Set of labels associated with the WasmPlugin resource. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
    location String
    The location of the traffic extension
    logConfig WasmPluginLogConfig
    Optional. Specifies the logging options for the activity performed by this plugin. If logging is enabled, plugin logs are exported to Cloud Logging. Note that the settings relate to the logs generated by using logging statements in your Wasm code. Structure is documented below.
    mainVersionId String
    The ID of the WasmPluginVersion resource that is the currently serving one. The version referred to must be a child of this WasmPlugin resource and should be listed in the "versions" field.
    name String
    Identifier. Name of the WasmPlugin resource.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    pulumiLabels Map<String,String>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    updateTime String
    Output only. The timestamp when the resource was updated.
    usedBies List<WasmPluginUsedBy>
    Output only. List of all extensions that use this WasmPlugin resource. Structure is documented below.
    versions List<WasmPluginVersion>
    All versions of this WasmPlugin resource in the key-value format. The key is the resource ID, and the value is the VersionDetails object. Structure is documented below.
    createTime string
    Output only. The timestamp when the resource was created.
    description string
    Optional. A human-readable description of the resource.
    effectiveLabels {[key: string]: string}
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    labels {[key: string]: string}
    Optional. Set of labels associated with the WasmPlugin resource. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
    location string
    The location of the traffic extension
    logConfig WasmPluginLogConfig
    Optional. Specifies the logging options for the activity performed by this plugin. If logging is enabled, plugin logs are exported to Cloud Logging. Note that the settings relate to the logs generated by using logging statements in your Wasm code. Structure is documented below.
    mainVersionId string
    The ID of the WasmPluginVersion resource that is the currently serving one. The version referred to must be a child of this WasmPlugin resource and should be listed in the "versions" field.
    name string
    Identifier. Name of the WasmPlugin resource.
    project string
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    pulumiLabels {[key: string]: string}
    The combination of labels configured directly on the resource and default labels configured on the provider.
    updateTime string
    Output only. The timestamp when the resource was updated.
    usedBies WasmPluginUsedBy[]
    Output only. List of all extensions that use this WasmPlugin resource. Structure is documented below.
    versions WasmPluginVersion[]
    All versions of this WasmPlugin resource in the key-value format. The key is the resource ID, and the value is the VersionDetails object. Structure is documented below.
    create_time str
    Output only. The timestamp when the resource was created.
    description str
    Optional. A human-readable description of the resource.
    effective_labels Mapping[str, str]
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    labels Mapping[str, str]
    Optional. Set of labels associated with the WasmPlugin resource. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
    location str
    The location of the traffic extension
    log_config WasmPluginLogConfigArgs
    Optional. Specifies the logging options for the activity performed by this plugin. If logging is enabled, plugin logs are exported to Cloud Logging. Note that the settings relate to the logs generated by using logging statements in your Wasm code. Structure is documented below.
    main_version_id str
    The ID of the WasmPluginVersion resource that is the currently serving one. The version referred to must be a child of this WasmPlugin resource and should be listed in the "versions" field.
    name str
    Identifier. Name of the WasmPlugin resource.
    project str
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    pulumi_labels Mapping[str, str]
    The combination of labels configured directly on the resource and default labels configured on the provider.
    update_time str
    Output only. The timestamp when the resource was updated.
    used_bies Sequence[WasmPluginUsedByArgs]
    Output only. List of all extensions that use this WasmPlugin resource. Structure is documented below.
    versions Sequence[WasmPluginVersionArgs]
    All versions of this WasmPlugin resource in the key-value format. The key is the resource ID, and the value is the VersionDetails object. Structure is documented below.
    createTime String
    Output only. The timestamp when the resource was created.
    description String
    Optional. A human-readable description of the resource.
    effectiveLabels Map<String>
    All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
    labels Map<String>
    Optional. Set of labels associated with the WasmPlugin resource. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.
    location String
    The location of the traffic extension
    logConfig Property Map
    Optional. Specifies the logging options for the activity performed by this plugin. If logging is enabled, plugin logs are exported to Cloud Logging. Note that the settings relate to the logs generated by using logging statements in your Wasm code. Structure is documented below.
    mainVersionId String
    The ID of the WasmPluginVersion resource that is the currently serving one. The version referred to must be a child of this WasmPlugin resource and should be listed in the "versions" field.
    name String
    Identifier. Name of the WasmPlugin resource.
    project String
    The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
    pulumiLabels Map<String>
    The combination of labels configured directly on the resource and default labels configured on the provider.
    updateTime String
    Output only. The timestamp when the resource was updated.
    usedBies List<Property Map>
    Output only. List of all extensions that use this WasmPlugin resource. Structure is documented below.
    versions List<Property Map>
    All versions of this WasmPlugin resource in the key-value format. The key is the resource ID, and the value is the VersionDetails object. Structure is documented below.

    Supporting Types

    WasmPluginLogConfig, WasmPluginLogConfigArgs

    Enable bool
    Optional. Specifies whether to enable logging for activity by this plugin.
    MinLogLevel string
    Non-empty default. Specificies the lowest level of the plugin logs that are exported to Cloud Logging. This setting relates to the logs generated by using logging statements in your Wasm code. This field is can be set only if logging is enabled for the plugin. If the field is not provided when logging is enabled, it is set to INFO by default. Possible values are: LOG_LEVEL_UNSPECIFIED, TRACE, DEBUG, INFO, WARN, ERROR, CRITICAL.
    SampleRate double
    Non-empty default. Configures the sampling rate of activity logs, where 1.0 means all logged activity is reported and 0.0 means no activity is reported. A floating point value between 0.0 and 1.0 indicates that a percentage of log messages is stored. The default value when logging is enabled is 1.0. The value of the field must be between 0 and 1 (inclusive). This field can be specified only if logging is enabled for this plugin.
    Enable bool
    Optional. Specifies whether to enable logging for activity by this plugin.
    MinLogLevel string
    Non-empty default. Specificies the lowest level of the plugin logs that are exported to Cloud Logging. This setting relates to the logs generated by using logging statements in your Wasm code. This field is can be set only if logging is enabled for the plugin. If the field is not provided when logging is enabled, it is set to INFO by default. Possible values are: LOG_LEVEL_UNSPECIFIED, TRACE, DEBUG, INFO, WARN, ERROR, CRITICAL.
    SampleRate float64
    Non-empty default. Configures the sampling rate of activity logs, where 1.0 means all logged activity is reported and 0.0 means no activity is reported. A floating point value between 0.0 and 1.0 indicates that a percentage of log messages is stored. The default value when logging is enabled is 1.0. The value of the field must be between 0 and 1 (inclusive). This field can be specified only if logging is enabled for this plugin.
    enable Boolean
    Optional. Specifies whether to enable logging for activity by this plugin.
    minLogLevel String
    Non-empty default. Specificies the lowest level of the plugin logs that are exported to Cloud Logging. This setting relates to the logs generated by using logging statements in your Wasm code. This field is can be set only if logging is enabled for the plugin. If the field is not provided when logging is enabled, it is set to INFO by default. Possible values are: LOG_LEVEL_UNSPECIFIED, TRACE, DEBUG, INFO, WARN, ERROR, CRITICAL.
    sampleRate Double
    Non-empty default. Configures the sampling rate of activity logs, where 1.0 means all logged activity is reported and 0.0 means no activity is reported. A floating point value between 0.0 and 1.0 indicates that a percentage of log messages is stored. The default value when logging is enabled is 1.0. The value of the field must be between 0 and 1 (inclusive). This field can be specified only if logging is enabled for this plugin.
    enable boolean
    Optional. Specifies whether to enable logging for activity by this plugin.
    minLogLevel string
    Non-empty default. Specificies the lowest level of the plugin logs that are exported to Cloud Logging. This setting relates to the logs generated by using logging statements in your Wasm code. This field is can be set only if logging is enabled for the plugin. If the field is not provided when logging is enabled, it is set to INFO by default. Possible values are: LOG_LEVEL_UNSPECIFIED, TRACE, DEBUG, INFO, WARN, ERROR, CRITICAL.
    sampleRate number
    Non-empty default. Configures the sampling rate of activity logs, where 1.0 means all logged activity is reported and 0.0 means no activity is reported. A floating point value between 0.0 and 1.0 indicates that a percentage of log messages is stored. The default value when logging is enabled is 1.0. The value of the field must be between 0 and 1 (inclusive). This field can be specified only if logging is enabled for this plugin.
    enable bool
    Optional. Specifies whether to enable logging for activity by this plugin.
    min_log_level str
    Non-empty default. Specificies the lowest level of the plugin logs that are exported to Cloud Logging. This setting relates to the logs generated by using logging statements in your Wasm code. This field is can be set only if logging is enabled for the plugin. If the field is not provided when logging is enabled, it is set to INFO by default. Possible values are: LOG_LEVEL_UNSPECIFIED, TRACE, DEBUG, INFO, WARN, ERROR, CRITICAL.
    sample_rate float
    Non-empty default. Configures the sampling rate of activity logs, where 1.0 means all logged activity is reported and 0.0 means no activity is reported. A floating point value between 0.0 and 1.0 indicates that a percentage of log messages is stored. The default value when logging is enabled is 1.0. The value of the field must be between 0 and 1 (inclusive). This field can be specified only if logging is enabled for this plugin.
    enable Boolean
    Optional. Specifies whether to enable logging for activity by this plugin.
    minLogLevel String
    Non-empty default. Specificies the lowest level of the plugin logs that are exported to Cloud Logging. This setting relates to the logs generated by using logging statements in your Wasm code. This field is can be set only if logging is enabled for the plugin. If the field is not provided when logging is enabled, it is set to INFO by default. Possible values are: LOG_LEVEL_UNSPECIFIED, TRACE, DEBUG, INFO, WARN, ERROR, CRITICAL.
    sampleRate Number
    Non-empty default. Configures the sampling rate of activity logs, where 1.0 means all logged activity is reported and 0.0 means no activity is reported. A floating point value between 0.0 and 1.0 indicates that a percentage of log messages is stored. The default value when logging is enabled is 1.0. The value of the field must be between 0 and 1 (inclusive). This field can be specified only if logging is enabled for this plugin.

    WasmPluginUsedBy, WasmPluginUsedByArgs

    Name string
    Identifier. Name of the WasmPlugin resource.
    Name string
    Identifier. Name of the WasmPlugin resource.
    name String
    Identifier. Name of the WasmPlugin resource.
    name string
    Identifier. Name of the WasmPlugin resource.
    name str
    Identifier. Name of the WasmPlugin resource.
    name String
    Identifier. Name of the WasmPlugin resource.

    WasmPluginVersion, WasmPluginVersionArgs

    VersionName string
    The identifier for this object. Format specified above.
    CreateTime string
    (Output) Output only. The timestamp when the resource was created.
    Description string
    Optional. A human-readable description of the resource.
    ImageDigest string
    (Output) Output only. The resolved digest for the image specified in the image field. The digest is resolved during the creation of WasmPluginVersion resource. This field holds the digest value, regardless of whether a tag or digest was originally specified in the image field.
    ImageUri string
    Optional. URI of the container image containing the plugin, stored in the Artifact Registry. When a new WasmPluginVersion resource is created, the digest of the container image is saved in the imageDigest field. When downloading an image, the digest value is used instead of an image tag.
    Labels Dictionary<string, string>
    Optional. Set of labels associated with the WasmPlugin resource.
    PluginConfigData string
    A base64-encoded string containing the configuration for the plugin. The configuration is provided to the plugin at runtime through the ON_CONFIGURE callback. When a new WasmPluginVersion resource is created, the digest of the contents is saved in the pluginConfigDigest field. Conflics with pluginConfigUri.
    PluginConfigDigest string
    (Output) Output only. This field holds the digest (usually checksum) value for the plugin configuration. The value is calculated based on the contents of pluginConfigData or the container image defined by the pluginConfigUri field.
    PluginConfigUri string
    URI of the plugin configuration stored in the Artifact Registry. The configuration is provided to the plugin at runtime through the ON_CONFIGURE callback. The container image must contain only a single file with the name plugin.config. When a new WasmPluginVersion resource is created, the digest of the container image is saved in the pluginConfigDigest field. Conflics with pluginConfigData.
    UpdateTime string
    (Output) Output only. The timestamp when the resource was updated.
    VersionName string
    The identifier for this object. Format specified above.
    CreateTime string
    (Output) Output only. The timestamp when the resource was created.
    Description string
    Optional. A human-readable description of the resource.
    ImageDigest string
    (Output) Output only. The resolved digest for the image specified in the image field. The digest is resolved during the creation of WasmPluginVersion resource. This field holds the digest value, regardless of whether a tag or digest was originally specified in the image field.
    ImageUri string
    Optional. URI of the container image containing the plugin, stored in the Artifact Registry. When a new WasmPluginVersion resource is created, the digest of the container image is saved in the imageDigest field. When downloading an image, the digest value is used instead of an image tag.
    Labels map[string]string
    Optional. Set of labels associated with the WasmPlugin resource.
    PluginConfigData string
    A base64-encoded string containing the configuration for the plugin. The configuration is provided to the plugin at runtime through the ON_CONFIGURE callback. When a new WasmPluginVersion resource is created, the digest of the contents is saved in the pluginConfigDigest field. Conflics with pluginConfigUri.
    PluginConfigDigest string
    (Output) Output only. This field holds the digest (usually checksum) value for the plugin configuration. The value is calculated based on the contents of pluginConfigData or the container image defined by the pluginConfigUri field.
    PluginConfigUri string
    URI of the plugin configuration stored in the Artifact Registry. The configuration is provided to the plugin at runtime through the ON_CONFIGURE callback. The container image must contain only a single file with the name plugin.config. When a new WasmPluginVersion resource is created, the digest of the container image is saved in the pluginConfigDigest field. Conflics with pluginConfigData.
    UpdateTime string
    (Output) Output only. The timestamp when the resource was updated.
    versionName String
    The identifier for this object. Format specified above.
    createTime String
    (Output) Output only. The timestamp when the resource was created.
    description String
    Optional. A human-readable description of the resource.
    imageDigest String
    (Output) Output only. The resolved digest for the image specified in the image field. The digest is resolved during the creation of WasmPluginVersion resource. This field holds the digest value, regardless of whether a tag or digest was originally specified in the image field.
    imageUri String
    Optional. URI of the container image containing the plugin, stored in the Artifact Registry. When a new WasmPluginVersion resource is created, the digest of the container image is saved in the imageDigest field. When downloading an image, the digest value is used instead of an image tag.
    labels Map<String,String>
    Optional. Set of labels associated with the WasmPlugin resource.
    pluginConfigData String
    A base64-encoded string containing the configuration for the plugin. The configuration is provided to the plugin at runtime through the ON_CONFIGURE callback. When a new WasmPluginVersion resource is created, the digest of the contents is saved in the pluginConfigDigest field. Conflics with pluginConfigUri.
    pluginConfigDigest String
    (Output) Output only. This field holds the digest (usually checksum) value for the plugin configuration. The value is calculated based on the contents of pluginConfigData or the container image defined by the pluginConfigUri field.
    pluginConfigUri String
    URI of the plugin configuration stored in the Artifact Registry. The configuration is provided to the plugin at runtime through the ON_CONFIGURE callback. The container image must contain only a single file with the name plugin.config. When a new WasmPluginVersion resource is created, the digest of the container image is saved in the pluginConfigDigest field. Conflics with pluginConfigData.
    updateTime String
    (Output) Output only. The timestamp when the resource was updated.
    versionName string
    The identifier for this object. Format specified above.
    createTime string
    (Output) Output only. The timestamp when the resource was created.
    description string
    Optional. A human-readable description of the resource.
    imageDigest string
    (Output) Output only. The resolved digest for the image specified in the image field. The digest is resolved during the creation of WasmPluginVersion resource. This field holds the digest value, regardless of whether a tag or digest was originally specified in the image field.
    imageUri string
    Optional. URI of the container image containing the plugin, stored in the Artifact Registry. When a new WasmPluginVersion resource is created, the digest of the container image is saved in the imageDigest field. When downloading an image, the digest value is used instead of an image tag.
    labels {[key: string]: string}
    Optional. Set of labels associated with the WasmPlugin resource.
    pluginConfigData string
    A base64-encoded string containing the configuration for the plugin. The configuration is provided to the plugin at runtime through the ON_CONFIGURE callback. When a new WasmPluginVersion resource is created, the digest of the contents is saved in the pluginConfigDigest field. Conflics with pluginConfigUri.
    pluginConfigDigest string
    (Output) Output only. This field holds the digest (usually checksum) value for the plugin configuration. The value is calculated based on the contents of pluginConfigData or the container image defined by the pluginConfigUri field.
    pluginConfigUri string
    URI of the plugin configuration stored in the Artifact Registry. The configuration is provided to the plugin at runtime through the ON_CONFIGURE callback. The container image must contain only a single file with the name plugin.config. When a new WasmPluginVersion resource is created, the digest of the container image is saved in the pluginConfigDigest field. Conflics with pluginConfigData.
    updateTime string
    (Output) Output only. The timestamp when the resource was updated.
    version_name str
    The identifier for this object. Format specified above.
    create_time str
    (Output) Output only. The timestamp when the resource was created.
    description str
    Optional. A human-readable description of the resource.
    image_digest str
    (Output) Output only. The resolved digest for the image specified in the image field. The digest is resolved during the creation of WasmPluginVersion resource. This field holds the digest value, regardless of whether a tag or digest was originally specified in the image field.
    image_uri str
    Optional. URI of the container image containing the plugin, stored in the Artifact Registry. When a new WasmPluginVersion resource is created, the digest of the container image is saved in the imageDigest field. When downloading an image, the digest value is used instead of an image tag.
    labels Mapping[str, str]
    Optional. Set of labels associated with the WasmPlugin resource.
    plugin_config_data str
    A base64-encoded string containing the configuration for the plugin. The configuration is provided to the plugin at runtime through the ON_CONFIGURE callback. When a new WasmPluginVersion resource is created, the digest of the contents is saved in the pluginConfigDigest field. Conflics with pluginConfigUri.
    plugin_config_digest str
    (Output) Output only. This field holds the digest (usually checksum) value for the plugin configuration. The value is calculated based on the contents of pluginConfigData or the container image defined by the pluginConfigUri field.
    plugin_config_uri str
    URI of the plugin configuration stored in the Artifact Registry. The configuration is provided to the plugin at runtime through the ON_CONFIGURE callback. The container image must contain only a single file with the name plugin.config. When a new WasmPluginVersion resource is created, the digest of the container image is saved in the pluginConfigDigest field. Conflics with pluginConfigData.
    update_time str
    (Output) Output only. The timestamp when the resource was updated.
    versionName String
    The identifier for this object. Format specified above.
    createTime String
    (Output) Output only. The timestamp when the resource was created.
    description String
    Optional. A human-readable description of the resource.
    imageDigest String
    (Output) Output only. The resolved digest for the image specified in the image field. The digest is resolved during the creation of WasmPluginVersion resource. This field holds the digest value, regardless of whether a tag or digest was originally specified in the image field.
    imageUri String
    Optional. URI of the container image containing the plugin, stored in the Artifact Registry. When a new WasmPluginVersion resource is created, the digest of the container image is saved in the imageDigest field. When downloading an image, the digest value is used instead of an image tag.
    labels Map<String>
    Optional. Set of labels associated with the WasmPlugin resource.
    pluginConfigData String
    A base64-encoded string containing the configuration for the plugin. The configuration is provided to the plugin at runtime through the ON_CONFIGURE callback. When a new WasmPluginVersion resource is created, the digest of the contents is saved in the pluginConfigDigest field. Conflics with pluginConfigUri.
    pluginConfigDigest String
    (Output) Output only. This field holds the digest (usually checksum) value for the plugin configuration. The value is calculated based on the contents of pluginConfigData or the container image defined by the pluginConfigUri field.
    pluginConfigUri String
    URI of the plugin configuration stored in the Artifact Registry. The configuration is provided to the plugin at runtime through the ON_CONFIGURE callback. The container image must contain only a single file with the name plugin.config. When a new WasmPluginVersion resource is created, the digest of the container image is saved in the pluginConfigDigest field. Conflics with pluginConfigData.
    updateTime String
    (Output) Output only. The timestamp when the resource was updated.

    Import

    WasmPlugin can be imported using any of these accepted formats:

    • projects/{{project}}/locations/{{location}}/wasmPlugins/{{name}}

    • {{project}}/{{location}}/{{name}}

    • {{location}}/{{name}}

    When using the pulumi import command, WasmPlugin can be imported using one of the formats above. For example:

    $ pulumi import gcp:networkservices/wasmPlugin:WasmPlugin default projects/{{project}}/locations/{{location}}/wasmPlugins/{{name}}
    
    $ pulumi import gcp:networkservices/wasmPlugin:WasmPlugin default {{project}}/{{location}}/{{name}}
    
    $ pulumi import gcp:networkservices/wasmPlugin:WasmPlugin default {{location}}/{{name}}
    

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

    Package Details

    Repository
    Google Cloud (GCP) Classic pulumi/pulumi-gcp
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the google-beta Terraform Provider.
    gcp logo
    Google Cloud v9.3.0 published on Tuesday, Oct 7, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate