Azure Native

v1.78.0 published on Wednesday, Sep 14, 2022 by Pulumi

ApiIssue

Issue Contract details. API Version: 2020-12-01.

Example Usage

ApiManagementCreateApiIssue

using System.Collections.Generic;
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 = "open",
        Title = "New API issue",
        UserId = "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/users/1",
    });

});
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.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("open"),
			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
	})
}
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());

    }
}
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="open",
    title="New API issue",
    user_id="/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/users/1")
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: "open",
    title: "New API issue",
    userId: "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/users/1",
});
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

Create a ApiIssue Resource

new ApiIssue(name: string, args: ApiIssueArgs, opts?: CustomResourceOptions);
@overload
def ApiIssue(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             api_id: Optional[str] = None,
             created_date: Optional[str] = None,
             description: Optional[str] = None,
             issue_id: Optional[str] = None,
             resource_group_name: Optional[str] = None,
             service_name: Optional[str] = None,
             state: Optional[Union[str, State]] = None,
             title: Optional[str] = None,
             user_id: Optional[str] = None)
@overload
def ApiIssue(resource_name: str,
             args: ApiIssueArgs,
             opts: Optional[ResourceOptions] = 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.

name string
The unique name of the resource.
args ApiIssueArgs
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 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 string
The unique name of the resource.
args ApiIssueArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args ApiIssueArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args ApiIssueArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

The ApiIssue resource accepts the following input properties:

ApiId string

A resource identifier for the API the issue was created for.

Description string

Text describing the issue.

ResourceGroupName string

The name of the resource group.

ServiceName string

The name of the API Management service.

Title string

The issue title.

UserId string

A resource identifier for the user created the issue.

CreatedDate string

Date and time when the issue was created.

IssueId string

Issue identifier. Must be unique in the current API Management service instance.

State string | Pulumi.AzureNative.ApiManagement.State

Status of the issue.

ApiId string

A resource identifier for the API the issue was created for.

Description string

Text describing the issue.

ResourceGroupName string

The name of the resource group.

ServiceName string

The name of the API Management service.

Title string

The issue title.

UserId string

A resource identifier for the user created the issue.

CreatedDate string

Date and time when the issue was created.

IssueId string

Issue identifier. Must be unique in the current API Management service instance.

State string | State

Status of the issue.

apiId String

A resource identifier for the API the issue was created for.

description String

Text describing the issue.

resourceGroupName String

The name of the resource group.

serviceName String

The name of the API Management service.

title String

The issue title.

userId String

A resource identifier for the user created the issue.

createdDate String

Date and time when the issue was created.

issueId String

Issue identifier. Must be unique in the current API Management service instance.

state String | State

Status of the issue.

apiId string

A resource identifier for the API the issue was created for.

description string

Text describing the issue.

resourceGroupName string

The name of the resource group.

serviceName string

The name of the API Management service.

title string

The issue title.

userId string

A resource identifier for the user created the issue.

createdDate string

Date and time when the issue was created.

issueId string

Issue identifier. Must be unique in the current API Management service instance.

state string | State

Status of the issue.

api_id str

A resource identifier for the API the issue was created for.

description str

Text describing the issue.

resource_group_name str

The name of the resource group.

service_name str

The name of the API Management service.

title str

The issue title.

user_id str

A resource identifier for the user created the issue.

created_date str

Date and time when the issue was created.

issue_id str

Issue identifier. Must be unique in the current API Management service instance.

state str | State

Status of the issue.

apiId String

A resource identifier for the API the issue was created for.

description String

Text describing the issue.

resourceGroupName String

The name of the resource group.

serviceName String

The name of the API Management service.

title String

The issue title.

userId String

A resource identifier for the user created the issue.

createdDate String

Date and time when the issue was created.

issueId 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

Resource name.

Type string

Resource type for API Management resource.

Id string

The provider-assigned unique ID for this managed resource.

Name string

Resource name.

Type string

Resource type for API Management resource.

id String

The provider-assigned unique ID for this managed resource.

name String

Resource name.

type String

Resource type for API Management resource.

id string

The provider-assigned unique ID for this managed resource.

name string

Resource name.

type string

Resource type for API Management resource.

id str

The provider-assigned unique ID for this managed resource.

name str

Resource name.

type str

Resource type for API Management resource.

id String

The provider-assigned unique ID for this managed resource.

name String

Resource name.

type String

Resource type for API Management resource.

Supporting Types

State

Proposed
proposed

The issue is proposed.

Open
open

The issue is opened.

Removed
removed

The issue was removed.

Resolved
resolved

The issue is now resolved.

Closed
closed

The issue was closed.

StateProposed
proposed

The issue is proposed.

StateOpen
open

The issue is opened.

StateRemoved
removed

The issue was removed.

StateResolved
resolved

The issue is now resolved.

StateClosed
closed

The issue was closed.

Proposed
proposed

The issue is proposed.

Open
open

The issue is opened.

Removed
removed

The issue was removed.

Resolved
resolved

The issue is now resolved.

Closed
closed

The issue was closed.

Proposed
proposed

The issue is proposed.

Open
open

The issue is opened.

Removed
removed

The issue was removed.

Resolved
resolved

The issue is now resolved.

Closed
closed

The issue was closed.

PROPOSED
proposed

The issue is proposed.

OPEN
open

The issue is opened.

REMOVED
removed

The issue was removed.

RESOLVED
resolved

The issue is now resolved.

CLOSED
closed

The issue was closed.

"proposed"
proposed

The issue is proposed.

"open"
open

The issue is opened.

"removed"
removed

The issue was removed.

"resolved"
resolved

The issue is now resolved.

"closed"
closed

The 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/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/57d1f7558aa04f15146d9d8a/issues/57d2ef278aa04f0ad01d6cdc 

Package Details

Repository
https://github.com/pulumi/pulumi-azure-native
License
Apache-2.0