GatewayApiArgs

data class GatewayApiArgs(val apiId: Output<String>? = null, val gatewayId: Output<String>? = null) : ConvertibleToJava<GatewayApiArgs>

Manages a API Management Gateway API.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.apimanagement.ApimanagementFunctions;
import com.pulumi.azure.apimanagement.inputs.GetServiceArgs;
import com.pulumi.azure.apimanagement.inputs.GetApiArgs;
import com.pulumi.azure.apimanagement.inputs.GetGatewayArgs;
import com.pulumi.azure.apimanagement.GatewayApi;
import com.pulumi.azure.apimanagement.GatewayApiArgs;
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) {
final var exampleService = ApimanagementFunctions.getService(GetServiceArgs.builder()
.name("example-api")
.resourceGroupName("example-resources")
.build());
final var exampleApi = ApimanagementFunctions.getApi(GetApiArgs.builder()
.name("search-api")
.apiManagementName(exampleService.applyValue(getServiceResult -> getServiceResult.name()))
.resourceGroupName(exampleService.applyValue(getServiceResult -> getServiceResult.resourceGroupName()))
.revision("2")
.build());
final var exampleGateway = ApimanagementFunctions.getGateway(GetGatewayArgs.builder()
.name("example-gateway")
.apiManagementId(exampleService.applyValue(getServiceResult -> getServiceResult.id()))
.build());
var exampleGatewayApi = new GatewayApi("exampleGatewayApi", GatewayApiArgs.builder()
.gatewayId(exampleGateway.applyValue(getGatewayResult -> getGatewayResult.id()))
.apiId(exampleApi.applyValue(getApiResult -> getApiResult.id()))
.build());
}
}

Import

API Management Gateway APIs can be imported using the resource id, e.g.

$ pulumi import azure:apimanagement/gatewayApi:GatewayApi example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resGroup1/providers/Microsoft.ApiManagement/service/service1/gateways/gateway1/apis/api1

Constructors

Link copied to clipboard
fun GatewayApiArgs(apiId: Output<String>? = null, gatewayId: Output<String>? = null)

Functions

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

Properties

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

The Identifier of the API Management API within the API Management Service. Changing this forces a new API Management Gateway API to be created.

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

The Identifier for the API Management Gateway. Changing this forces a new API Management Gateway API to be created.