Azure Native
ContentType
Content type contract details. API Version: 2020-12-01.
Example Usage
ApiManagementCreateContentType
using Pulumi;
using AzureNative = Pulumi.AzureNative;
class MyStack : Stack
{
public MyStack()
{
var contentType = new AzureNative.ApiManagement.ContentType("contentType", new AzureNative.ApiManagement.ContentTypeArgs
{
ContentTypeId = "page",
ResourceGroupName = "rg1",
ServiceName = "apimService1",
});
}
}
package main
import (
apimanagement "github.com/pulumi/pulumi-azure-native/sdk/go/azure/apimanagement"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := apimanagement.NewContentType(ctx, "contentType", &apimanagement.ContentTypeArgs{
ContentTypeId: pulumi.String("page"),
ResourceGroupName: pulumi.String("rg1"),
ServiceName: pulumi.String("apimService1"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var contentType = new ContentType("contentType", ContentTypeArgs.builder()
.contentTypeId("page")
.resourceGroupName("rg1")
.serviceName("apimService1")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
content_type = azure_native.apimanagement.ContentType("contentType",
content_type_id="page",
resource_group_name="rg1",
service_name="apimService1")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const contentType = new azure_native.apimanagement.ContentType("contentType", {
contentTypeId: "page",
resourceGroupName: "rg1",
serviceName: "apimService1",
});
resources:
contentType:
type: azure-native:apimanagement:ContentType
properties:
contentTypeId: page
resourceGroupName: rg1
serviceName: apimService1
Create a ContentType Resource
new ContentType(name: string, args: ContentTypeArgs, opts?: CustomResourceOptions);
@overload
def ContentType(resource_name: str,
opts: Optional[ResourceOptions] = None,
content_type_id: Optional[str] = None,
resource_group_name: Optional[str] = None,
service_name: Optional[str] = None)
@overload
def ContentType(resource_name: str,
args: ContentTypeArgs,
opts: Optional[ResourceOptions] = None)
func NewContentType(ctx *Context, name string, args ContentTypeArgs, opts ...ResourceOption) (*ContentType, error)
public ContentType(string name, ContentTypeArgs args, CustomResourceOptions? opts = null)
public ContentType(String name, ContentTypeArgs args)
public ContentType(String name, ContentTypeArgs args, CustomResourceOptions options)
type: azure-native:apimanagement:ContentType
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ContentTypeArgs
- 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 ContentTypeArgs
- 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 ContentTypeArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ContentTypeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ContentTypeArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ContentType Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The ContentType resource accepts the following input properties:
- Resource
Group stringName The name of the resource group.
- Service
Name string The name of the API Management service.
- Content
Type stringId Content type identifier.
- Resource
Group stringName The name of the resource group.
- Service
Name string The name of the API Management service.
- Content
Type stringId Content type identifier.
- resource
Group StringName The name of the resource group.
- service
Name String The name of the API Management service.
- content
Type StringId Content type identifier.
- resource
Group stringName The name of the resource group.
- service
Name string The name of the API Management service.
- content
Type stringId Content type identifier.
- resource_
group_ strname The name of the resource group.
- service_
name str The name of the API Management service.
- content_
type_ strid Content type identifier.
- resource
Group StringName The name of the resource group.
- service
Name String The name of the API Management service.
- content
Type StringId Content type identifier.
Outputs
All input properties are implicitly available as output properties. Additionally, the ContentType resource produces the following output properties:
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:apimanagement:ContentType page /contentTypes/page
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure-native
- License
- Apache-2.0