1. Packages
  2. Datadog Provider
  3. API Docs
  4. OpenapiApi
Datadog v4.49.0 published on Thursday, Apr 17, 2025 by Pulumi

datadog.OpenapiApi

Explore with Pulumi AI

Deprecated: use the datadog.SoftwareCatalog resource instead. Provides a Datadog OpenAPI resource. This can be used to synchronize Datadog’s API catalog with an OpenAPI specifications file.

Create OpenapiApi Resource

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

Constructor syntax

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

@overload
def OpenapiApi(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               spec: Optional[str] = None)
func NewOpenapiApi(ctx *Context, name string, args OpenapiApiArgs, opts ...ResourceOption) (*OpenapiApi, error)
public OpenapiApi(string name, OpenapiApiArgs args, CustomResourceOptions? opts = null)
public OpenapiApi(String name, OpenapiApiArgs args)
public OpenapiApi(String name, OpenapiApiArgs args, CustomResourceOptions options)
type: datadog:OpenapiApi
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. OpenapiApiArgs
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. OpenapiApiArgs
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. OpenapiApiArgs
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. OpenapiApiArgs
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. OpenapiApiArgs
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 openapiApiResource = new Datadog.OpenapiApi("openapiApiResource", new()
{
    Spec = "string",
});
Copy
example, err := datadog.NewOpenapiApi(ctx, "openapiApiResource", &datadog.OpenapiApiArgs{
	Spec: pulumi.String("string"),
})
Copy
var openapiApiResource = new OpenapiApi("openapiApiResource", OpenapiApiArgs.builder()
    .spec("string")
    .build());
Copy
openapi_api_resource = datadog.OpenapiApi("openapiApiResource", spec="string")
Copy
const openapiApiResource = new datadog.OpenapiApi("openapiApiResource", {spec: "string"});
Copy
type: datadog:OpenapiApi
properties:
    spec: string
Copy

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

Spec This property is required. string
The textual content of the OpenAPI specification. Use file() in order to reference another file in the repository (see exmaple).
Spec This property is required. string
The textual content of the OpenAPI specification. Use file() in order to reference another file in the repository (see exmaple).
spec This property is required. String
The textual content of the OpenAPI specification. Use file() in order to reference another file in the repository (see exmaple).
spec This property is required. string
The textual content of the OpenAPI specification. Use file() in order to reference another file in the repository (see exmaple).
spec This property is required. str
The textual content of the OpenAPI specification. Use file() in order to reference another file in the repository (see exmaple).
spec This property is required. String
The textual content of the OpenAPI specification. Use file() in order to reference another file in the repository (see exmaple).

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing OpenapiApi Resource

Get an existing OpenapiApi resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: OpenapiApiState, opts?: CustomResourceOptions): OpenapiApi
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        spec: Optional[str] = None) -> OpenapiApi
func GetOpenapiApi(ctx *Context, name string, id IDInput, state *OpenapiApiState, opts ...ResourceOption) (*OpenapiApi, error)
public static OpenapiApi Get(string name, Input<string> id, OpenapiApiState? state, CustomResourceOptions? opts = null)
public static OpenapiApi get(String name, Output<String> id, OpenapiApiState state, CustomResourceOptions options)
resources:  _:    type: datadog:OpenapiApi    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Spec string
The textual content of the OpenAPI specification. Use file() in order to reference another file in the repository (see exmaple).
Spec string
The textual content of the OpenAPI specification. Use file() in order to reference another file in the repository (see exmaple).
spec String
The textual content of the OpenAPI specification. Use file() in order to reference another file in the repository (see exmaple).
spec string
The textual content of the OpenAPI specification. Use file() in order to reference another file in the repository (see exmaple).
spec str
The textual content of the OpenAPI specification. Use file() in order to reference another file in the repository (see exmaple).
spec String
The textual content of the OpenAPI specification. Use file() in order to reference another file in the repository (see exmaple).

Import

$ pulumi import datadog:index/openapiApi:OpenapiApi new_list "90646597-5fdb-4a17-a240-647003f8c028"
Copy

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

Package Details

Repository
Datadog pulumi/pulumi-datadog
License
Apache-2.0
Notes
This Pulumi package is based on the datadog Terraform Provider.