ProductGroupArgs

data class ProductGroupArgs(val apiManagementName: Output<String>? = null, val groupName: Output<String>? = null, val productId: Output<String>? = null, val resourceGroupName: Output<String>? = null) : ConvertibleToJava<ProductGroupArgs>

Manages an API Management Product Assignment to a Group.

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.GetProductArgs;
import com.pulumi.azure.apimanagement.inputs.GetGroupArgs;
import com.pulumi.azure.apimanagement.ProductGroup;
import com.pulumi.azure.apimanagement.ProductGroupArgs;
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 exampleProduct = ApimanagementFunctions.getProduct(GetProductArgs.builder()
.productId("my-product")
.apiManagementName(exampleService.applyValue(getServiceResult -> getServiceResult.name()))
.resourceGroupName(exampleService.applyValue(getServiceResult -> getServiceResult.resourceGroupName()))
.build());
final var exampleGroup = ApimanagementFunctions.getGroup(GetGroupArgs.builder()
.name("my-group")
.apiManagementName(exampleService.applyValue(getServiceResult -> getServiceResult.name()))
.resourceGroupName(exampleService.applyValue(getServiceResult -> getServiceResult.resourceGroupName()))
.build());
var exampleProductGroup = new ProductGroup("exampleProductGroup", ProductGroupArgs.builder()
.productId(exampleProduct.applyValue(getProductResult -> getProductResult.productId()))
.groupName(exampleGroup.applyValue(getGroupResult -> getGroupResult.name()))
.apiManagementName(exampleService.applyValue(getServiceResult -> getServiceResult.name()))
.resourceGroupName(exampleService.applyValue(getServiceResult -> getServiceResult.resourceGroupName()))
.build());
}
}

Import

API Management Product Groups can be imported using the resource id, e.g.

$ pulumi import azure:apimanagement/productGroup:ProductGroup example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.ApiManagement/service/service1/products/exampleId/groups/groupId

Constructors

Link copied to clipboard
fun ProductGroupArgs(apiManagementName: Output<String>? = null, groupName: Output<String>? = null, productId: Output<String>? = null, resourceGroupName: Output<String>? = null)

Functions

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

Properties

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

The name of the API Management Service. Changing this forces a new resource to be created.

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

The Name of the API Management Group within the API Management Service. Changing this forces a new resource to be created.

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

The ID of the API Management Product within the API Management Service. Changing this forces a new resource to be created.

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

The name of the Resource Group in which the API Management Service exists. Changing this forces a new resource to be created.