getProduct

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

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.GetProductArgs;
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 example = ApimanagementFunctions.getProduct(GetProductArgs.builder()
.productId("my-product")
.apiManagementName("example-apim")
.resourceGroupName("search-service")
.build());
ctx.export("productTerms", example.applyValue(getProductResult -> getProductResult.terms()));
}
}

Return

A collection of values returned by getProduct.

Parameters

argument

A collection of arguments for invoking getProduct.


suspend fun getProduct(apiManagementName: String, productId: String, resourceGroupName: String): GetProductResult

Return

A collection of values returned by getProduct.

See also

Parameters

apiManagementName

The Name of the API Management Service in which this Product exists.

productId

The Identifier for the API Management Product.

resourceGroupName

The Name of the Resource Group in which the API Management Service exists.


suspend fun getProduct(argument: suspend GetProductPlainArgsBuilder.() -> Unit): GetProductResult

Return

A collection of values returned by getProduct.

See also

Parameters

argument

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