restapi.Object
Explore with Pulumi AI
Acting as a wrapper of cURL, this object supports POST, GET, PUT and DELETE on the specified url
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as restapi from "@pulumi/restapi";
const foo2 = new restapi.Object("foo2", {
    path: "/api/objects",
    data: "{ \"id\": \"55555\", \"first\": \"Foo\", \"last\": \"Bar\" }",
}, {
    provider: restapi.restapi_headers,
});
import pulumi
import pulumi_restapi as restapi
foo2 = restapi.Object("foo2",
    path="/api/objects",
    data="{ \"id\": \"55555\", \"first\": \"Foo\", \"last\": \"Bar\" }",
    opts = pulumi.ResourceOptions(provider=restapi["restapi_headers"]))
package main
import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/restapi/v2/restapi"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := restapi.NewObject(ctx, "foo2", &restapi.ObjectArgs{
			Path: pulumi.String("/api/objects"),
			Data: pulumi.String("{ \"id\": \"55555\", \"first\": \"Foo\", \"last\": \"Bar\" }"),
		}, pulumi.Provider(restapi.Restapi_headers))
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Restapi = Pulumi.Restapi;
return await Deployment.RunAsync(() => 
{
    var foo2 = new Restapi.Object("foo2", new()
    {
        Path = "/api/objects",
        Data = "{ \"id\": \"55555\", \"first\": \"Foo\", \"last\": \"Bar\" }",
    }, new CustomResourceOptions
    {
        Provider = restapi.Restapi_headers,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.restapi.Object;
import com.pulumi.restapi.ObjectArgs;
import com.pulumi.resources.CustomResourceOptions;
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 foo2 = new Object("foo2", ObjectArgs.builder()
            .path("/api/objects")
            .data("{ \"id\": \"55555\", \"first\": \"Foo\", \"last\": \"Bar\" }")
            .build(), CustomResourceOptions.builder()
                .provider(restapi.restapi_headers())
                .build());
    }
}
resources:
  foo2:
    type: restapi:Object
    properties:
      path: /api/objects
      data: '{ "id": "55555", "first": "Foo", "last": "Bar" }'
    options:
      provider: ${restapi.restapi_headers}
Create Object Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Object(name: string, args: ObjectArgs, opts?: CustomResourceOptions);@overload
def Object(resource_name: str,
           args: ObjectArgs,
           opts: Optional[ResourceOptions] = None)
@overload
def Object(resource_name: str,
           opts: Optional[ResourceOptions] = None,
           data: Optional[str] = None,
           path: Optional[str] = None,
           ignore_changes_tos: Optional[Sequence[str]] = None,
           object_id: Optional[str] = None,
           destroy_data: Optional[str] = None,
           destroy_method: Optional[str] = None,
           destroy_path: Optional[str] = None,
           force_news: Optional[Sequence[str]] = None,
           id_attribute: Optional[str] = None,
           ignore_all_server_changes: Optional[bool] = None,
           create_method: Optional[str] = None,
           debug: Optional[bool] = None,
           create_path: Optional[str] = None,
           query_string: Optional[str] = None,
           read_data: Optional[str] = None,
           read_method: Optional[str] = None,
           read_path: Optional[str] = None,
           read_search: Optional[Mapping[str, str]] = None,
           restapi_object_id: Optional[str] = None,
           update_data: Optional[str] = None,
           update_method: Optional[str] = None,
           update_path: Optional[str] = None)func NewObject(ctx *Context, name string, args ObjectArgs, opts ...ResourceOption) (*Object, error)public Object(string name, ObjectArgs args, CustomResourceOptions? opts = null)
public Object(String name, ObjectArgs args)
public Object(String name, ObjectArgs args, CustomResourceOptions options)
type: restapi:Object
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 ObjectArgs
- 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 ObjectArgs
- 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 ObjectArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ObjectArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ObjectArgs
- 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 objectResource = new Restapi.Object("objectResource", new()
{
    Data = "string",
    Path = "string",
    IgnoreChangesTos = new[]
    {
        "string",
    },
    ObjectId = "string",
    DestroyData = "string",
    DestroyMethod = "string",
    DestroyPath = "string",
    ForceNews = new[]
    {
        "string",
    },
    IdAttribute = "string",
    IgnoreAllServerChanges = false,
    CreateMethod = "string",
    Debug = false,
    CreatePath = "string",
    QueryString = "string",
    ReadData = "string",
    ReadMethod = "string",
    ReadPath = "string",
    ReadSearch = 
    {
        { "string", "string" },
    },
    RestapiObjectId = "string",
    UpdateData = "string",
    UpdateMethod = "string",
    UpdatePath = "string",
});
example, err := restapi.NewObject(ctx, "objectResource", &restapi.ObjectArgs{
	Data: pulumi.String("string"),
	Path: pulumi.String("string"),
	IgnoreChangesTos: pulumi.StringArray{
		pulumi.String("string"),
	},
	ObjectId:      pulumi.String("string"),
	DestroyData:   pulumi.String("string"),
	DestroyMethod: pulumi.String("string"),
	DestroyPath:   pulumi.String("string"),
	ForceNews: pulumi.StringArray{
		pulumi.String("string"),
	},
	IdAttribute:            pulumi.String("string"),
	IgnoreAllServerChanges: pulumi.Bool(false),
	CreateMethod:           pulumi.String("string"),
	Debug:                  pulumi.Bool(false),
	CreatePath:             pulumi.String("string"),
	QueryString:            pulumi.String("string"),
	ReadData:               pulumi.String("string"),
	ReadMethod:             pulumi.String("string"),
	ReadPath:               pulumi.String("string"),
	ReadSearch: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	RestapiObjectId: pulumi.String("string"),
	UpdateData:      pulumi.String("string"),
	UpdateMethod:    pulumi.String("string"),
	UpdatePath:      pulumi.String("string"),
})
var objectResource = new Object("objectResource", ObjectArgs.builder()
    .data("string")
    .path("string")
    .ignoreChangesTos("string")
    .objectId("string")
    .destroyData("string")
    .destroyMethod("string")
    .destroyPath("string")
    .forceNews("string")
    .idAttribute("string")
    .ignoreAllServerChanges(false)
    .createMethod("string")
    .debug(false)
    .createPath("string")
    .queryString("string")
    .readData("string")
    .readMethod("string")
    .readPath("string")
    .readSearch(Map.of("string", "string"))
    .restapiObjectId("string")
    .updateData("string")
    .updateMethod("string")
    .updatePath("string")
    .build());
object_resource = restapi.Object("objectResource",
    data="string",
    path="string",
    ignore_changes_tos=["string"],
    object_id="string",
    destroy_data="string",
    destroy_method="string",
    destroy_path="string",
    force_news=["string"],
    id_attribute="string",
    ignore_all_server_changes=False,
    create_method="string",
    debug=False,
    create_path="string",
    query_string="string",
    read_data="string",
    read_method="string",
    read_path="string",
    read_search={
        "string": "string",
    },
    restapi_object_id="string",
    update_data="string",
    update_method="string",
    update_path="string")
const objectResource = new restapi.Object("objectResource", {
    data: "string",
    path: "string",
    ignoreChangesTos: ["string"],
    objectId: "string",
    destroyData: "string",
    destroyMethod: "string",
    destroyPath: "string",
    forceNews: ["string"],
    idAttribute: "string",
    ignoreAllServerChanges: false,
    createMethod: "string",
    debug: false,
    createPath: "string",
    queryString: "string",
    readData: "string",
    readMethod: "string",
    readPath: "string",
    readSearch: {
        string: "string",
    },
    restapiObjectId: "string",
    updateData: "string",
    updateMethod: "string",
    updatePath: "string",
});
type: restapi:Object
properties:
    createMethod: string
    createPath: string
    data: string
    debug: false
    destroyData: string
    destroyMethod: string
    destroyPath: string
    forceNews:
        - string
    idAttribute: string
    ignoreAllServerChanges: false
    ignoreChangesTos:
        - string
    objectId: string
    path: string
    queryString: string
    readData: string
    readMethod: string
    readPath: string
    readSearch:
        string: string
    restapiObjectId: string
    updateData: string
    updateMethod: string
    updatePath: string
Object 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 Object resource accepts the following input properties:
- Data string
- Valid JSON object that this provider will manage with the API server.
- Path string
- The API path on top of the base URL set in the provider that represents objects of this type on the API server.
- CreateMethod string
- Defaults to create_methodset on the provider. Allows per-resource override ofcreate_method(seecreate_methodprovider config documentation)
- CreatePath string
- Debug bool
- Whether to emit verbose debug output while working with the API object on the server.
- DestroyData string
- Valid JSON object to pass during to destroy requests.
- DestroyMethod string
- Defaults to destroy_methodset on the provider. Allows per-resource override ofdestroy_method(seedestroy_methodprovider config documentation)
- DestroyPath string
- ForceNews List<string>
- Any changes to these values will result in recreating the resource instead of updating.
- IdAttribute string
- Defaults to id_attributeset on the provider. Allows per-resource override ofid_attribute(seeid_attributeprovider config documentation)
- IgnoreAll boolServer Changes 
- IgnoreChanges List<string>Tos 
- ObjectId string
- Defaults to the id learned by the provider during normal operations and id_attribute. Allows you to set the id manually. This is used in conjunction with the*_pathattributes.
- QueryString string
- Query string to be included in the path
- ReadData string
- Valid JSON object to pass during read requests.
- ReadMethod string
- Defaults to read_methodset on the provider. Allows per-resource override ofread_method(seeread_methodprovider config documentation)
- ReadPath string
- ReadSearch Dictionary<string, string>
- Custom search for read_path. This map will takesearch_data,search_key,search_value,results_keyandquery_string(see datasource config documentation)
- RestapiObject stringId 
- The ID of this resource.
- UpdateData string
- Valid JSON object to pass during to update requests.
- UpdateMethod string
- Defaults to update_methodset on the provider. Allows per-resource override ofupdate_method(seeupdate_methodprovider config documentation)
- UpdatePath string
- Data string
- Valid JSON object that this provider will manage with the API server.
- Path string
- The API path on top of the base URL set in the provider that represents objects of this type on the API server.
- CreateMethod string
- Defaults to create_methodset on the provider. Allows per-resource override ofcreate_method(seecreate_methodprovider config documentation)
- CreatePath string
- Debug bool
- Whether to emit verbose debug output while working with the API object on the server.
- DestroyData string
- Valid JSON object to pass during to destroy requests.
- DestroyMethod string
- Defaults to destroy_methodset on the provider. Allows per-resource override ofdestroy_method(seedestroy_methodprovider config documentation)
- DestroyPath string
- ForceNews []string
- Any changes to these values will result in recreating the resource instead of updating.
- IdAttribute string
- Defaults to id_attributeset on the provider. Allows per-resource override ofid_attribute(seeid_attributeprovider config documentation)
- IgnoreAll boolServer Changes 
- IgnoreChanges []stringTos 
- ObjectId string
- Defaults to the id learned by the provider during normal operations and id_attribute. Allows you to set the id manually. This is used in conjunction with the*_pathattributes.
- QueryString string
- Query string to be included in the path
- ReadData string
- Valid JSON object to pass during read requests.
- ReadMethod string
- Defaults to read_methodset on the provider. Allows per-resource override ofread_method(seeread_methodprovider config documentation)
- ReadPath string
- ReadSearch map[string]string
- Custom search for read_path. This map will takesearch_data,search_key,search_value,results_keyandquery_string(see datasource config documentation)
- RestapiObject stringId 
- The ID of this resource.
- UpdateData string
- Valid JSON object to pass during to update requests.
- UpdateMethod string
- Defaults to update_methodset on the provider. Allows per-resource override ofupdate_method(seeupdate_methodprovider config documentation)
- UpdatePath string
- data String
- Valid JSON object that this provider will manage with the API server.
- path String
- The API path on top of the base URL set in the provider that represents objects of this type on the API server.
- createMethod String
- Defaults to create_methodset on the provider. Allows per-resource override ofcreate_method(seecreate_methodprovider config documentation)
- createPath String
- debug Boolean
- Whether to emit verbose debug output while working with the API object on the server.
- destroyData String
- Valid JSON object to pass during to destroy requests.
- destroyMethod String
- Defaults to destroy_methodset on the provider. Allows per-resource override ofdestroy_method(seedestroy_methodprovider config documentation)
- destroyPath String
- forceNews List<String>
- Any changes to these values will result in recreating the resource instead of updating.
- idAttribute String
- Defaults to id_attributeset on the provider. Allows per-resource override ofid_attribute(seeid_attributeprovider config documentation)
- ignoreAll BooleanServer Changes 
- ignoreChanges List<String>Tos 
- objectId String
- Defaults to the id learned by the provider during normal operations and id_attribute. Allows you to set the id manually. This is used in conjunction with the*_pathattributes.
- queryString String
- Query string to be included in the path
- readData String
- Valid JSON object to pass during read requests.
- readMethod String
- Defaults to read_methodset on the provider. Allows per-resource override ofread_method(seeread_methodprovider config documentation)
- readPath String
- readSearch Map<String,String>
- Custom search for read_path. This map will takesearch_data,search_key,search_value,results_keyandquery_string(see datasource config documentation)
- restapiObject StringId 
- The ID of this resource.
- updateData String
- Valid JSON object to pass during to update requests.
- updateMethod String
- Defaults to update_methodset on the provider. Allows per-resource override ofupdate_method(seeupdate_methodprovider config documentation)
- updatePath String
- data string
- Valid JSON object that this provider will manage with the API server.
- path string
- The API path on top of the base URL set in the provider that represents objects of this type on the API server.
- createMethod string
- Defaults to create_methodset on the provider. Allows per-resource override ofcreate_method(seecreate_methodprovider config documentation)
- createPath string
- debug boolean
- Whether to emit verbose debug output while working with the API object on the server.
- destroyData string
- Valid JSON object to pass during to destroy requests.
- destroyMethod string
- Defaults to destroy_methodset on the provider. Allows per-resource override ofdestroy_method(seedestroy_methodprovider config documentation)
- destroyPath string
- forceNews string[]
- Any changes to these values will result in recreating the resource instead of updating.
- idAttribute string
- Defaults to id_attributeset on the provider. Allows per-resource override ofid_attribute(seeid_attributeprovider config documentation)
- ignoreAll booleanServer Changes 
- ignoreChanges string[]Tos 
- objectId string
- Defaults to the id learned by the provider during normal operations and id_attribute. Allows you to set the id manually. This is used in conjunction with the*_pathattributes.
- queryString string
- Query string to be included in the path
- readData string
- Valid JSON object to pass during read requests.
- readMethod string
- Defaults to read_methodset on the provider. Allows per-resource override ofread_method(seeread_methodprovider config documentation)
- readPath string
- readSearch {[key: string]: string}
- Custom search for read_path. This map will takesearch_data,search_key,search_value,results_keyandquery_string(see datasource config documentation)
- restapiObject stringId 
- The ID of this resource.
- updateData string
- Valid JSON object to pass during to update requests.
- updateMethod string
- Defaults to update_methodset on the provider. Allows per-resource override ofupdate_method(seeupdate_methodprovider config documentation)
- updatePath string
- data str
- Valid JSON object that this provider will manage with the API server.
- path str
- The API path on top of the base URL set in the provider that represents objects of this type on the API server.
- create_method str
- Defaults to create_methodset on the provider. Allows per-resource override ofcreate_method(seecreate_methodprovider config documentation)
- create_path str
- debug bool
- Whether to emit verbose debug output while working with the API object on the server.
- destroy_data str
- Valid JSON object to pass during to destroy requests.
- destroy_method str
- Defaults to destroy_methodset on the provider. Allows per-resource override ofdestroy_method(seedestroy_methodprovider config documentation)
- destroy_path str
- force_news Sequence[str]
- Any changes to these values will result in recreating the resource instead of updating.
- id_attribute str
- Defaults to id_attributeset on the provider. Allows per-resource override ofid_attribute(seeid_attributeprovider config documentation)
- ignore_all_ boolserver_ changes 
- ignore_changes_ Sequence[str]tos 
- object_id str
- Defaults to the id learned by the provider during normal operations and id_attribute. Allows you to set the id manually. This is used in conjunction with the*_pathattributes.
- query_string str
- Query string to be included in the path
- read_data str
- Valid JSON object to pass during read requests.
- read_method str
- Defaults to read_methodset on the provider. Allows per-resource override ofread_method(seeread_methodprovider config documentation)
- read_path str
- read_search Mapping[str, str]
- Custom search for read_path. This map will takesearch_data,search_key,search_value,results_keyandquery_string(see datasource config documentation)
- restapi_object_ strid 
- The ID of this resource.
- update_data str
- Valid JSON object to pass during to update requests.
- update_method str
- Defaults to update_methodset on the provider. Allows per-resource override ofupdate_method(seeupdate_methodprovider config documentation)
- update_path str
- data String
- Valid JSON object that this provider will manage with the API server.
- path String
- The API path on top of the base URL set in the provider that represents objects of this type on the API server.
- createMethod String
- Defaults to create_methodset on the provider. Allows per-resource override ofcreate_method(seecreate_methodprovider config documentation)
- createPath String
- debug Boolean
- Whether to emit verbose debug output while working with the API object on the server.
- destroyData String
- Valid JSON object to pass during to destroy requests.
- destroyMethod String
- Defaults to destroy_methodset on the provider. Allows per-resource override ofdestroy_method(seedestroy_methodprovider config documentation)
- destroyPath String
- forceNews List<String>
- Any changes to these values will result in recreating the resource instead of updating.
- idAttribute String
- Defaults to id_attributeset on the provider. Allows per-resource override ofid_attribute(seeid_attributeprovider config documentation)
- ignoreAll BooleanServer Changes 
- ignoreChanges List<String>Tos 
- objectId String
- Defaults to the id learned by the provider during normal operations and id_attribute. Allows you to set the id manually. This is used in conjunction with the*_pathattributes.
- queryString String
- Query string to be included in the path
- readData String
- Valid JSON object to pass during read requests.
- readMethod String
- Defaults to read_methodset on the provider. Allows per-resource override ofread_method(seeread_methodprovider config documentation)
- readPath String
- readSearch Map<String>
- Custom search for read_path. This map will takesearch_data,search_key,search_value,results_keyandquery_string(see datasource config documentation)
- restapiObject StringId 
- The ID of this resource.
- updateData String
- Valid JSON object to pass during to update requests.
- updateMethod String
- Defaults to update_methodset on the provider. Allows per-resource override ofupdate_method(seeupdate_methodprovider config documentation)
- updatePath String
Outputs
All input properties are implicitly available as output properties. Additionally, the Object resource produces the following output properties:
- ApiData Dictionary<string, string>
- ApiResponse string
- The raw body of the HTTP response from the last read of the object.
- CreateResponse string
- The raw body of the HTTP response returned when creating the object.
- Id string
- The provider-assigned unique ID for this managed resource.
- ApiData map[string]string
- ApiResponse string
- The raw body of the HTTP response from the last read of the object.
- CreateResponse string
- The raw body of the HTTP response returned when creating the object.
- Id string
- The provider-assigned unique ID for this managed resource.
- apiData Map<String,String>
- apiResponse String
- The raw body of the HTTP response from the last read of the object.
- createResponse String
- The raw body of the HTTP response returned when creating the object.
- id String
- The provider-assigned unique ID for this managed resource.
- apiData {[key: string]: string}
- apiResponse string
- The raw body of the HTTP response from the last read of the object.
- createResponse string
- The raw body of the HTTP response returned when creating the object.
- id string
- The provider-assigned unique ID for this managed resource.
- api_data Mapping[str, str]
- api_response str
- The raw body of the HTTP response from the last read of the object.
- create_response str
- The raw body of the HTTP response returned when creating the object.
- id str
- The provider-assigned unique ID for this managed resource.
- apiData Map<String>
- apiResponse String
- The raw body of the HTTP response from the last read of the object.
- createResponse String
- The raw body of the HTTP response returned when creating the object.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Object Resource
Get an existing Object 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?: ObjectState, opts?: CustomResourceOptions): Object@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        api_data: Optional[Mapping[str, str]] = None,
        api_response: Optional[str] = None,
        create_method: Optional[str] = None,
        create_path: Optional[str] = None,
        create_response: Optional[str] = None,
        data: Optional[str] = None,
        debug: Optional[bool] = None,
        destroy_data: Optional[str] = None,
        destroy_method: Optional[str] = None,
        destroy_path: Optional[str] = None,
        force_news: Optional[Sequence[str]] = None,
        id_attribute: Optional[str] = None,
        ignore_all_server_changes: Optional[bool] = None,
        ignore_changes_tos: Optional[Sequence[str]] = None,
        object_id: Optional[str] = None,
        path: Optional[str] = None,
        query_string: Optional[str] = None,
        read_data: Optional[str] = None,
        read_method: Optional[str] = None,
        read_path: Optional[str] = None,
        read_search: Optional[Mapping[str, str]] = None,
        restapi_object_id: Optional[str] = None,
        update_data: Optional[str] = None,
        update_method: Optional[str] = None,
        update_path: Optional[str] = None) -> Objectfunc GetObject(ctx *Context, name string, id IDInput, state *ObjectState, opts ...ResourceOption) (*Object, error)public static Object Get(string name, Input<string> id, ObjectState? state, CustomResourceOptions? opts = null)public static Object get(String name, Output<String> id, ObjectState state, CustomResourceOptions options)resources:  _:    type: restapi:Object    get:      id: ${id}- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
- ApiData Dictionary<string, string>
- ApiResponse string
- The raw body of the HTTP response from the last read of the object.
- CreateMethod string
- Defaults to create_methodset on the provider. Allows per-resource override ofcreate_method(seecreate_methodprovider config documentation)
- CreatePath string
- CreateResponse string
- The raw body of the HTTP response returned when creating the object.
- Data string
- Valid JSON object that this provider will manage with the API server.
- Debug bool
- Whether to emit verbose debug output while working with the API object on the server.
- DestroyData string
- Valid JSON object to pass during to destroy requests.
- DestroyMethod string
- Defaults to destroy_methodset on the provider. Allows per-resource override ofdestroy_method(seedestroy_methodprovider config documentation)
- DestroyPath string
- ForceNews List<string>
- Any changes to these values will result in recreating the resource instead of updating.
- IdAttribute string
- Defaults to id_attributeset on the provider. Allows per-resource override ofid_attribute(seeid_attributeprovider config documentation)
- IgnoreAll boolServer Changes 
- IgnoreChanges List<string>Tos 
- ObjectId string
- Defaults to the id learned by the provider during normal operations and id_attribute. Allows you to set the id manually. This is used in conjunction with the*_pathattributes.
- Path string
- The API path on top of the base URL set in the provider that represents objects of this type on the API server.
- QueryString string
- Query string to be included in the path
- ReadData string
- Valid JSON object to pass during read requests.
- ReadMethod string
- Defaults to read_methodset on the provider. Allows per-resource override ofread_method(seeread_methodprovider config documentation)
- ReadPath string
- ReadSearch Dictionary<string, string>
- Custom search for read_path. This map will takesearch_data,search_key,search_value,results_keyandquery_string(see datasource config documentation)
- RestapiObject stringId 
- The ID of this resource.
- UpdateData string
- Valid JSON object to pass during to update requests.
- UpdateMethod string
- Defaults to update_methodset on the provider. Allows per-resource override ofupdate_method(seeupdate_methodprovider config documentation)
- UpdatePath string
- ApiData map[string]string
- ApiResponse string
- The raw body of the HTTP response from the last read of the object.
- CreateMethod string
- Defaults to create_methodset on the provider. Allows per-resource override ofcreate_method(seecreate_methodprovider config documentation)
- CreatePath string
- CreateResponse string
- The raw body of the HTTP response returned when creating the object.
- Data string
- Valid JSON object that this provider will manage with the API server.
- Debug bool
- Whether to emit verbose debug output while working with the API object on the server.
- DestroyData string
- Valid JSON object to pass during to destroy requests.
- DestroyMethod string
- Defaults to destroy_methodset on the provider. Allows per-resource override ofdestroy_method(seedestroy_methodprovider config documentation)
- DestroyPath string
- ForceNews []string
- Any changes to these values will result in recreating the resource instead of updating.
- IdAttribute string
- Defaults to id_attributeset on the provider. Allows per-resource override ofid_attribute(seeid_attributeprovider config documentation)
- IgnoreAll boolServer Changes 
- IgnoreChanges []stringTos 
- ObjectId string
- Defaults to the id learned by the provider during normal operations and id_attribute. Allows you to set the id manually. This is used in conjunction with the*_pathattributes.
- Path string
- The API path on top of the base URL set in the provider that represents objects of this type on the API server.
- QueryString string
- Query string to be included in the path
- ReadData string
- Valid JSON object to pass during read requests.
- ReadMethod string
- Defaults to read_methodset on the provider. Allows per-resource override ofread_method(seeread_methodprovider config documentation)
- ReadPath string
- ReadSearch map[string]string
- Custom search for read_path. This map will takesearch_data,search_key,search_value,results_keyandquery_string(see datasource config documentation)
- RestapiObject stringId 
- The ID of this resource.
- UpdateData string
- Valid JSON object to pass during to update requests.
- UpdateMethod string
- Defaults to update_methodset on the provider. Allows per-resource override ofupdate_method(seeupdate_methodprovider config documentation)
- UpdatePath string
- apiData Map<String,String>
- apiResponse String
- The raw body of the HTTP response from the last read of the object.
- createMethod String
- Defaults to create_methodset on the provider. Allows per-resource override ofcreate_method(seecreate_methodprovider config documentation)
- createPath String
- createResponse String
- The raw body of the HTTP response returned when creating the object.
- data String
- Valid JSON object that this provider will manage with the API server.
- debug Boolean
- Whether to emit verbose debug output while working with the API object on the server.
- destroyData String
- Valid JSON object to pass during to destroy requests.
- destroyMethod String
- Defaults to destroy_methodset on the provider. Allows per-resource override ofdestroy_method(seedestroy_methodprovider config documentation)
- destroyPath String
- forceNews List<String>
- Any changes to these values will result in recreating the resource instead of updating.
- idAttribute String
- Defaults to id_attributeset on the provider. Allows per-resource override ofid_attribute(seeid_attributeprovider config documentation)
- ignoreAll BooleanServer Changes 
- ignoreChanges List<String>Tos 
- objectId String
- Defaults to the id learned by the provider during normal operations and id_attribute. Allows you to set the id manually. This is used in conjunction with the*_pathattributes.
- path String
- The API path on top of the base URL set in the provider that represents objects of this type on the API server.
- queryString String
- Query string to be included in the path
- readData String
- Valid JSON object to pass during read requests.
- readMethod String
- Defaults to read_methodset on the provider. Allows per-resource override ofread_method(seeread_methodprovider config documentation)
- readPath String
- readSearch Map<String,String>
- Custom search for read_path. This map will takesearch_data,search_key,search_value,results_keyandquery_string(see datasource config documentation)
- restapiObject StringId 
- The ID of this resource.
- updateData String
- Valid JSON object to pass during to update requests.
- updateMethod String
- Defaults to update_methodset on the provider. Allows per-resource override ofupdate_method(seeupdate_methodprovider config documentation)
- updatePath String
- apiData {[key: string]: string}
- apiResponse string
- The raw body of the HTTP response from the last read of the object.
- createMethod string
- Defaults to create_methodset on the provider. Allows per-resource override ofcreate_method(seecreate_methodprovider config documentation)
- createPath string
- createResponse string
- The raw body of the HTTP response returned when creating the object.
- data string
- Valid JSON object that this provider will manage with the API server.
- debug boolean
- Whether to emit verbose debug output while working with the API object on the server.
- destroyData string
- Valid JSON object to pass during to destroy requests.
- destroyMethod string
- Defaults to destroy_methodset on the provider. Allows per-resource override ofdestroy_method(seedestroy_methodprovider config documentation)
- destroyPath string
- forceNews string[]
- Any changes to these values will result in recreating the resource instead of updating.
- idAttribute string
- Defaults to id_attributeset on the provider. Allows per-resource override ofid_attribute(seeid_attributeprovider config documentation)
- ignoreAll booleanServer Changes 
- ignoreChanges string[]Tos 
- objectId string
- Defaults to the id learned by the provider during normal operations and id_attribute. Allows you to set the id manually. This is used in conjunction with the*_pathattributes.
- path string
- The API path on top of the base URL set in the provider that represents objects of this type on the API server.
- queryString string
- Query string to be included in the path
- readData string
- Valid JSON object to pass during read requests.
- readMethod string
- Defaults to read_methodset on the provider. Allows per-resource override ofread_method(seeread_methodprovider config documentation)
- readPath string
- readSearch {[key: string]: string}
- Custom search for read_path. This map will takesearch_data,search_key,search_value,results_keyandquery_string(see datasource config documentation)
- restapiObject stringId 
- The ID of this resource.
- updateData string
- Valid JSON object to pass during to update requests.
- updateMethod string
- Defaults to update_methodset on the provider. Allows per-resource override ofupdate_method(seeupdate_methodprovider config documentation)
- updatePath string
- api_data Mapping[str, str]
- api_response str
- The raw body of the HTTP response from the last read of the object.
- create_method str
- Defaults to create_methodset on the provider. Allows per-resource override ofcreate_method(seecreate_methodprovider config documentation)
- create_path str
- create_response str
- The raw body of the HTTP response returned when creating the object.
- data str
- Valid JSON object that this provider will manage with the API server.
- debug bool
- Whether to emit verbose debug output while working with the API object on the server.
- destroy_data str
- Valid JSON object to pass during to destroy requests.
- destroy_method str
- Defaults to destroy_methodset on the provider. Allows per-resource override ofdestroy_method(seedestroy_methodprovider config documentation)
- destroy_path str
- force_news Sequence[str]
- Any changes to these values will result in recreating the resource instead of updating.
- id_attribute str
- Defaults to id_attributeset on the provider. Allows per-resource override ofid_attribute(seeid_attributeprovider config documentation)
- ignore_all_ boolserver_ changes 
- ignore_changes_ Sequence[str]tos 
- object_id str
- Defaults to the id learned by the provider during normal operations and id_attribute. Allows you to set the id manually. This is used in conjunction with the*_pathattributes.
- path str
- The API path on top of the base URL set in the provider that represents objects of this type on the API server.
- query_string str
- Query string to be included in the path
- read_data str
- Valid JSON object to pass during read requests.
- read_method str
- Defaults to read_methodset on the provider. Allows per-resource override ofread_method(seeread_methodprovider config documentation)
- read_path str
- read_search Mapping[str, str]
- Custom search for read_path. This map will takesearch_data,search_key,search_value,results_keyandquery_string(see datasource config documentation)
- restapi_object_ strid 
- The ID of this resource.
- update_data str
- Valid JSON object to pass during to update requests.
- update_method str
- Defaults to update_methodset on the provider. Allows per-resource override ofupdate_method(seeupdate_methodprovider config documentation)
- update_path str
- apiData Map<String>
- apiResponse String
- The raw body of the HTTP response from the last read of the object.
- createMethod String
- Defaults to create_methodset on the provider. Allows per-resource override ofcreate_method(seecreate_methodprovider config documentation)
- createPath String
- createResponse String
- The raw body of the HTTP response returned when creating the object.
- data String
- Valid JSON object that this provider will manage with the API server.
- debug Boolean
- Whether to emit verbose debug output while working with the API object on the server.
- destroyData String
- Valid JSON object to pass during to destroy requests.
- destroyMethod String
- Defaults to destroy_methodset on the provider. Allows per-resource override ofdestroy_method(seedestroy_methodprovider config documentation)
- destroyPath String
- forceNews List<String>
- Any changes to these values will result in recreating the resource instead of updating.
- idAttribute String
- Defaults to id_attributeset on the provider. Allows per-resource override ofid_attribute(seeid_attributeprovider config documentation)
- ignoreAll BooleanServer Changes 
- ignoreChanges List<String>Tos 
- objectId String
- Defaults to the id learned by the provider during normal operations and id_attribute. Allows you to set the id manually. This is used in conjunction with the*_pathattributes.
- path String
- The API path on top of the base URL set in the provider that represents objects of this type on the API server.
- queryString String
- Query string to be included in the path
- readData String
- Valid JSON object to pass during read requests.
- readMethod String
- Defaults to read_methodset on the provider. Allows per-resource override ofread_method(seeread_methodprovider config documentation)
- readPath String
- readSearch Map<String>
- Custom search for read_path. This map will takesearch_data,search_key,search_value,results_keyandquery_string(see datasource config documentation)
- restapiObject StringId 
- The ID of this resource.
- updateData String
- Valid JSON object to pass during to update requests.
- updateMethod String
- Defaults to update_methodset on the provider. Allows per-resource override ofupdate_method(seeupdate_methodprovider config documentation)
- updatePath String
Import
identifier: /
Examples:
$ pulumi import restapi:index/object:Object objects /api/objects
$ pulumi import restapi:index/object:Object object /api/objects/123
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- restapi mastercard/terraform-provider-restapi
- License
- Notes
- This Pulumi package is based on the restapiTerraform Provider.