1. Packages
  2. Azure Native
  3. API Docs
  4. loadtestservice
  5. LoadTestMapping
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.63.0 published on Tuesday, Sep 24, 2024 by Pulumi

azure-native.loadtestservice.LoadTestMapping

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.63.0 published on Tuesday, Sep 24, 2024 by Pulumi

    LoadTest mapping resource details Azure REST API version: 2023-12-01-preview.

    Example Usage

    Create a Load Test Mapping Resource

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var loadTestMapping = new AzureNative.LoadTestService.LoadTestMapping("loadTestMapping", new()
        {
            AzureLoadTestingResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.LoadTestService/loadTests/myLoadTest",
            LoadTestMappingName = "myLoadTestMapping",
            ResourceUri = "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename",
            SourceResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename",
            TestId = "123456",
        });
    
    });
    
    package main
    
    import (
    	loadtestservice "github.com/pulumi/pulumi-azure-native-sdk/loadtestservice/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := loadtestservice.NewLoadTestMapping(ctx, "loadTestMapping", &loadtestservice.LoadTestMappingArgs{
    			AzureLoadTestingResourceId: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.LoadTestService/loadTests/myLoadTest"),
    			LoadTestMappingName:        pulumi.String("myLoadTestMapping"),
    			ResourceUri:                pulumi.String("subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename"),
    			SourceResourceId:           pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename"),
    			TestId:                     pulumi.String("123456"),
    		})
    		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.loadtestservice.LoadTestMapping;
    import com.pulumi.azurenative.loadtestservice.LoadTestMappingArgs;
    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 loadTestMapping = new LoadTestMapping("loadTestMapping", LoadTestMappingArgs.builder()
                .azureLoadTestingResourceId("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.LoadTestService/loadTests/myLoadTest")
                .loadTestMappingName("myLoadTestMapping")
                .resourceUri("subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename")
                .sourceResourceId("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename")
                .testId("123456")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    load_test_mapping = azure_native.loadtestservice.LoadTestMapping("loadTestMapping",
        azure_load_testing_resource_id="/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.LoadTestService/loadTests/myLoadTest",
        load_test_mapping_name="myLoadTestMapping",
        resource_uri="subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename",
        source_resource_id="/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename",
        test_id="123456")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const loadTestMapping = new azure_native.loadtestservice.LoadTestMapping("loadTestMapping", {
        azureLoadTestingResourceId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.LoadTestService/loadTests/myLoadTest",
        loadTestMappingName: "myLoadTestMapping",
        resourceUri: "subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename",
        sourceResourceId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename",
        testId: "123456",
    });
    
    resources:
      loadTestMapping:
        type: azure-native:loadtestservice:LoadTestMapping
        properties:
          azureLoadTestingResourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.LoadTestService/loadTests/myLoadTest
          loadTestMappingName: myLoadTestMapping
          resourceUri: subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename
          sourceResourceId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/dummyrg/providers/Microsoft.Web/sites/sitename
          testId: '123456'
    

    Create LoadTestMapping Resource

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

    Constructor syntax

    new LoadTestMapping(name: string, args: LoadTestMappingArgs, opts?: CustomResourceOptions);
    @overload
    def LoadTestMapping(resource_name: str,
                        args: LoadTestMappingArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def LoadTestMapping(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        resource_uri: Optional[str] = None,
                        azure_load_testing_resource_id: Optional[str] = None,
                        load_test_mapping_name: Optional[str] = None,
                        source_resource_id: Optional[str] = None,
                        test_id: Optional[str] = None)
    func NewLoadTestMapping(ctx *Context, name string, args LoadTestMappingArgs, opts ...ResourceOption) (*LoadTestMapping, error)
    public LoadTestMapping(string name, LoadTestMappingArgs args, CustomResourceOptions? opts = null)
    public LoadTestMapping(String name, LoadTestMappingArgs args)
    public LoadTestMapping(String name, LoadTestMappingArgs args, CustomResourceOptions options)
    
    type: azure-native:loadtestservice:LoadTestMapping
    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 LoadTestMappingArgs
    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 LoadTestMappingArgs
    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 LoadTestMappingArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LoadTestMappingArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LoadTestMappingArgs
    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 loadTestMappingResource = new AzureNative.LoadTestService.LoadTestMapping("loadTestMappingResource", new()
    {
        ResourceUri = "string",
        AzureLoadTestingResourceId = "string",
        LoadTestMappingName = "string",
        SourceResourceId = "string",
        TestId = "string",
    });
    
    example, err := loadtestservice.NewLoadTestMapping(ctx, "loadTestMappingResource", &loadtestservice.LoadTestMappingArgs{
    	ResourceUri:                pulumi.String("string"),
    	AzureLoadTestingResourceId: pulumi.String("string"),
    	LoadTestMappingName:        pulumi.String("string"),
    	SourceResourceId:           pulumi.String("string"),
    	TestId:                     pulumi.String("string"),
    })
    
    var loadTestMappingResource = new LoadTestMapping("loadTestMappingResource", LoadTestMappingArgs.builder()
        .resourceUri("string")
        .azureLoadTestingResourceId("string")
        .loadTestMappingName("string")
        .sourceResourceId("string")
        .testId("string")
        .build());
    
    load_test_mapping_resource = azure_native.loadtestservice.LoadTestMapping("loadTestMappingResource",
        resource_uri="string",
        azure_load_testing_resource_id="string",
        load_test_mapping_name="string",
        source_resource_id="string",
        test_id="string")
    
    const loadTestMappingResource = new azure_native.loadtestservice.LoadTestMapping("loadTestMappingResource", {
        resourceUri: "string",
        azureLoadTestingResourceId: "string",
        loadTestMappingName: "string",
        sourceResourceId: "string",
        testId: "string",
    });
    
    type: azure-native:loadtestservice:LoadTestMapping
    properties:
        azureLoadTestingResourceId: string
        loadTestMappingName: string
        resourceUri: string
        sourceResourceId: string
        testId: string
    

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

    ResourceUri string
    The fully qualified Azure Resource manager identifier of the resource.
    AzureLoadTestingResourceId string
    Mapped Azure Load Test resource Id.
    LoadTestMappingName string
    Load Test Mapping name
    SourceResourceId string
    Mapped source resource Id.
    TestId string
    Mapped Azure Load Test resource test-id.
    ResourceUri string
    The fully qualified Azure Resource manager identifier of the resource.
    AzureLoadTestingResourceId string
    Mapped Azure Load Test resource Id.
    LoadTestMappingName string
    Load Test Mapping name
    SourceResourceId string
    Mapped source resource Id.
    TestId string
    Mapped Azure Load Test resource test-id.
    resourceUri String
    The fully qualified Azure Resource manager identifier of the resource.
    azureLoadTestingResourceId String
    Mapped Azure Load Test resource Id.
    loadTestMappingName String
    Load Test Mapping name
    sourceResourceId String
    Mapped source resource Id.
    testId String
    Mapped Azure Load Test resource test-id.
    resourceUri string
    The fully qualified Azure Resource manager identifier of the resource.
    azureLoadTestingResourceId string
    Mapped Azure Load Test resource Id.
    loadTestMappingName string
    Load Test Mapping name
    sourceResourceId string
    Mapped source resource Id.
    testId string
    Mapped Azure Load Test resource test-id.
    resource_uri str
    The fully qualified Azure Resource manager identifier of the resource.
    azure_load_testing_resource_id str
    Mapped Azure Load Test resource Id.
    load_test_mapping_name str
    Load Test Mapping name
    source_resource_id str
    Mapped source resource Id.
    test_id str
    Mapped Azure Load Test resource test-id.
    resourceUri String
    The fully qualified Azure Resource manager identifier of the resource.
    azureLoadTestingResourceId String
    Mapped Azure Load Test resource Id.
    loadTestMappingName String
    Load Test Mapping name
    sourceResourceId String
    Mapped source resource Id.
    testId String
    Mapped Azure Load Test resource test-id.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    SystemData Pulumi.AzureNative.LoadTestService.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
    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
    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
    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
    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
    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.

    Import

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

    $ pulumi import azure-native:loadtestservice:LoadTestMapping myLoadTestMapping /{resourceUri}/providers/Microsoft.LoadTestService/loadTestMappings/{loadTestMappingName} 
    

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

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.63.0 published on Tuesday, Sep 24, 2024 by Pulumi