1. Packages
  2. Azure Native
  3. API Docs
  4. apimanagement
  5. ApiIssue
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

azure-native.apimanagement.ApiIssue

Explore with Pulumi AI

This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

Issue Contract details.

Uses Azure REST API version 2022-08-01. In version 1.x of the Azure Native provider, it used API version 2020-12-01.

Other available API versions: 2022-09-01-preview, 2023-03-01-preview, 2023-05-01-preview, 2023-09-01-preview, 2024-05-01, 2024-06-01-preview.

Example Usage

ApiManagementCreateApiIssue

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var apiIssue = new AzureNative.ApiManagement.ApiIssue("apiIssue", new()
    {
        ApiId = "57d1f7558aa04f15146d9d8a",
        CreatedDate = "2018-02-01T22:21:20.467Z",
        Description = "New API issue description",
        IssueId = "57d2ef278aa04f0ad01d6cdc",
        ResourceGroupName = "rg1",
        ServiceName = "apimService1",
        State = AzureNative.ApiManagement.State.Open,
        Title = "New API issue",
        UserId = "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/users/1",
    });

});
Copy
package main

import (
	apimanagement "github.com/pulumi/pulumi-azure-native-sdk/apimanagement/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := apimanagement.NewApiIssue(ctx, "apiIssue", &apimanagement.ApiIssueArgs{
			ApiId:             pulumi.String("57d1f7558aa04f15146d9d8a"),
			CreatedDate:       pulumi.String("2018-02-01T22:21:20.467Z"),
			Description:       pulumi.String("New API issue description"),
			IssueId:           pulumi.String("57d2ef278aa04f0ad01d6cdc"),
			ResourceGroupName: pulumi.String("rg1"),
			ServiceName:       pulumi.String("apimService1"),
			State:             pulumi.String(apimanagement.StateOpen),
			Title:             pulumi.String("New API issue"),
			UserId:            pulumi.String("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/users/1"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.apimanagement.ApiIssue;
import com.pulumi.azurenative.apimanagement.ApiIssueArgs;
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 apiIssue = new ApiIssue("apiIssue", ApiIssueArgs.builder()
            .apiId("57d1f7558aa04f15146d9d8a")
            .createdDate("2018-02-01T22:21:20.467Z")
            .description("New API issue description")
            .issueId("57d2ef278aa04f0ad01d6cdc")
            .resourceGroupName("rg1")
            .serviceName("apimService1")
            .state("open")
            .title("New API issue")
            .userId("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/users/1")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const apiIssue = new azure_native.apimanagement.ApiIssue("apiIssue", {
    apiId: "57d1f7558aa04f15146d9d8a",
    createdDate: "2018-02-01T22:21:20.467Z",
    description: "New API issue description",
    issueId: "57d2ef278aa04f0ad01d6cdc",
    resourceGroupName: "rg1",
    serviceName: "apimService1",
    state: azure_native.apimanagement.State.Open,
    title: "New API issue",
    userId: "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/users/1",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

api_issue = azure_native.apimanagement.ApiIssue("apiIssue",
    api_id="57d1f7558aa04f15146d9d8a",
    created_date="2018-02-01T22:21:20.467Z",
    description="New API issue description",
    issue_id="57d2ef278aa04f0ad01d6cdc",
    resource_group_name="rg1",
    service_name="apimService1",
    state=azure_native.apimanagement.State.OPEN,
    title="New API issue",
    user_id="/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/users/1")
Copy
resources:
  apiIssue:
    type: azure-native:apimanagement:ApiIssue
    properties:
      apiId: 57d1f7558aa04f15146d9d8a
      createdDate: 2018-02-01T22:21:20.467Z
      description: New API issue description
      issueId: 57d2ef278aa04f0ad01d6cdc
      resourceGroupName: rg1
      serviceName: apimService1
      state: open
      title: New API issue
      userId: /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/users/1
Copy

Create ApiIssue Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new ApiIssue(name: string, args: ApiIssueArgs, opts?: CustomResourceOptions);
@overload
def ApiIssue(resource_name: str,
             args: ApiIssueArgs,
             opts: Optional[ResourceOptions] = None)

@overload
def ApiIssue(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             api_id: Optional[str] = None,
             description: Optional[str] = None,
             resource_group_name: Optional[str] = None,
             service_name: Optional[str] = None,
             title: Optional[str] = None,
             user_id: Optional[str] = None,
             created_date: Optional[str] = None,
             issue_id: Optional[str] = None,
             state: Optional[Union[str, State]] = None)
func NewApiIssue(ctx *Context, name string, args ApiIssueArgs, opts ...ResourceOption) (*ApiIssue, error)
public ApiIssue(string name, ApiIssueArgs args, CustomResourceOptions? opts = null)
public ApiIssue(String name, ApiIssueArgs args)
public ApiIssue(String name, ApiIssueArgs args, CustomResourceOptions options)
type: azure-native:apimanagement:ApiIssue
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. ApiIssueArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. ApiIssueArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. ApiIssueArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ApiIssueArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. ApiIssueArgs
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 apiIssueResource = new AzureNative.ApiManagement.ApiIssue("apiIssueResource", new()
{
    ApiId = "string",
    Description = "string",
    ResourceGroupName = "string",
    ServiceName = "string",
    Title = "string",
    UserId = "string",
    CreatedDate = "string",
    IssueId = "string",
    State = "string",
});
Copy
example, err := apimanagement.NewApiIssue(ctx, "apiIssueResource", &apimanagement.ApiIssueArgs{
	ApiId:             pulumi.String("string"),
	Description:       pulumi.String("string"),
	ResourceGroupName: pulumi.String("string"),
	ServiceName:       pulumi.String("string"),
	Title:             pulumi.String("string"),
	UserId:            pulumi.String("string"),
	CreatedDate:       pulumi.String("string"),
	IssueId:           pulumi.String("string"),
	State:             pulumi.String("string"),
})
Copy
var apiIssueResource = new ApiIssue("apiIssueResource", ApiIssueArgs.builder()
    .apiId("string")
    .description("string")
    .resourceGroupName("string")
    .serviceName("string")
    .title("string")
    .userId("string")
    .createdDate("string")
    .issueId("string")
    .state("string")
    .build());
Copy
api_issue_resource = azure_native.apimanagement.ApiIssue("apiIssueResource",
    api_id="string",
    description="string",
    resource_group_name="string",
    service_name="string",
    title="string",
    user_id="string",
    created_date="string",
    issue_id="string",
    state="string")
Copy
const apiIssueResource = new azure_native.apimanagement.ApiIssue("apiIssueResource", {
    apiId: "string",
    description: "string",
    resourceGroupName: "string",
    serviceName: "string",
    title: "string",
    userId: "string",
    createdDate: "string",
    issueId: "string",
    state: "string",
});
Copy
type: azure-native:apimanagement:ApiIssue
properties:
    apiId: string
    createdDate: string
    description: string
    issueId: string
    resourceGroupName: string
    serviceName: string
    state: string
    title: string
    userId: string
Copy

ApiIssue 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 ApiIssue resource accepts the following input properties:

ApiId This property is required. string
A resource identifier for the API the issue was created for.
Description This property is required. string
Text describing the issue.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
ServiceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the API Management service.
Title This property is required. string
The issue title.
UserId This property is required. string
A resource identifier for the user created the issue.
CreatedDate string
Date and time when the issue was created.
IssueId Changes to this property will trigger replacement. string
Issue identifier. Must be unique in the current API Management service instance.
State string | Pulumi.AzureNative.ApiManagement.State
Status of the issue.
ApiId This property is required. string
A resource identifier for the API the issue was created for.
Description This property is required. string
Text describing the issue.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
ServiceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the API Management service.
Title This property is required. string
The issue title.
UserId This property is required. string
A resource identifier for the user created the issue.
CreatedDate string
Date and time when the issue was created.
IssueId Changes to this property will trigger replacement. string
Issue identifier. Must be unique in the current API Management service instance.
State string | State
Status of the issue.
apiId This property is required. String
A resource identifier for the API the issue was created for.
description This property is required. String
Text describing the issue.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
serviceName
This property is required.
Changes to this property will trigger replacement.
String
The name of the API Management service.
title This property is required. String
The issue title.
userId This property is required. String
A resource identifier for the user created the issue.
createdDate String
Date and time when the issue was created.
issueId Changes to this property will trigger replacement. String
Issue identifier. Must be unique in the current API Management service instance.
state String | State
Status of the issue.
apiId This property is required. string
A resource identifier for the API the issue was created for.
description This property is required. string
Text describing the issue.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
serviceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the API Management service.
title This property is required. string
The issue title.
userId This property is required. string
A resource identifier for the user created the issue.
createdDate string
Date and time when the issue was created.
issueId Changes to this property will trigger replacement. string
Issue identifier. Must be unique in the current API Management service instance.
state string | State
Status of the issue.
api_id This property is required. str
A resource identifier for the API the issue was created for.
description This property is required. str
Text describing the issue.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group. The name is case insensitive.
service_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the API Management service.
title This property is required. str
The issue title.
user_id This property is required. str
A resource identifier for the user created the issue.
created_date str
Date and time when the issue was created.
issue_id Changes to this property will trigger replacement. str
Issue identifier. Must be unique in the current API Management service instance.
state str | State
Status of the issue.
apiId This property is required. String
A resource identifier for the API the issue was created for.
description This property is required. String
Text describing the issue.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
serviceName
This property is required.
Changes to this property will trigger replacement.
String
The name of the API Management service.
title This property is required. String
The issue title.
userId This property is required. String
A resource identifier for the user created the issue.
createdDate String
Date and time when the issue was created.
issueId Changes to this property will trigger replacement. String
Issue identifier. Must be unique in the current API Management service instance.
state String | "proposed" | "open" | "removed" | "resolved" | "closed"
Status of the issue.

Outputs

All input properties are implicitly available as output properties. Additionally, the ApiIssue resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the resource
Type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the resource
Type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
id String
The provider-assigned unique ID for this managed resource.
name String
The name of the resource
type String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
id string
The provider-assigned unique ID for this managed resource.
name string
The name of the resource
type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
id str
The provider-assigned unique ID for this managed resource.
name str
The name of the resource
type str
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
id String
The provider-assigned unique ID for this managed resource.
name String
The name of the resource
type String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Supporting Types

State
, StateArgs

Proposed
proposedThe issue is proposed.
Open
openThe issue is opened.
Removed
removedThe issue was removed.
Resolved
resolvedThe issue is now resolved.
Closed
closedThe issue was closed.
StateProposed
proposedThe issue is proposed.
StateOpen
openThe issue is opened.
StateRemoved
removedThe issue was removed.
StateResolved
resolvedThe issue is now resolved.
StateClosed
closedThe issue was closed.
Proposed
proposedThe issue is proposed.
Open
openThe issue is opened.
Removed
removedThe issue was removed.
Resolved
resolvedThe issue is now resolved.
Closed
closedThe issue was closed.
Proposed
proposedThe issue is proposed.
Open
openThe issue is opened.
Removed
removedThe issue was removed.
Resolved
resolvedThe issue is now resolved.
Closed
closedThe issue was closed.
PROPOSED
proposedThe issue is proposed.
OPEN
openThe issue is opened.
REMOVED
removedThe issue was removed.
RESOLVED
resolvedThe issue is now resolved.
CLOSED
closedThe issue was closed.
"proposed"
proposedThe issue is proposed.
"open"
openThe issue is opened.
"removed"
removedThe issue was removed.
"resolved"
resolvedThe issue is now resolved.
"closed"
closedThe issue was closed.

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:apimanagement:ApiIssue 57d2ef278aa04f0ad01d6cdc /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/apis/{apiId}/issues/{issueId} 
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi