Backend Args
data class BackendArgs(val apiManagementName: Output<String>? = null, val credentials: Output<BackendCredentialsArgs>? = null, val description: Output<String>? = null, val name: Output<String>? = null, val protocol: Output<String>? = null, val proxy: Output<BackendProxyArgs>? = null, val resourceGroupName: Output<String>? = null, val resourceId: Output<String>? = null, val serviceFabricCluster: Output<BackendServiceFabricClusterArgs>? = null, val title: Output<String>? = null, val tls: Output<BackendTlsArgs>? = null, val url: Output<String>? = null) : ConvertibleToJava<BackendArgs>
Manages a backend within an API Management Service.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.apimanagement.Service;
import com.pulumi.azure.apimanagement.ServiceArgs;
import com.pulumi.azure.apimanagement.Backend;
import com.pulumi.azure.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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleService = new Service("exampleService", ServiceArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.publisherName("My Company")
.publisherEmail("company@exmaple.com")
.skuName("Developer_1")
.build());
var exampleBackend = new Backend("exampleBackend", BackendArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.apiManagementName(exampleService.name())
.protocol("http")
.url("https://backend")
.build());
}
}
Content copied to clipboard
Import
API Management backends can be imported using the resource id
, e.g.
$ pulumi import azure:apimanagement/backend:Backend example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.ApiManagement/service/instance1/backends/backend1
Content copied to clipboard
Constructors
Link copied to clipboard
fun BackendArgs(apiManagementName: Output<String>? = null, credentials: Output<BackendCredentialsArgs>? = null, description: Output<String>? = null, name: Output<String>? = null, protocol: Output<String>? = null, proxy: Output<BackendProxyArgs>? = null, resourceGroupName: Output<String>? = null, resourceId: Output<String>? = null, serviceFabricCluster: Output<BackendServiceFabricClusterArgs>? = null, title: Output<String>? = null, tls: Output<BackendTlsArgs>? = null, url: Output<String>? = null)