GetProduct
Use this data source to access information about an existing API Management Product.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Azure.ApiManagement.GetProduct.InvokeAsync(new Azure.ApiManagement.GetProductArgs
{
ProductId = "my-product",
ApiManagementName = "example-apim",
ResourceGroupName = "search-service",
}));
this.ProductTerms = example.Apply(example => example.Terms);
}
[Output("productTerms")]
public Output<string> ProductTerms { get; set; }
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/apimanagement"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := apimanagement.LookupProduct(ctx, &apimanagement.LookupProductArgs{
ProductId: "my-product",
ApiManagementName: "example-apim",
ResourceGroupName: "search-service",
}, nil)
if err != nil {
return err
}
ctx.Export("productTerms", example.Terms)
return nil
})
}import pulumi
import pulumi_azure as azure
example = azure.apimanagement.get_product(product_id="my-product",
api_management_name="example-apim",
resource_group_name="search-service")
pulumi.export("productTerms", example.terms)import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.apimanagement.getProduct({
productId: "my-product",
apiManagementName: "example-apim",
resourceGroupName: "search-service",
});
export const productTerms = example.then(example => example.terms);Using GetProduct
function getProduct(args: GetProductArgs, opts?: InvokeOptions): Promise<GetProductResult>function get_product(api_management_name=None, product_id=None, resource_group_name=None, opts=None)func LookupProduct(ctx *Context, args *LookupProductArgs, opts ...InvokeOption) (*LookupProductResult, error)Note: This function is named
LookupProductin the Go SDK.
public static class GetProduct {
public static Task<GetProductResult> InvokeAsync(GetProductArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Api
Management stringName The Name of the API Management Service in which this Product exists.
- Product
Id string The Identifier for the API Management Product.
- Resource
Group stringName The Name of the Resource Group in which the API Management Service exists.
- Api
Management stringName The Name of the API Management Service in which this Product exists.
- Product
Id string The Identifier for the API Management Product.
- Resource
Group stringName The Name of the Resource Group in which the API Management Service exists.
- api
Management stringName The Name of the API Management Service in which this Product exists.
- product
Id string The Identifier for the API Management Product.
- resource
Group stringName The Name of the Resource Group in which the API Management Service exists.
- api_
management_ strname The Name of the API Management Service in which this Product exists.
- product_
id str The Identifier for the API Management Product.
- resource_
group_ strname The Name of the Resource Group in which the API Management Service exists.
GetProduct Result
The following output properties are available:
- Api
Management stringName - Approval
Required bool Do subscribers need to be approved prior to being able to use the Product?
- Description string
The description of this Product, which may include HTML formatting tags.
- Display
Name string The Display Name for this API Management Product.
- Id string
The provider-assigned unique ID for this managed resource.
- Product
Id string - Published bool
Is this Product Published?
- Resource
Group stringName - Subscription
Required bool Is a Subscription required to access API’s included in this Product?
- Subscriptions
Limit int The number of subscriptions a user can have to this Product at the same time.
- Terms string
Any Terms and Conditions for this Product, which must be accepted by Developers before they can begin the Subscription process.
- Api
Management stringName - Approval
Required bool Do subscribers need to be approved prior to being able to use the Product?
- Description string
The description of this Product, which may include HTML formatting tags.
- Display
Name string The Display Name for this API Management Product.
- Id string
The provider-assigned unique ID for this managed resource.
- Product
Id string - Published bool
Is this Product Published?
- Resource
Group stringName - Subscription
Required bool Is a Subscription required to access API’s included in this Product?
- Subscriptions
Limit int The number of subscriptions a user can have to this Product at the same time.
- Terms string
Any Terms and Conditions for this Product, which must be accepted by Developers before they can begin the Subscription process.
- api
Management stringName - approval
Required boolean Do subscribers need to be approved prior to being able to use the Product?
- description string
The description of this Product, which may include HTML formatting tags.
- display
Name string The Display Name for this API Management Product.
- id string
The provider-assigned unique ID for this managed resource.
- product
Id string - published boolean
Is this Product Published?
- resource
Group stringName - subscription
Required boolean Is a Subscription required to access API’s included in this Product?
- subscriptions
Limit number The number of subscriptions a user can have to this Product at the same time.
- terms string
Any Terms and Conditions for this Product, which must be accepted by Developers before they can begin the Subscription process.
- api_
management_ strname - approval_
required bool Do subscribers need to be approved prior to being able to use the Product?
- description str
The description of this Product, which may include HTML formatting tags.
- display_
name str The Display Name for this API Management Product.
- id str
The provider-assigned unique ID for this managed resource.
- product_
id str - published bool
Is this Product Published?
- resource_
group_ strname - subscription_
required bool Is a Subscription required to access API’s included in this Product?
- subscriptions_
limit float The number of subscriptions a user can have to this Product at the same time.
- terms str
Any Terms and Conditions for this Product, which must be accepted by Developers before they can begin the Subscription process.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.