azure-native.apimanagement.ProductApi
Explore with Pulumi AI
Api details. API Version: 2020-12-01.
Example Usage
ApiManagementCreateProductApi
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var productApi = new AzureNative.ApiManagement.ProductApi("productApi", new()
{
ApiId = "echo-api",
ProductId = "testproduct",
ResourceGroupName = "rg1",
ServiceName = "apimService1",
});
});
package main
import (
apimanagement "github.com/pulumi/pulumi-azure-native-sdk/apimanagement"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := apimanagement.NewProductApi(ctx, "productApi", &apimanagement.ProductApiArgs{
ApiId: pulumi.String("echo-api"),
ProductId: pulumi.String("testproduct"),
ResourceGroupName: pulumi.String("rg1"),
ServiceName: pulumi.String("apimService1"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.apimanagement.ProductApi;
import com.pulumi.azurenative.apimanagement.ProductApiArgs;
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) {
var productApi = new ProductApi("productApi", ProductApiArgs.builder()
.apiId("echo-api")
.productId("testproduct")
.resourceGroupName("rg1")
.serviceName("apimService1")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
product_api = azure_native.apimanagement.ProductApi("productApi",
api_id="echo-api",
product_id="testproduct",
resource_group_name="rg1",
service_name="apimService1")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const productApi = new azure_native.apimanagement.ProductApi("productApi", {
apiId: "echo-api",
productId: "testproduct",
resourceGroupName: "rg1",
serviceName: "apimService1",
});
resources:
productApi:
type: azure-native:apimanagement:ProductApi
properties:
apiId: echo-api
productId: testproduct
resourceGroupName: rg1
serviceName: apimService1
Create ProductApi Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ProductApi(name: string, args: ProductApiArgs, opts?: CustomResourceOptions);
@overload
def ProductApi(resource_name: str,
args: ProductApiArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ProductApi(resource_name: str,
opts: Optional[ResourceOptions] = None,
product_id: Optional[str] = None,
resource_group_name: Optional[str] = None,
service_name: Optional[str] = None,
api_id: Optional[str] = None)
func NewProductApi(ctx *Context, name string, args ProductApiArgs, opts ...ResourceOption) (*ProductApi, error)
public ProductApi(string name, ProductApiArgs args, CustomResourceOptions? opts = null)
public ProductApi(String name, ProductApiArgs args)
public ProductApi(String name, ProductApiArgs args, CustomResourceOptions options)
type: azure-native:apimanagement:ProductApi
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ProductApiArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ProductApiArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ProductApiArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ProductApiArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ProductApiArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var productApiResource = new AzureNative.Apimanagement.ProductApi("productApiResource", new()
{
ProductId = "string",
ResourceGroupName = "string",
ServiceName = "string",
ApiId = "string",
});
example, err := apimanagement.NewProductApi(ctx, "productApiResource", &apimanagement.ProductApiArgs{
ProductId: "string",
ResourceGroupName: "string",
ServiceName: "string",
ApiId: "string",
})
var productApiResource = new ProductApi("productApiResource", ProductApiArgs.builder()
.productId("string")
.resourceGroupName("string")
.serviceName("string")
.apiId("string")
.build());
product_api_resource = azure_native.apimanagement.ProductApi("productApiResource",
product_id=string,
resource_group_name=string,
service_name=string,
api_id=string)
const productApiResource = new azure_native.apimanagement.ProductApi("productApiResource", {
productId: "string",
resourceGroupName: "string",
serviceName: "string",
apiId: "string",
});
type: azure-native:apimanagement:ProductApi
properties:
apiId: string
productId: string
resourceGroupName: string
serviceName: string
ProductApi Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The ProductApi resource accepts the following input properties:
- Product
Id string - Product identifier. Must be unique in the current API Management service instance.
- Resource
Group stringName - The name of the resource group.
- Service
Name string - The name of the API Management service.
- Api
Id string - API revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number.
- Product
Id string - Product identifier. Must be unique in the current API Management service instance.
- Resource
Group stringName - The name of the resource group.
- Service
Name string - The name of the API Management service.
- Api
Id string - API revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number.
- product
Id String - Product identifier. Must be unique in the current API Management service instance.
- resource
Group StringName - The name of the resource group.
- service
Name String - The name of the API Management service.
- api
Id String - API revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number.
- product
Id string - Product identifier. Must be unique in the current API Management service instance.
- resource
Group stringName - The name of the resource group.
- service
Name string - The name of the API Management service.
- api
Id string - API revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number.
- product_
id str - Product identifier. Must be unique in the current API Management service instance.
- resource_
group_ strname - The name of the resource group.
- service_
name str - The name of the API Management service.
- api_
id str - API revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number.
- product
Id String - Product identifier. Must be unique in the current API Management service instance.
- resource
Group StringName - The name of the resource group.
- service
Name String - The name of the API Management service.
- api
Id String - API revision identifier. Must be unique in the current API Management service instance. Non-current revision has ;rev=n as a suffix where n is the revision number.
Outputs
All input properties are implicitly available as output properties. Additionally, the ProductApi resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Online bool - Indicates if API revision is accessible via the gateway.
- Name string
- Resource name.
- Path string
- Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance. It is appended to the API endpoint base URL specified during the service instance creation to form a public URL for this API.
- Type string
- Resource type for API Management resource.
- Api
Revision string - Describes the Revision of the Api. If no value is provided, default revision 1 is created
- Api
Revision stringDescription - Description of the Api Revision.
- Api
Type string - Type of API.
- Api
Version string - Indicates the Version identifier of the API if the API is versioned
- Api
Version stringDescription - Description of the Api Version.
- Api
Version Pulumi.Set Azure Native. Api Management. Outputs. Api Version Set Contract Details Response - Version set details
- Api
Version stringSet Id - A resource identifier for the related ApiVersionSet.
- Authentication
Settings Pulumi.Azure Native. Api Management. Outputs. Authentication Settings Contract Response - Collection of authentication settings included into this API.
- Description string
- Description of the API. May include HTML formatting tags.
- Display
Name string - API name. Must be 1 to 300 characters long.
- Is
Current bool - Indicates if API revision is current api revision.
- Protocols List<string>
- Describes on which protocols the operations in this API can be invoked.
- Service
Url string - Absolute URL of the backend service implementing this API. Cannot be more than 2000 characters long.
- Source
Api stringId - API identifier of the source API.
- Subscription
Key Pulumi.Parameter Names Azure Native. Api Management. Outputs. Subscription Key Parameter Names Contract Response - Protocols over which API is made available.
- Subscription
Required bool - Specifies whether an API or Product subscription is required for accessing the API.
- Id string
- The provider-assigned unique ID for this managed resource.
- Is
Online bool - Indicates if API revision is accessible via the gateway.
- Name string
- Resource name.
- Path string
- Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance. It is appended to the API endpoint base URL specified during the service instance creation to form a public URL for this API.
- Type string
- Resource type for API Management resource.
- Api
Revision string - Describes the Revision of the Api. If no value is provided, default revision 1 is created
- Api
Revision stringDescription - Description of the Api Revision.
- Api
Type string - Type of API.
- Api
Version string - Indicates the Version identifier of the API if the API is versioned
- Api
Version stringDescription - Description of the Api Version.
- Api
Version ApiSet Version Set Contract Details Response - Version set details
- Api
Version stringSet Id - A resource identifier for the related ApiVersionSet.
- Authentication
Settings AuthenticationSettings Contract Response - Collection of authentication settings included into this API.
- Description string
- Description of the API. May include HTML formatting tags.
- Display
Name string - API name. Must be 1 to 300 characters long.
- Is
Current bool - Indicates if API revision is current api revision.
- Protocols []string
- Describes on which protocols the operations in this API can be invoked.
- Service
Url string - Absolute URL of the backend service implementing this API. Cannot be more than 2000 characters long.
- Source
Api stringId - API identifier of the source API.
- Subscription
Key SubscriptionParameter Names Key Parameter Names Contract Response - Protocols over which API is made available.
- Subscription
Required bool - Specifies whether an API or Product subscription is required for accessing the API.
- id String
- The provider-assigned unique ID for this managed resource.
- is
Online Boolean - Indicates if API revision is accessible via the gateway.
- name String
- Resource name.
- path String
- Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance. It is appended to the API endpoint base URL specified during the service instance creation to form a public URL for this API.
- type String
- Resource type for API Management resource.
- api
Revision String - Describes the Revision of the Api. If no value is provided, default revision 1 is created
- api
Revision StringDescription - Description of the Api Revision.
- api
Type String - Type of API.
- api
Version String - Indicates the Version identifier of the API if the API is versioned
- api
Version StringDescription - Description of the Api Version.
- api
Version ApiSet Version Set Contract Details Response - Version set details
- api
Version StringSet Id - A resource identifier for the related ApiVersionSet.
- authentication
Settings AuthenticationSettings Contract Response - Collection of authentication settings included into this API.
- description String
- Description of the API. May include HTML formatting tags.
- display
Name String - API name. Must be 1 to 300 characters long.
- is
Current Boolean - Indicates if API revision is current api revision.
- protocols List<String>
- Describes on which protocols the operations in this API can be invoked.
- service
Url String - Absolute URL of the backend service implementing this API. Cannot be more than 2000 characters long.
- source
Api StringId - API identifier of the source API.
- subscription
Key SubscriptionParameter Names Key Parameter Names Contract Response - Protocols over which API is made available.
- subscription
Required Boolean - Specifies whether an API or Product subscription is required for accessing the API.
- id string
- The provider-assigned unique ID for this managed resource.
- is
Online boolean - Indicates if API revision is accessible via the gateway.
- name string
- Resource name.
- path string
- Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance. It is appended to the API endpoint base URL specified during the service instance creation to form a public URL for this API.
- type string
- Resource type for API Management resource.
- api
Revision string - Describes the Revision of the Api. If no value is provided, default revision 1 is created
- api
Revision stringDescription - Description of the Api Revision.
- api
Type string - Type of API.
- api
Version string - Indicates the Version identifier of the API if the API is versioned
- api
Version stringDescription - Description of the Api Version.
- api
Version ApiSet Version Set Contract Details Response - Version set details
- api
Version stringSet Id - A resource identifier for the related ApiVersionSet.
- authentication
Settings AuthenticationSettings Contract Response - Collection of authentication settings included into this API.
- description string
- Description of the API. May include HTML formatting tags.
- display
Name string - API name. Must be 1 to 300 characters long.
- is
Current boolean - Indicates if API revision is current api revision.
- protocols string[]
- Describes on which protocols the operations in this API can be invoked.
- service
Url string - Absolute URL of the backend service implementing this API. Cannot be more than 2000 characters long.
- source
Api stringId - API identifier of the source API.
- subscription
Key SubscriptionParameter Names Key Parameter Names Contract Response - Protocols over which API is made available.
- subscription
Required boolean - Specifies whether an API or Product subscription is required for accessing the API.
- id str
- The provider-assigned unique ID for this managed resource.
- is_
online bool - Indicates if API revision is accessible via the gateway.
- name str
- Resource name.
- path str
- Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance. It is appended to the API endpoint base URL specified during the service instance creation to form a public URL for this API.
- type str
- Resource type for API Management resource.
- api_
revision str - Describes the Revision of the Api. If no value is provided, default revision 1 is created
- api_
revision_ strdescription - Description of the Api Revision.
- api_
type str - Type of API.
- api_
version str - Indicates the Version identifier of the API if the API is versioned
- api_
version_ strdescription - Description of the Api Version.
- api_
version_ Apiset Version Set Contract Details Response - Version set details
- api_
version_ strset_ id - A resource identifier for the related ApiVersionSet.
- authentication_
settings AuthenticationSettings Contract Response - Collection of authentication settings included into this API.
- description str
- Description of the API. May include HTML formatting tags.
- display_
name str - API name. Must be 1 to 300 characters long.
- is_
current bool - Indicates if API revision is current api revision.
- protocols Sequence[str]
- Describes on which protocols the operations in this API can be invoked.
- service_
url str - Absolute URL of the backend service implementing this API. Cannot be more than 2000 characters long.
- source_
api_ strid - API identifier of the source API.
- subscription_
key_ Subscriptionparameter_ names Key Parameter Names Contract Response - Protocols over which API is made available.
- subscription_
required bool - Specifies whether an API or Product subscription is required for accessing the API.
- id String
- The provider-assigned unique ID for this managed resource.
- is
Online Boolean - Indicates if API revision is accessible via the gateway.
- name String
- Resource name.
- path String
- Relative URL uniquely identifying this API and all of its resource paths within the API Management service instance. It is appended to the API endpoint base URL specified during the service instance creation to form a public URL for this API.
- type String
- Resource type for API Management resource.
- api
Revision String - Describes the Revision of the Api. If no value is provided, default revision 1 is created
- api
Revision StringDescription - Description of the Api Revision.
- api
Type String - Type of API.
- api
Version String - Indicates the Version identifier of the API if the API is versioned
- api
Version StringDescription - Description of the Api Version.
- api
Version Property MapSet - Version set details
- api
Version StringSet Id - A resource identifier for the related ApiVersionSet.
- authentication
Settings Property Map - Collection of authentication settings included into this API.
- description String
- Description of the API. May include HTML formatting tags.
- display
Name String - API name. Must be 1 to 300 characters long.
- is
Current Boolean - Indicates if API revision is current api revision.
- protocols List<String>
- Describes on which protocols the operations in this API can be invoked.
- service
Url String - Absolute URL of the backend service implementing this API. Cannot be more than 2000 characters long.
- source
Api StringId - API identifier of the source API.
- subscription
Key Property MapParameter Names - Protocols over which API is made available.
- subscription
Required Boolean - Specifies whether an API or Product subscription is required for accessing the API.
Supporting Types
ApiVersionSetContractDetailsResponse, ApiVersionSetContractDetailsResponseArgs
- Description string
- Description of API Version Set.
- Id string
- Identifier for existing API Version Set. Omit this value to create a new Version Set.
- Name string
- The display Name of the API Version Set.
- Version
Header stringName - Name of HTTP header parameter that indicates the API Version if versioningScheme is set to
header
. - Version
Query stringName - Name of query parameter that indicates the API Version if versioningScheme is set to
query
. - Versioning
Scheme string - An value that determines where the API Version identifier will be located in a HTTP request.
- Description string
- Description of API Version Set.
- Id string
- Identifier for existing API Version Set. Omit this value to create a new Version Set.
- Name string
- The display Name of the API Version Set.
- Version
Header stringName - Name of HTTP header parameter that indicates the API Version if versioningScheme is set to
header
. - Version
Query stringName - Name of query parameter that indicates the API Version if versioningScheme is set to
query
. - Versioning
Scheme string - An value that determines where the API Version identifier will be located in a HTTP request.
- description String
- Description of API Version Set.
- id String
- Identifier for existing API Version Set. Omit this value to create a new Version Set.
- name String
- The display Name of the API Version Set.
- version
Header StringName - Name of HTTP header parameter that indicates the API Version if versioningScheme is set to
header
. - version
Query StringName - Name of query parameter that indicates the API Version if versioningScheme is set to
query
. - versioning
Scheme String - An value that determines where the API Version identifier will be located in a HTTP request.
- description string
- Description of API Version Set.
- id string
- Identifier for existing API Version Set. Omit this value to create a new Version Set.
- name string
- The display Name of the API Version Set.
- version
Header stringName - Name of HTTP header parameter that indicates the API Version if versioningScheme is set to
header
. - version
Query stringName - Name of query parameter that indicates the API Version if versioningScheme is set to
query
. - versioning
Scheme string - An value that determines where the API Version identifier will be located in a HTTP request.
- description str
- Description of API Version Set.
- id str
- Identifier for existing API Version Set. Omit this value to create a new Version Set.
- name str
- The display Name of the API Version Set.
- version_
header_ strname - Name of HTTP header parameter that indicates the API Version if versioningScheme is set to
header
. - version_
query_ strname - Name of query parameter that indicates the API Version if versioningScheme is set to
query
. - versioning_
scheme str - An value that determines where the API Version identifier will be located in a HTTP request.
- description String
- Description of API Version Set.
- id String
- Identifier for existing API Version Set. Omit this value to create a new Version Set.
- name String
- The display Name of the API Version Set.
- version
Header StringName - Name of HTTP header parameter that indicates the API Version if versioningScheme is set to
header
. - version
Query StringName - Name of query parameter that indicates the API Version if versioningScheme is set to
query
. - versioning
Scheme String - An value that determines where the API Version identifier will be located in a HTTP request.
AuthenticationSettingsContractResponse, AuthenticationSettingsContractResponseArgs
- OAuth2
Pulumi.
Azure Native. Api Management. Inputs. OAuth2Authentication Settings Contract Response - OAuth2 Authentication settings
- Openid
Pulumi.
Azure Native. Api Management. Inputs. Open Id Authentication Settings Contract Response - OpenID Connect Authentication Settings
- OAuth2
OAuth2Authentication
Settings Contract Response - OAuth2 Authentication settings
- Openid
Open
Id Authentication Settings Contract Response - OpenID Connect Authentication Settings
- o
Auth2 OAuth2AuthenticationSettings Contract Response - OAuth2 Authentication settings
- openid
Open
Id Authentication Settings Contract Response - OpenID Connect Authentication Settings
- o
Auth2 OAuth2AuthenticationSettings Contract Response - OAuth2 Authentication settings
- openid
Open
Id Authentication Settings Contract Response - OpenID Connect Authentication Settings
- o_
auth2 OAuth2AuthenticationSettings Contract Response - OAuth2 Authentication settings
- openid
Open
Id Authentication Settings Contract Response - OpenID Connect Authentication Settings
- o
Auth2 Property Map - OAuth2 Authentication settings
- openid Property Map
- OpenID Connect Authentication Settings
OAuth2AuthenticationSettingsContractResponse, OAuth2AuthenticationSettingsContractResponseArgs
- string
- OAuth authorization server identifier.
- Scope string
- operations scope.
- string
- OAuth authorization server identifier.
- Scope string
- operations scope.
- String
- OAuth authorization server identifier.
- scope String
- operations scope.
- string
- OAuth authorization server identifier.
- scope string
- operations scope.
- str
- OAuth authorization server identifier.
- scope str
- operations scope.
- String
- OAuth authorization server identifier.
- scope String
- operations scope.
OpenIdAuthenticationSettingsContractResponse, OpenIdAuthenticationSettingsContractResponseArgs
- Bearer
Token List<string>Sending Methods - How to send token to the server.
- Openid
Provider stringId - OAuth authorization server identifier.
- Bearer
Token []stringSending Methods - How to send token to the server.
- Openid
Provider stringId - OAuth authorization server identifier.
- bearer
Token List<String>Sending Methods - How to send token to the server.
- openid
Provider StringId - OAuth authorization server identifier.
- bearer
Token string[]Sending Methods - How to send token to the server.
- openid
Provider stringId - OAuth authorization server identifier.
- bearer_
token_ Sequence[str]sending_ methods - How to send token to the server.
- openid_
provider_ strid - OAuth authorization server identifier.
- bearer
Token List<String>Sending Methods - How to send token to the server.
- openid
Provider StringId - OAuth authorization server identifier.
SubscriptionKeyParameterNamesContractResponse, SubscriptionKeyParameterNamesContractResponseArgs
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:apimanagement:ProductApi 5931a75ae4bbd512a88c680b /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/5931a75ae4bbd512a88c680b
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0