get Product
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()));
}
}
Content copied to clipboard
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
api Management Name
The Name of the API Management Service in which this Product exists.
product Id
The Identifier for the API Management Product.
resource Group Name
The Name of the Resource Group in which the API Management Service exists.
Return
A collection of values returned by getProduct.
See also
Parameters
argument
Builder for com.pulumi.azure.apimanagement.kotlin.inputs.GetProductPlainArgs.