azure-native.workloads.WordpressInstance
Explore with Pulumi AI
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
The WordpressInstance resource accepts the following input properties:
- Php
Workload stringName - Php workload name
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Version
string | Pulumi.
Azure Native. Workloads. Wordpress Versions - Application version
- Database
Name string - Database name used by the application
- Database
User string - User name used by the application to connect to database
- Php
Workload stringName - Php workload name
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Version
string | Wordpress
Versions - Application version
- Database
Name string - Database name used by the application
- Database
User string - User name used by the application to connect to database
- php
Workload StringName - Php workload name
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- version
String | Wordpress
Versions - Application version
- database
Name String - Database name used by the application
- database
User String - User name used by the application to connect to database
- php
Workload stringName - Php workload name
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- version
string | Wordpress
Versions - Application version
- database
Name string - Database name used by the application
- database
User string - User name used by the application to connect to database
- php_
workload_ strname - Php workload name
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- version
str | Wordpress
Versions - Application version
- database_
name str - Database name used by the application
- database_
user str - User name used by the application to connect to database
- php
Workload StringName - Php workload name
- resource
Group StringName - 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
- database
Name String - Database name used by the application
- database
User 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
- Provisioning
State string - WordPress instance provisioning state
- Site
Url string - Site Url to access the WordPress application
- System
Data Pulumi.Azure Native. Workloads. Outputs. System Data Response - 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
- Provisioning
State string - WordPress instance provisioning state
- Site
Url string - Site Url to access the WordPress application
- System
Data SystemData Response - 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
- provisioning
State String - WordPress instance provisioning state
- site
Url String - Site Url to access the WordPress application
- system
Data SystemData Response - 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
- provisioning
State string - WordPress instance provisioning state
- site
Url string - Site Url to access the WordPress application
- system
Data SystemData Response - 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 SystemData Response - 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
- provisioning
State String - WordPress instance provisioning state
- site
Url String - Site Url to access the WordPress application
- system
Data 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
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - 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_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
WordpressVersions, WordpressVersionsArgs
- 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
- 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
- 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
- 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