azure-native.apimanagement.ApiOperation
Explore with Pulumi AI
Api Operation details. API Version: 2020-12-01.
Example Usage
ApiManagementCreateApiOperation
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var apiOperation = new AzureNative.ApiManagement.ApiOperation("apiOperation", new()
{
ApiId = "PetStoreTemplate2",
Description = "This can only be done by the logged in user.",
DisplayName = "createUser2",
Method = "POST",
OperationId = "newoperations",
Request = new AzureNative.ApiManagement.Inputs.RequestContractArgs
{
Description = "Created user object",
Headers = new[] {},
QueryParameters = new[] {},
Representations = new[]
{
new AzureNative.ApiManagement.Inputs.RepresentationContractArgs
{
ContentType = "application/json",
SchemaId = "592f6c1d0af5840ca8897f0c",
TypeName = "User",
},
},
},
ResourceGroupName = "rg1",
Responses = new[]
{
new AzureNative.ApiManagement.Inputs.ResponseContractArgs
{
Description = "successful operation",
Headers = new[] {},
Representations = new[]
{
new AzureNative.ApiManagement.Inputs.RepresentationContractArgs
{
ContentType = "application/xml",
},
new AzureNative.ApiManagement.Inputs.RepresentationContractArgs
{
ContentType = "application/json",
},
},
StatusCode = 200,
},
},
ServiceName = "apimService1",
TemplateParameters = new[] {},
UrlTemplate = "/user1",
});
});
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.NewApiOperation(ctx, "apiOperation", &apimanagement.ApiOperationArgs{
ApiId: pulumi.String("PetStoreTemplate2"),
Description: pulumi.String("This can only be done by the logged in user."),
DisplayName: pulumi.String("createUser2"),
Method: pulumi.String("POST"),
OperationId: pulumi.String("newoperations"),
Request: apimanagement.RequestContractResponse{
Description: pulumi.String("Created user object"),
Headers: apimanagement.ParameterContractArray{},
QueryParameters: apimanagement.ParameterContractArray{},
Representations: apimanagement.RepresentationContractArray{
&apimanagement.RepresentationContractArgs{
ContentType: pulumi.String("application/json"),
SchemaId: pulumi.String("592f6c1d0af5840ca8897f0c"),
TypeName: pulumi.String("User"),
},
},
},
ResourceGroupName: pulumi.String("rg1"),
Responses: []apimanagement.ResponseContractArgs{
{
Description: pulumi.String("successful operation"),
Headers: apimanagement.ParameterContractArray{},
Representations: apimanagement.RepresentationContractArray{
{
ContentType: pulumi.String("application/xml"),
},
{
ContentType: pulumi.String("application/json"),
},
},
StatusCode: pulumi.Int(200),
},
},
ServiceName: pulumi.String("apimService1"),
TemplateParameters: apimanagement.ParameterContractArray{},
UrlTemplate: pulumi.String("/user1"),
})
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.ApiOperation;
import com.pulumi.azurenative.apimanagement.ApiOperationArgs;
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 apiOperation = new ApiOperation("apiOperation", ApiOperationArgs.builder()
.apiId("PetStoreTemplate2")
.description("This can only be done by the logged in user.")
.displayName("createUser2")
.method("POST")
.operationId("newoperations")
.request(Map.ofEntries(
Map.entry("description", "Created user object"),
Map.entry("headers", ),
Map.entry("queryParameters", ),
Map.entry("representations", Map.ofEntries(
Map.entry("contentType", "application/json"),
Map.entry("schemaId", "592f6c1d0af5840ca8897f0c"),
Map.entry("typeName", "User")
))
))
.resourceGroupName("rg1")
.responses(Map.ofEntries(
Map.entry("description", "successful operation"),
Map.entry("headers", ),
Map.entry("representations",
Map.of("contentType", "application/xml"),
Map.of("contentType", "application/json")),
Map.entry("statusCode", 200)
))
.serviceName("apimService1")
.templateParameters()
.urlTemplate("/user1")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
api_operation = azure_native.apimanagement.ApiOperation("apiOperation",
api_id="PetStoreTemplate2",
description="This can only be done by the logged in user.",
display_name="createUser2",
method="POST",
operation_id="newoperations",
request=azure_native.apimanagement.RequestContractResponseArgs(
description="Created user object",
headers=[],
query_parameters=[],
representations=[azure_native.apimanagement.RepresentationContractArgs(
content_type="application/json",
schema_id="592f6c1d0af5840ca8897f0c",
type_name="User",
)],
),
resource_group_name="rg1",
responses=[{
"description": "successful operation",
"headers": [],
"representations": [
azure_native.apimanagement.RepresentationContractArgs(
content_type="application/xml",
),
azure_native.apimanagement.RepresentationContractArgs(
content_type="application/json",
),
],
"statusCode": 200,
}],
service_name="apimService1",
template_parameters=[],
url_template="/user1")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const apiOperation = new azure_native.apimanagement.ApiOperation("apiOperation", {
apiId: "PetStoreTemplate2",
description: "This can only be done by the logged in user.",
displayName: "createUser2",
method: "POST",
operationId: "newoperations",
request: {
description: "Created user object",
headers: [],
queryParameters: [],
representations: [{
contentType: "application/json",
schemaId: "592f6c1d0af5840ca8897f0c",
typeName: "User",
}],
},
resourceGroupName: "rg1",
responses: [{
description: "successful operation",
headers: [],
representations: [
{
contentType: "application/xml",
},
{
contentType: "application/json",
},
],
statusCode: 200,
}],
serviceName: "apimService1",
templateParameters: [],
urlTemplate: "/user1",
});
resources:
apiOperation:
type: azure-native:apimanagement:ApiOperation
properties:
apiId: PetStoreTemplate2
description: This can only be done by the logged in user.
displayName: createUser2
method: POST
operationId: newoperations
request:
description: Created user object
headers: []
queryParameters: []
representations:
- contentType: application/json
schemaId: 592f6c1d0af5840ca8897f0c
typeName: User
resourceGroupName: rg1
responses:
- description: successful operation
headers: []
representations:
- contentType: application/xml
- contentType: application/json
statusCode: 200
serviceName: apimService1
templateParameters: []
urlTemplate: /user1
Create ApiOperation Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ApiOperation(name: string, args: ApiOperationArgs, opts?: CustomResourceOptions);
@overload
def ApiOperation(resource_name: str,
args: ApiOperationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ApiOperation(resource_name: str,
opts: Optional[ResourceOptions] = None,
api_id: Optional[str] = None,
display_name: Optional[str] = None,
method: Optional[str] = None,
resource_group_name: Optional[str] = None,
service_name: Optional[str] = None,
url_template: Optional[str] = None,
description: Optional[str] = None,
operation_id: Optional[str] = None,
policies: Optional[str] = None,
request: Optional[RequestContractArgs] = None,
responses: Optional[Sequence[ResponseContractArgs]] = None,
template_parameters: Optional[Sequence[ParameterContractArgs]] = None)
func NewApiOperation(ctx *Context, name string, args ApiOperationArgs, opts ...ResourceOption) (*ApiOperation, error)
public ApiOperation(string name, ApiOperationArgs args, CustomResourceOptions? opts = null)
public ApiOperation(String name, ApiOperationArgs args)
public ApiOperation(String name, ApiOperationArgs args, CustomResourceOptions options)
type: azure-native:apimanagement:ApiOperation
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 ApiOperationArgs
- 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 ApiOperationArgs
- 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 ApiOperationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ApiOperationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ApiOperationArgs
- 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 apiOperationResource = new AzureNative.Apimanagement.ApiOperation("apiOperationResource", new()
{
ApiId = "string",
DisplayName = "string",
Method = "string",
ResourceGroupName = "string",
ServiceName = "string",
UrlTemplate = "string",
Description = "string",
OperationId = "string",
Policies = "string",
Request =
{
{ "description", "string" },
{ "headers", new[]
{
{
{ "name", "string" },
{ "type", "string" },
{ "defaultValue", "string" },
{ "description", "string" },
{ "required", false },
{ "values", new[]
{
"string",
} },
},
} },
{ "queryParameters", new[]
{
{
{ "name", "string" },
{ "type", "string" },
{ "defaultValue", "string" },
{ "description", "string" },
{ "required", false },
{ "values", new[]
{
"string",
} },
},
} },
{ "representations", new[]
{
{
{ "contentType", "string" },
{ "formParameters", new[]
{
{
{ "name", "string" },
{ "type", "string" },
{ "defaultValue", "string" },
{ "description", "string" },
{ "required", false },
{ "values", new[]
{
"string",
} },
},
} },
{ "sample", "string" },
{ "schemaId", "string" },
{ "typeName", "string" },
},
} },
},
Responses = new[]
{
{
{ "statusCode", 0 },
{ "description", "string" },
{ "headers", new[]
{
{
{ "name", "string" },
{ "type", "string" },
{ "defaultValue", "string" },
{ "description", "string" },
{ "required", false },
{ "values", new[]
{
"string",
} },
},
} },
{ "representations", new[]
{
{
{ "contentType", "string" },
{ "formParameters", new[]
{
{
{ "name", "string" },
{ "type", "string" },
{ "defaultValue", "string" },
{ "description", "string" },
{ "required", false },
{ "values", new[]
{
"string",
} },
},
} },
{ "sample", "string" },
{ "schemaId", "string" },
{ "typeName", "string" },
},
} },
},
},
TemplateParameters = new[]
{
{
{ "name", "string" },
{ "type", "string" },
{ "defaultValue", "string" },
{ "description", "string" },
{ "required", false },
{ "values", new[]
{
"string",
} },
},
},
});
example, err := apimanagement.NewApiOperation(ctx, "apiOperationResource", &apimanagement.ApiOperationArgs{
ApiId: "string",
DisplayName: "string",
Method: "string",
ResourceGroupName: "string",
ServiceName: "string",
UrlTemplate: "string",
Description: "string",
OperationId: "string",
Policies: "string",
Request: map[string]interface{}{
"description": "string",
"headers": []map[string]interface{}{
map[string]interface{}{
"name": "string",
"type": "string",
"defaultValue": "string",
"description": "string",
"required": false,
"values": []string{
"string",
},
},
},
"queryParameters": []map[string]interface{}{
map[string]interface{}{
"name": "string",
"type": "string",
"defaultValue": "string",
"description": "string",
"required": false,
"values": []string{
"string",
},
},
},
"representations": []map[string]interface{}{
map[string]interface{}{
"contentType": "string",
"formParameters": []map[string]interface{}{
map[string]interface{}{
"name": "string",
"type": "string",
"defaultValue": "string",
"description": "string",
"required": false,
"values": []string{
"string",
},
},
},
"sample": "string",
"schemaId": "string",
"typeName": "string",
},
},
},
Responses: []map[string]interface{}{
map[string]interface{}{
"statusCode": 0,
"description": "string",
"headers": []map[string]interface{}{
map[string]interface{}{
"name": "string",
"type": "string",
"defaultValue": "string",
"description": "string",
"required": false,
"values": []string{
"string",
},
},
},
"representations": []map[string]interface{}{
map[string]interface{}{
"contentType": "string",
"formParameters": []map[string]interface{}{
map[string]interface{}{
"name": "string",
"type": "string",
"defaultValue": "string",
"description": "string",
"required": false,
"values": []string{
"string",
},
},
},
"sample": "string",
"schemaId": "string",
"typeName": "string",
},
},
},
},
TemplateParameters: []map[string]interface{}{
map[string]interface{}{
"name": "string",
"type": "string",
"defaultValue": "string",
"description": "string",
"required": false,
"values": []string{
"string",
},
},
},
})
var apiOperationResource = new ApiOperation("apiOperationResource", ApiOperationArgs.builder()
.apiId("string")
.displayName("string")
.method("string")
.resourceGroupName("string")
.serviceName("string")
.urlTemplate("string")
.description("string")
.operationId("string")
.policies("string")
.request(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.responses(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.templateParameters(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
api_operation_resource = azure_native.apimanagement.ApiOperation("apiOperationResource",
api_id=string,
display_name=string,
method=string,
resource_group_name=string,
service_name=string,
url_template=string,
description=string,
operation_id=string,
policies=string,
request={
description: string,
headers: [{
name: string,
type: string,
defaultValue: string,
description: string,
required: False,
values: [string],
}],
queryParameters: [{
name: string,
type: string,
defaultValue: string,
description: string,
required: False,
values: [string],
}],
representations: [{
contentType: string,
formParameters: [{
name: string,
type: string,
defaultValue: string,
description: string,
required: False,
values: [string],
}],
sample: string,
schemaId: string,
typeName: string,
}],
},
responses=[{
statusCode: 0,
description: string,
headers: [{
name: string,
type: string,
defaultValue: string,
description: string,
required: False,
values: [string],
}],
representations: [{
contentType: string,
formParameters: [{
name: string,
type: string,
defaultValue: string,
description: string,
required: False,
values: [string],
}],
sample: string,
schemaId: string,
typeName: string,
}],
}],
template_parameters=[{
name: string,
type: string,
defaultValue: string,
description: string,
required: False,
values: [string],
}])
const apiOperationResource = new azure_native.apimanagement.ApiOperation("apiOperationResource", {
apiId: "string",
displayName: "string",
method: "string",
resourceGroupName: "string",
serviceName: "string",
urlTemplate: "string",
description: "string",
operationId: "string",
policies: "string",
request: {
description: "string",
headers: [{
name: "string",
type: "string",
defaultValue: "string",
description: "string",
required: false,
values: ["string"],
}],
queryParameters: [{
name: "string",
type: "string",
defaultValue: "string",
description: "string",
required: false,
values: ["string"],
}],
representations: [{
contentType: "string",
formParameters: [{
name: "string",
type: "string",
defaultValue: "string",
description: "string",
required: false,
values: ["string"],
}],
sample: "string",
schemaId: "string",
typeName: "string",
}],
},
responses: [{
statusCode: 0,
description: "string",
headers: [{
name: "string",
type: "string",
defaultValue: "string",
description: "string",
required: false,
values: ["string"],
}],
representations: [{
contentType: "string",
formParameters: [{
name: "string",
type: "string",
defaultValue: "string",
description: "string",
required: false,
values: ["string"],
}],
sample: "string",
schemaId: "string",
typeName: "string",
}],
}],
templateParameters: [{
name: "string",
type: "string",
defaultValue: "string",
description: "string",
required: false,
values: ["string"],
}],
});
type: azure-native:apimanagement:ApiOperation
properties:
apiId: string
description: string
displayName: string
method: string
operationId: string
policies: string
request:
description: string
headers:
- defaultValue: string
description: string
name: string
required: false
type: string
values:
- string
queryParameters:
- defaultValue: string
description: string
name: string
required: false
type: string
values:
- string
representations:
- contentType: string
formParameters:
- defaultValue: string
description: string
name: string
required: false
type: string
values:
- string
sample: string
schemaId: string
typeName: string
resourceGroupName: string
responses:
- description: string
headers:
- defaultValue: string
description: string
name: string
required: false
type: string
values:
- string
representations:
- contentType: string
formParameters:
- defaultValue: string
description: string
name: string
required: false
type: string
values:
- string
sample: string
schemaId: string
typeName: string
statusCode: 0
serviceName: string
templateParameters:
- defaultValue: string
description: string
name: string
required: false
type: string
values:
- string
urlTemplate: string
ApiOperation 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 ApiOperation resource accepts the following input properties:
- 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.
- Display
Name string - Operation Name.
- Method string
- A Valid HTTP Operation Method. Typical Http Methods like GET, PUT, POST but not limited by only them.
- Resource
Group stringName - The name of the resource group.
- Service
Name string - The name of the API Management service.
- Url
Template string - Relative URL template identifying the target resource for this operation. May include parameters. Example: /customers/{cid}/orders/{oid}/?date={date}
- Description string
- Description of the operation. May include HTML formatting tags.
- Operation
Id string - Operation identifier within an API. Must be unique in the current API Management service instance.
- Policies string
- Operation Policies
- Request
Pulumi.
Azure Native. Api Management. Inputs. Request Contract - An entity containing request details.
- Responses
List<Pulumi.
Azure Native. Api Management. Inputs. Response Contract> - Array of Operation responses.
- Template
Parameters List<Pulumi.Azure Native. Api Management. Inputs. Parameter Contract> - Collection of URL template parameters.
- 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.
- Display
Name string - Operation Name.
- Method string
- A Valid HTTP Operation Method. Typical Http Methods like GET, PUT, POST but not limited by only them.
- Resource
Group stringName - The name of the resource group.
- Service
Name string - The name of the API Management service.
- Url
Template string - Relative URL template identifying the target resource for this operation. May include parameters. Example: /customers/{cid}/orders/{oid}/?date={date}
- Description string
- Description of the operation. May include HTML formatting tags.
- Operation
Id string - Operation identifier within an API. Must be unique in the current API Management service instance.
- Policies string
- Operation Policies
- Request
Request
Contract Args - An entity containing request details.
- Responses
[]Response
Contract Args - Array of Operation responses.
- Template
Parameters []ParameterContract Args - Collection of URL template parameters.
- 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.
- display
Name String - Operation Name.
- method String
- A Valid HTTP Operation Method. Typical Http Methods like GET, PUT, POST but not limited by only them.
- resource
Group StringName - The name of the resource group.
- service
Name String - The name of the API Management service.
- url
Template String - Relative URL template identifying the target resource for this operation. May include parameters. Example: /customers/{cid}/orders/{oid}/?date={date}
- description String
- Description of the operation. May include HTML formatting tags.
- operation
Id String - Operation identifier within an API. Must be unique in the current API Management service instance.
- policies String
- Operation Policies
- request
Request
Contract - An entity containing request details.
- responses
List<Response
Contract> - Array of Operation responses.
- template
Parameters List<ParameterContract> - Collection of URL template parameters.
- 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.
- display
Name string - Operation Name.
- method string
- A Valid HTTP Operation Method. Typical Http Methods like GET, PUT, POST but not limited by only them.
- resource
Group stringName - The name of the resource group.
- service
Name string - The name of the API Management service.
- url
Template string - Relative URL template identifying the target resource for this operation. May include parameters. Example: /customers/{cid}/orders/{oid}/?date={date}
- description string
- Description of the operation. May include HTML formatting tags.
- operation
Id string - Operation identifier within an API. Must be unique in the current API Management service instance.
- policies string
- Operation Policies
- request
Request
Contract - An entity containing request details.
- responses
Response
Contract[] - Array of Operation responses.
- template
Parameters ParameterContract[] - Collection of URL template parameters.
- 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.
- display_
name str - Operation Name.
- method str
- A Valid HTTP Operation Method. Typical Http Methods like GET, PUT, POST but not limited by only them.
- resource_
group_ strname - The name of the resource group.
- service_
name str - The name of the API Management service.
- url_
template str - Relative URL template identifying the target resource for this operation. May include parameters. Example: /customers/{cid}/orders/{oid}/?date={date}
- description str
- Description of the operation. May include HTML formatting tags.
- operation_
id str - Operation identifier within an API. Must be unique in the current API Management service instance.
- policies str
- Operation Policies
- request
Request
Contract Args - An entity containing request details.
- responses
Sequence[Response
Contract Args] - Array of Operation responses.
- template_
parameters Sequence[ParameterContract Args] - Collection of URL template parameters.
- 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.
- display
Name String - Operation Name.
- method String
- A Valid HTTP Operation Method. Typical Http Methods like GET, PUT, POST but not limited by only them.
- resource
Group StringName - The name of the resource group.
- service
Name String - The name of the API Management service.
- url
Template String - Relative URL template identifying the target resource for this operation. May include parameters. Example: /customers/{cid}/orders/{oid}/?date={date}
- description String
- Description of the operation. May include HTML formatting tags.
- operation
Id String - Operation identifier within an API. Must be unique in the current API Management service instance.
- policies String
- Operation Policies
- request Property Map
- An entity containing request details.
- responses List<Property Map>
- Array of Operation responses.
- template
Parameters List<Property Map> - Collection of URL template parameters.
Outputs
All input properties are implicitly available as output properties. Additionally, the ApiOperation resource produces the following output properties:
Supporting Types
ParameterContract, ParameterContractArgs
- Name string
- Parameter name.
- Type string
- Parameter type.
- Default
Value string - Default parameter value.
- Description string
- Parameter description.
- Required bool
- Specifies whether parameter is required or not.
- Values List<string>
- Parameter values.
- Name string
- Parameter name.
- Type string
- Parameter type.
- Default
Value string - Default parameter value.
- Description string
- Parameter description.
- Required bool
- Specifies whether parameter is required or not.
- Values []string
- Parameter values.
- name String
- Parameter name.
- type String
- Parameter type.
- default
Value String - Default parameter value.
- description String
- Parameter description.
- required Boolean
- Specifies whether parameter is required or not.
- values List<String>
- Parameter values.
- name string
- Parameter name.
- type string
- Parameter type.
- default
Value string - Default parameter value.
- description string
- Parameter description.
- required boolean
- Specifies whether parameter is required or not.
- values string[]
- Parameter values.
- name str
- Parameter name.
- type str
- Parameter type.
- default_
value str - Default parameter value.
- description str
- Parameter description.
- required bool
- Specifies whether parameter is required or not.
- values Sequence[str]
- Parameter values.
- name String
- Parameter name.
- type String
- Parameter type.
- default
Value String - Default parameter value.
- description String
- Parameter description.
- required Boolean
- Specifies whether parameter is required or not.
- values List<String>
- Parameter values.
ParameterContractResponse, ParameterContractResponseArgs
- Name string
- Parameter name.
- Type string
- Parameter type.
- Default
Value string - Default parameter value.
- Description string
- Parameter description.
- Required bool
- Specifies whether parameter is required or not.
- Values List<string>
- Parameter values.
- Name string
- Parameter name.
- Type string
- Parameter type.
- Default
Value string - Default parameter value.
- Description string
- Parameter description.
- Required bool
- Specifies whether parameter is required or not.
- Values []string
- Parameter values.
- name String
- Parameter name.
- type String
- Parameter type.
- default
Value String - Default parameter value.
- description String
- Parameter description.
- required Boolean
- Specifies whether parameter is required or not.
- values List<String>
- Parameter values.
- name string
- Parameter name.
- type string
- Parameter type.
- default
Value string - Default parameter value.
- description string
- Parameter description.
- required boolean
- Specifies whether parameter is required or not.
- values string[]
- Parameter values.
- name str
- Parameter name.
- type str
- Parameter type.
- default_
value str - Default parameter value.
- description str
- Parameter description.
- required bool
- Specifies whether parameter is required or not.
- values Sequence[str]
- Parameter values.
- name String
- Parameter name.
- type String
- Parameter type.
- default
Value String - Default parameter value.
- description String
- Parameter description.
- required Boolean
- Specifies whether parameter is required or not.
- values List<String>
- Parameter values.
RepresentationContract, RepresentationContractArgs
- Content
Type string - Specifies a registered or custom content type for this representation, e.g. application/xml.
- Form
Parameters List<Pulumi.Azure Native. Api Management. Inputs. Parameter Contract> - Collection of form parameters. Required if 'contentType' value is either 'application/x-www-form-urlencoded' or 'multipart/form-data'..
- Sample string
- An example of the representation.
- Schema
Id string - Schema identifier. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'.
- Type
Name string - Type name defined by the schema. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'.
- Content
Type string - Specifies a registered or custom content type for this representation, e.g. application/xml.
- Form
Parameters []ParameterContract - Collection of form parameters. Required if 'contentType' value is either 'application/x-www-form-urlencoded' or 'multipart/form-data'..
- Sample string
- An example of the representation.
- Schema
Id string - Schema identifier. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'.
- Type
Name string - Type name defined by the schema. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'.
- content
Type String - Specifies a registered or custom content type for this representation, e.g. application/xml.
- form
Parameters List<ParameterContract> - Collection of form parameters. Required if 'contentType' value is either 'application/x-www-form-urlencoded' or 'multipart/form-data'..
- sample String
- An example of the representation.
- schema
Id String - Schema identifier. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'.
- type
Name String - Type name defined by the schema. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'.
- content
Type string - Specifies a registered or custom content type for this representation, e.g. application/xml.
- form
Parameters ParameterContract[] - Collection of form parameters. Required if 'contentType' value is either 'application/x-www-form-urlencoded' or 'multipart/form-data'..
- sample string
- An example of the representation.
- schema
Id string - Schema identifier. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'.
- type
Name string - Type name defined by the schema. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'.
- content_
type str - Specifies a registered or custom content type for this representation, e.g. application/xml.
- form_
parameters Sequence[ParameterContract] - Collection of form parameters. Required if 'contentType' value is either 'application/x-www-form-urlencoded' or 'multipart/form-data'..
- sample str
- An example of the representation.
- schema_
id str - Schema identifier. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'.
- type_
name str - Type name defined by the schema. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'.
- content
Type String - Specifies a registered or custom content type for this representation, e.g. application/xml.
- form
Parameters List<Property Map> - Collection of form parameters. Required if 'contentType' value is either 'application/x-www-form-urlencoded' or 'multipart/form-data'..
- sample String
- An example of the representation.
- schema
Id String - Schema identifier. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'.
- type
Name String - Type name defined by the schema. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'.
RepresentationContractResponse, RepresentationContractResponseArgs
- Content
Type string - Specifies a registered or custom content type for this representation, e.g. application/xml.
- Form
Parameters List<Pulumi.Azure Native. Api Management. Inputs. Parameter Contract Response> - Collection of form parameters. Required if 'contentType' value is either 'application/x-www-form-urlencoded' or 'multipart/form-data'..
- Sample string
- An example of the representation.
- Schema
Id string - Schema identifier. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'.
- Type
Name string - Type name defined by the schema. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'.
- Content
Type string - Specifies a registered or custom content type for this representation, e.g. application/xml.
- Form
Parameters []ParameterContract Response - Collection of form parameters. Required if 'contentType' value is either 'application/x-www-form-urlencoded' or 'multipart/form-data'..
- Sample string
- An example of the representation.
- Schema
Id string - Schema identifier. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'.
- Type
Name string - Type name defined by the schema. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'.
- content
Type String - Specifies a registered or custom content type for this representation, e.g. application/xml.
- form
Parameters List<ParameterContract Response> - Collection of form parameters. Required if 'contentType' value is either 'application/x-www-form-urlencoded' or 'multipart/form-data'..
- sample String
- An example of the representation.
- schema
Id String - Schema identifier. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'.
- type
Name String - Type name defined by the schema. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'.
- content
Type string - Specifies a registered or custom content type for this representation, e.g. application/xml.
- form
Parameters ParameterContract Response[] - Collection of form parameters. Required if 'contentType' value is either 'application/x-www-form-urlencoded' or 'multipart/form-data'..
- sample string
- An example of the representation.
- schema
Id string - Schema identifier. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'.
- type
Name string - Type name defined by the schema. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'.
- content_
type str - Specifies a registered or custom content type for this representation, e.g. application/xml.
- form_
parameters Sequence[ParameterContract Response] - Collection of form parameters. Required if 'contentType' value is either 'application/x-www-form-urlencoded' or 'multipart/form-data'..
- sample str
- An example of the representation.
- schema_
id str - Schema identifier. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'.
- type_
name str - Type name defined by the schema. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'.
- content
Type String - Specifies a registered or custom content type for this representation, e.g. application/xml.
- form
Parameters List<Property Map> - Collection of form parameters. Required if 'contentType' value is either 'application/x-www-form-urlencoded' or 'multipart/form-data'..
- sample String
- An example of the representation.
- schema
Id String - Schema identifier. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'.
- type
Name String - Type name defined by the schema. Applicable only if 'contentType' value is neither 'application/x-www-form-urlencoded' nor 'multipart/form-data'.
RequestContract, RequestContractArgs
- Description string
- Operation request description.
- Headers
List<Pulumi.
Azure Native. Api Management. Inputs. Parameter Contract> - Collection of operation request headers.
- Query
Parameters List<Pulumi.Azure Native. Api Management. Inputs. Parameter Contract> - Collection of operation request query parameters.
- Representations
List<Pulumi.
Azure Native. Api Management. Inputs. Representation Contract> - Collection of operation request representations.
- Description string
- Operation request description.
- Headers
[]Parameter
Contract - Collection of operation request headers.
- Query
Parameters []ParameterContract - Collection of operation request query parameters.
- Representations
[]Representation
Contract - Collection of operation request representations.
- description String
- Operation request description.
- headers
List<Parameter
Contract> - Collection of operation request headers.
- query
Parameters List<ParameterContract> - Collection of operation request query parameters.
- representations
List<Representation
Contract> - Collection of operation request representations.
- description string
- Operation request description.
- headers
Parameter
Contract[] - Collection of operation request headers.
- query
Parameters ParameterContract[] - Collection of operation request query parameters.
- representations
Representation
Contract[] - Collection of operation request representations.
- description str
- Operation request description.
- headers
Sequence[Parameter
Contract] - Collection of operation request headers.
- query_
parameters Sequence[ParameterContract] - Collection of operation request query parameters.
- representations
Sequence[Representation
Contract] - Collection of operation request representations.
- description String
- Operation request description.
- headers List<Property Map>
- Collection of operation request headers.
- query
Parameters List<Property Map> - Collection of operation request query parameters.
- representations List<Property Map>
- Collection of operation request representations.
RequestContractResponse, RequestContractResponseArgs
- Description string
- Operation request description.
- Headers
List<Pulumi.
Azure Native. Api Management. Inputs. Parameter Contract Response> - Collection of operation request headers.
- Query
Parameters List<Pulumi.Azure Native. Api Management. Inputs. Parameter Contract Response> - Collection of operation request query parameters.
- Representations
List<Pulumi.
Azure Native. Api Management. Inputs. Representation Contract Response> - Collection of operation request representations.
- Description string
- Operation request description.
- Headers
[]Parameter
Contract Response - Collection of operation request headers.
- Query
Parameters []ParameterContract Response - Collection of operation request query parameters.
- Representations
[]Representation
Contract Response - Collection of operation request representations.
- description String
- Operation request description.
- headers
List<Parameter
Contract Response> - Collection of operation request headers.
- query
Parameters List<ParameterContract Response> - Collection of operation request query parameters.
- representations
List<Representation
Contract Response> - Collection of operation request representations.
- description string
- Operation request description.
- headers
Parameter
Contract Response[] - Collection of operation request headers.
- query
Parameters ParameterContract Response[] - Collection of operation request query parameters.
- representations
Representation
Contract Response[] - Collection of operation request representations.
- description str
- Operation request description.
- headers
Sequence[Parameter
Contract Response] - Collection of operation request headers.
- query_
parameters Sequence[ParameterContract Response] - Collection of operation request query parameters.
- representations
Sequence[Representation
Contract Response] - Collection of operation request representations.
- description String
- Operation request description.
- headers List<Property Map>
- Collection of operation request headers.
- query
Parameters List<Property Map> - Collection of operation request query parameters.
- representations List<Property Map>
- Collection of operation request representations.
ResponseContract, ResponseContractArgs
- Status
Code int - Operation response HTTP status code.
- Description string
- Operation response description.
- Headers
List<Pulumi.
Azure Native. Api Management. Inputs. Parameter Contract> - Collection of operation response headers.
- Representations
List<Pulumi.
Azure Native. Api Management. Inputs. Representation Contract> - Collection of operation response representations.
- Status
Code int - Operation response HTTP status code.
- Description string
- Operation response description.
- Headers
[]Parameter
Contract - Collection of operation response headers.
- Representations
[]Representation
Contract - Collection of operation response representations.
- status
Code Integer - Operation response HTTP status code.
- description String
- Operation response description.
- headers
List<Parameter
Contract> - Collection of operation response headers.
- representations
List<Representation
Contract> - Collection of operation response representations.
- status
Code number - Operation response HTTP status code.
- description string
- Operation response description.
- headers
Parameter
Contract[] - Collection of operation response headers.
- representations
Representation
Contract[] - Collection of operation response representations.
- status_
code int - Operation response HTTP status code.
- description str
- Operation response description.
- headers
Sequence[Parameter
Contract] - Collection of operation response headers.
- representations
Sequence[Representation
Contract] - Collection of operation response representations.
- status
Code Number - Operation response HTTP status code.
- description String
- Operation response description.
- headers List<Property Map>
- Collection of operation response headers.
- representations List<Property Map>
- Collection of operation response representations.
ResponseContractResponse, ResponseContractResponseArgs
- Status
Code int - Operation response HTTP status code.
- Description string
- Operation response description.
- Headers
List<Pulumi.
Azure Native. Api Management. Inputs. Parameter Contract Response> - Collection of operation response headers.
- Representations
List<Pulumi.
Azure Native. Api Management. Inputs. Representation Contract Response> - Collection of operation response representations.
- Status
Code int - Operation response HTTP status code.
- Description string
- Operation response description.
- Headers
[]Parameter
Contract Response - Collection of operation response headers.
- Representations
[]Representation
Contract Response - Collection of operation response representations.
- status
Code Integer - Operation response HTTP status code.
- description String
- Operation response description.
- headers
List<Parameter
Contract Response> - Collection of operation response headers.
- representations
List<Representation
Contract Response> - Collection of operation response representations.
- status
Code number - Operation response HTTP status code.
- description string
- Operation response description.
- headers
Parameter
Contract Response[] - Collection of operation response headers.
- representations
Representation
Contract Response[] - Collection of operation response representations.
- status_
code int - Operation response HTTP status code.
- description str
- Operation response description.
- headers
Sequence[Parameter
Contract Response] - Collection of operation response headers.
- representations
Sequence[Representation
Contract Response] - Collection of operation response representations.
- status
Code Number - Operation response HTTP status code.
- description String
- Operation response description.
- headers List<Property Map>
- Collection of operation response headers.
- representations List<Property Map>
- Collection of operation response representations.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:apimanagement:ApiOperation newoperations /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/PetStoreTemplate2/operations/newoperations
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