1. Packages
  2. Azure Native v1
  3. API Docs
  4. workloads
  5. WordpressInstance
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

azure-native.workloads.WordpressInstance

Explore with Pulumi AI

azure-native-v1 logo
These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi

    WordPress instance resource API Version: 2021-12-01-preview.

    Example Usage

    Workloads

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var wordpressInstance = new AzureNative.Workloads.WordpressInstance("wordpressInstance", new()
        {
            DatabaseName = "wpdb",
            DatabaseUser = "wpuser",
            PhpWorkloadName = "wp39",
            ResourceGroupName = "test-rg",
            Version = "5.4.2",
        });
    
    });
    
    package main
    
    import (
    	workloads "github.com/pulumi/pulumi-azure-native-sdk/workloads"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := workloads.NewWordpressInstance(ctx, "wordpressInstance", &workloads.WordpressInstanceArgs{
    			DatabaseName:      pulumi.String("wpdb"),
    			DatabaseUser:      pulumi.String("wpuser"),
    			PhpWorkloadName:   pulumi.String("wp39"),
    			ResourceGroupName: pulumi.String("test-rg"),
    			Version:           pulumi.String("5.4.2"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.workloads.WordpressInstance;
    import com.pulumi.azurenative.workloads.WordpressInstanceArgs;
    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 wordpressInstance = new WordpressInstance("wordpressInstance", WordpressInstanceArgs.builder()        
                .databaseName("wpdb")
                .databaseUser("wpuser")
                .phpWorkloadName("wp39")
                .resourceGroupName("test-rg")
                .version("5.4.2")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    wordpress_instance = azure_native.workloads.WordpressInstance("wordpressInstance",
        database_name="wpdb",
        database_user="wpuser",
        php_workload_name="wp39",
        resource_group_name="test-rg",
        version="5.4.2")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const wordpressInstance = new azure_native.workloads.WordpressInstance("wordpressInstance", {
        databaseName: "wpdb",
        databaseUser: "wpuser",
        phpWorkloadName: "wp39",
        resourceGroupName: "test-rg",
        version: "5.4.2",
    });
    
    resources:
      wordpressInstance:
        type: azure-native:workloads:WordpressInstance
        properties:
          databaseName: wpdb
          databaseUser: wpuser
          phpWorkloadName: wp39
          resourceGroupName: test-rg
          version: 5.4.2
    

    Create WordpressInstance Resource

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

    Constructor syntax

    new WordpressInstance(name: string, args: WordpressInstanceArgs, opts?: CustomResourceOptions);
    @overload
    def WordpressInstance(resource_name: str,
                          args: WordpressInstanceArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def WordpressInstance(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          php_workload_name: Optional[str] = None,
                          resource_group_name: Optional[str] = None,
                          version: Optional[Union[str, WordpressVersions]] = None,
                          database_name: Optional[str] = None,
                          database_user: Optional[str] = None)
    func NewWordpressInstance(ctx *Context, name string, args WordpressInstanceArgs, opts ...ResourceOption) (*WordpressInstance, error)
    public WordpressInstance(string name, WordpressInstanceArgs args, CustomResourceOptions? opts = null)
    public WordpressInstance(String name, WordpressInstanceArgs args)
    public WordpressInstance(String name, WordpressInstanceArgs args, CustomResourceOptions options)
    
    type: azure-native:workloads:WordpressInstance
    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 WordpressInstanceArgs
    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 WordpressInstanceArgs
    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 WordpressInstanceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args WordpressInstanceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args WordpressInstanceArgs
    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 wordpressInstanceResource = new AzureNative.Workloads.WordpressInstance("wordpressInstanceResource", new()
    {
        PhpWorkloadName = "string",
        ResourceGroupName = "string",
        Version = "string",
        DatabaseName = "string",
        DatabaseUser = "string",
    });
    
    example, err := workloads.NewWordpressInstance(ctx, "wordpressInstanceResource", &workloads.WordpressInstanceArgs{
    	PhpWorkloadName:   "string",
    	ResourceGroupName: "string",
    	Version:           "string",
    	DatabaseName:      "string",
    	DatabaseUser:      "string",
    })
    
    var wordpressInstanceResource = new WordpressInstance("wordpressInstanceResource", WordpressInstanceArgs.builder()
        .phpWorkloadName("string")
        .resourceGroupName("string")
        .version("string")
        .databaseName("string")
        .databaseUser("string")
        .build());
    
    wordpress_instance_resource = azure_native.workloads.WordpressInstance("wordpressInstanceResource",
        php_workload_name=string,
        resource_group_name=string,
        version=string,
        database_name=string,
        database_user=string)
    
    const wordpressInstanceResource = new azure_native.workloads.WordpressInstance("wordpressInstanceResource", {
        phpWorkloadName: "string",
        resourceGroupName: "string",
        version: "string",
        databaseName: "string",
        databaseUser: "string",
    });
    
    type: azure-native:workloads:WordpressInstance
    properties:
        databaseName: string
        databaseUser: string
        phpWorkloadName: string
        resourceGroupName: string
        version: string
    

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

    PhpWorkloadName string
    Php workload name
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    Version string | Pulumi.AzureNative.Workloads.WordpressVersions
    Application version
    DatabaseName string
    Database name used by the application
    DatabaseUser string
    User name used by the application to connect to database
    PhpWorkloadName string
    Php workload name
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    Version string | WordpressVersions
    Application version
    DatabaseName string
    Database name used by the application
    DatabaseUser string
    User name used by the application to connect to database
    phpWorkloadName String
    Php workload name
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    version String | WordpressVersions
    Application version
    databaseName String
    Database name used by the application
    databaseUser String
    User name used by the application to connect to database
    phpWorkloadName string
    Php workload name
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    version string | WordpressVersions
    Application version
    databaseName string
    Database name used by the application
    databaseUser string
    User name used by the application to connect to database
    php_workload_name str
    Php workload name
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    version str | WordpressVersions
    Application version
    database_name str
    Database name used by the application
    database_user str
    User name used by the application to connect to database
    phpWorkloadName String
    Php workload name
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    version String | "5.4.3" | "5.4.2" | "5.4.1" | "5.4"
    Application version
    databaseName String
    Database name used by the application
    databaseUser String
    User name used by the application to connect to database

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    ProvisioningState string
    WordPress instance provisioning state
    SiteUrl string
    Site Url to access the WordPress application
    SystemData Pulumi.AzureNative.Workloads.Outputs.SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    ProvisioningState string
    WordPress instance provisioning state
    SiteUrl string
    Site Url to access the WordPress application
    SystemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    provisioningState String
    WordPress instance provisioning state
    siteUrl String
    Site Url to access the WordPress application
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the resource
    provisioningState string
    WordPress instance provisioning state
    siteUrl string
    Site Url to access the WordPress application
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the resource
    provisioning_state str
    WordPress instance provisioning state
    site_url str
    Site Url to access the WordPress application
    system_data SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type str
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    provisioningState String
    WordPress instance provisioning state
    siteUrl String
    Site Url to access the WordPress application
    systemData Property Map
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

    Supporting Types

    SystemDataResponse, SystemDataResponseArgs

    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.
    createdAt string
    The timestamp of resource creation (UTC).
    createdBy string
    The identity that created the resource.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The timestamp of resource last modification (UTC)
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    The type of identity that last modified the resource.
    created_at str
    The timestamp of resource creation (UTC).
    created_by str
    The identity that created the resource.
    created_by_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.

    WordpressVersions, WordpressVersionsArgs

    WordpressVersions_5_4_3
    5.4.3
    WordpressVersions_5_4_2
    5.4.2
    WordpressVersions_5_4_1
    5.4.1
    WordpressVersions_5_4
    5.4
    WordpressVersions_5_4_3
    5.4.3
    WordpressVersions_5_4_2
    5.4.2
    WordpressVersions_5_4_1
    5.4.1
    WordpressVersions_5_4
    5.4
    _5_4_3
    5.4.3
    _5_4_2
    5.4.2
    _5_4_1
    5.4.1
    _5_4
    5.4
    WordpressVersions_5_4_3
    5.4.3
    WordpressVersions_5_4_2
    5.4.2
    WordpressVersions_5_4_1
    5.4.1
    WordpressVersions_5_4
    5.4
    WORDPRESS_VERSIONS_5_4_3
    5.4.3
    WORDPRESS_VERSIONS_5_4_2
    5.4.2
    WORDPRESS_VERSIONS_5_4_1
    5.4.1
    WORDPRESS_VERSIONS_5_4
    5.4
    "5.4.3"
    5.4.3
    "5.4.2"
    5.4.2
    "5.4.1"
    5.4.1
    "5.4"
    5.4

    Import

    An existing resource can be imported using its type token, name, and identifier, e.g.

    $ pulumi import azure-native:workloads:WordpressInstance default /subscriptions/6d875e77-e412-4d7d-9af4-8895278b4443/resourceGroups/test-rg/providers/Microsot.Workloads/phpWorkloads/wp39/wordpressInstances/default 
    

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

    Package Details

    Repository
    azure-native-v1 pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native-v1 logo
    These are the docs for Azure Native v1. We recommenend using the latest version, Azure Native v2.
    Azure Native v1 v1.104.0 published on Thursday, Jul 6, 2023 by Pulumi