getGateway

Use this data source to access information about an existing API Management Gateway.

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.GetGatewayArgs;
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-apim")
.resourceGroupName("example-rg")
.build());
final var exampleGateway = ApimanagementFunctions.getGateway(GetGatewayArgs.builder()
.name("example-api-gateway")
.apiManagementId(exampleService.applyValue(getServiceResult -> getServiceResult.id()))
.build());
}
}

Return

A collection of values returned by getGateway.

Parameters

argument

A collection of arguments for invoking getGateway.


suspend fun getGateway(apiManagementId: String, name: String): GetGatewayResult

Return

A collection of values returned by getGateway.

See also

Parameters

apiManagementId

The ID of the API Management Service in which the Gateway exists.

name

The name of the API Management Gateway.


suspend fun getGateway(argument: suspend GetGatewayPlainArgsBuilder.() -> Unit): GetGatewayResult

Return

A collection of values returned by getGateway.

See also

Parameters

argument

Builder for com.pulumi.azure.apimanagement.kotlin.inputs.GetGatewayPlainArgs.