BackendArgs

data class BackendArgs(val backendId: Output<String>? = null, val credentials: Output<BackendCredentialsContractArgs>? = null, val description: Output<String>? = null, val properties: Output<BackendPropertiesArgs>? = null, val protocol: Output<Either<String, BackendProtocol>>? = null, val proxy: Output<BackendProxyContractArgs>? = null, val resourceGroupName: Output<String>? = null, val resourceId: Output<String>? = null, val serviceName: Output<String>? = null, val title: Output<String>? = null, val tls: Output<BackendTlsPropertiesArgs>? = null, val url: Output<String>? = null) : ConvertibleToJava<BackendArgs>

Backend details. API Version: 2020-12-01.

Example Usage

ApiManagementCreateBackendProxyBackend

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var backend = new AzureNative.ApiManagement.Backend("backend", new()
{
BackendId = "proxybackend",
Credentials = new AzureNative.ApiManagement.Inputs.BackendCredentialsContractArgs
{
Authorization = new AzureNative.ApiManagement.Inputs.BackendAuthorizationHeaderCredentialsArgs
{
Parameter = "opensesma",
Scheme = "Basic",
},
Header =
{
{ "x-my-1", new[]
{
"val1",
"val2",
} },
},
Query =
{
{ "sv", new[]
{
"xx",
"bb",
"cc",
} },
},
},
Description = "description5308",
Protocol = "http",
Proxy = new AzureNative.ApiManagement.Inputs.BackendProxyContractArgs
{
Password = "<password>",
Url = "http://192.168.1.1:8080",
Username = "Contoso\\admin",
},
ResourceGroupName = "rg1",
ServiceName = "apimService1",
Tls = new AzureNative.ApiManagement.Inputs.BackendTlsPropertiesArgs
{
ValidateCertificateChain = true,
ValidateCertificateName = true,
},
Url = "https://backendname2644/",
});
});
package main
import (
apimanagement "github.com/pulumi/pulumi-azure-native-sdk/apimanagement"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := apimanagement.NewBackend(ctx, "backend", &apimanagement.BackendArgs{
BackendId: pulumi.String("proxybackend"),
Credentials: apimanagement.BackendCredentialsContractResponse{
Authorization: &apimanagement.BackendAuthorizationHeaderCredentialsArgs{
Parameter: pulumi.String("opensesma"),
Scheme: pulumi.String("Basic"),
},
Header: pulumi.StringArrayMap{
"x-my-1": pulumi.StringArray{
pulumi.String("val1"),
pulumi.String("val2"),
},
},
Query: pulumi.StringArrayMap{
"sv": pulumi.StringArray{
pulumi.String("xx"),
pulumi.String("bb"),
pulumi.String("cc"),
},
},
},
Description: pulumi.String("description5308"),
Protocol: pulumi.String("http"),
Proxy: &apimanagement.BackendProxyContractArgs{
Password: pulumi.String("<password>"),
Url: pulumi.String("http://192.168.1.1:8080"),
Username: pulumi.String("Contoso\\admin"),
},
ResourceGroupName: pulumi.String("rg1"),
ServiceName: pulumi.String("apimService1"),
Tls: &apimanagement.BackendTlsPropertiesArgs{
ValidateCertificateChain: pulumi.Bool(true),
ValidateCertificateName: pulumi.Bool(true),
},
Url: pulumi.String("https://backendname2644/"),
})
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.apimanagement.Backend;
import com.pulumi.azurenative.apimanagement.BackendArgs;
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 backend = new Backend("backend", BackendArgs.builder()
.backendId("proxybackend")
.credentials(Map.ofEntries(
Map.entry("authorization", Map.ofEntries(
Map.entry("parameter", "opensesma"),
Map.entry("scheme", "Basic")
)),
Map.entry("header", Map.of("x-my-1",
"val1",
"val2")),
Map.entry("query", Map.of("sv",
"xx",
"bb",
"cc"))
))
.description("description5308")
.protocol("http")
.proxy(Map.ofEntries(
Map.entry("password", "<password>"),
Map.entry("url", "http://192.168.1.1:8080"),
Map.entry("username", "Contoso\\admin")
))
.resourceGroupName("rg1")
.serviceName("apimService1")
.tls(Map.ofEntries(
Map.entry("validateCertificateChain", true),
Map.entry("validateCertificateName", true)
))
.url("https://backendname2644/")
.build());
}
}

ApiManagementCreateBackendServiceFabric

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var backend = new AzureNative.ApiManagement.Backend("backend", new()
{
BackendId = "sfbackend",
Description = "Service Fabric Test App 1",
Properties = new AzureNative.ApiManagement.Inputs.BackendPropertiesArgs
{
ServiceFabricCluster = new AzureNative.ApiManagement.Inputs.BackendServiceFabricClusterPropertiesArgs
{
ClientCertificateId = "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/certificates/cert1",
ManagementEndpoints = new[]
{
"https://somecluster.com",
},
MaxPartitionResolutionRetries = 5,
ServerX509Names = new[]
{
new AzureNative.ApiManagement.Inputs.X509CertificateNameArgs
{
IssuerCertificateThumbprint = "IssuerCertificateThumbprint1",
Name = "ServerCommonName1",
},
},
},
},
Protocol = "http",
ResourceGroupName = "rg1",
ServiceName = "apimService1",
Url = "fabric:/mytestapp/mytestservice",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.apimanagement.Backend;
import com.pulumi.azurenative.apimanagement.BackendArgs;
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 backend = new Backend("backend", BackendArgs.builder()
.backendId("sfbackend")
.description("Service Fabric Test App 1")
.properties(Map.of("serviceFabricCluster", Map.ofEntries(
Map.entry("clientCertificateId", "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/certificates/cert1"),
Map.entry("managementEndpoints", "https://somecluster.com"),
Map.entry("maxPartitionResolutionRetries", 5),
Map.entry("serverX509Names", Map.ofEntries(
Map.entry("issuerCertificateThumbprint", "IssuerCertificateThumbprint1"),
Map.entry("name", "ServerCommonName1")
))
)))
.protocol("http")
.resourceGroupName("rg1")
.serviceName("apimService1")
.url("fabric:/mytestapp/mytestservice")
.build());
}
}

Import

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

$ pulumi import azure-native:apimanagement:Backend sfbackend /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/backends/sfbackend

Constructors

Link copied to clipboard
constructor(backendId: Output<String>? = null, credentials: Output<BackendCredentialsContractArgs>? = null, description: Output<String>? = null, properties: Output<BackendPropertiesArgs>? = null, protocol: Output<Either<String, BackendProtocol>>? = null, proxy: Output<BackendProxyContractArgs>? = null, resourceGroupName: Output<String>? = null, resourceId: Output<String>? = null, serviceName: Output<String>? = null, title: Output<String>? = null, tls: Output<BackendTlsPropertiesArgs>? = null, url: Output<String>? = null)

Properties

Link copied to clipboard
val backendId: Output<String>? = null

Identifier of the Backend entity. Must be unique in the current API Management service instance.

Link copied to clipboard

Backend Credentials Contract Properties

Link copied to clipboard
val description: Output<String>? = null

Backend Description.

Link copied to clipboard
val properties: Output<BackendPropertiesArgs>? = null

Backend Properties contract

Link copied to clipboard
val protocol: Output<Either<String, BackendProtocol>>? = null

Backend communication protocol.

Link copied to clipboard
val proxy: Output<BackendProxyContractArgs>? = null

Backend Proxy Contract Properties

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group.

Link copied to clipboard
val resourceId: Output<String>? = null

Management Uri of the Resource in External System. This url can be the Arm Resource Id of Logic Apps, Function Apps or Api Apps.

Link copied to clipboard
val serviceName: Output<String>? = null

The name of the API Management service.

Link copied to clipboard
val title: Output<String>? = null

Backend Title.

Link copied to clipboard
val tls: Output<BackendTlsPropertiesArgs>? = null

Backend TLS Properties

Link copied to clipboard
val url: Output<String>? = null

Runtime Url of the Backend.

Functions

Link copied to clipboard
open override fun toJava(): BackendArgs