Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.apigee/v1.Api
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Creates an API proxy. The API proxy created will not be accessible at runtime until it is deployed to an environment. Create a new API proxy by setting the name
query parameter to the name of the API proxy. Import an API proxy configuration bundle stored in zip format on your local machine to your organization by doing the following: * Set the name
query parameter to the name of the API proxy. * Set the action
query parameter to import
. * Set the Content-Type
header to multipart/form-data
. * Pass as a file the name of API proxy configuration bundle stored in zip format on your local machine using the file
form field. Note: To validate the API proxy configuration bundle only without importing it, set the action
query parameter to validate
. When importing an API proxy configuration bundle, if the API proxy does not exist, it will be created. If the API proxy exists, then a new revision is created. Invalid API proxy configurations are rejected, and a list of validation errors is returned to the client.
Create Api Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Api(name: string, args: ApiArgs, opts?: CustomResourceOptions);
@overload
def Api(resource_name: str,
args: ApiArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Api(resource_name: str,
opts: Optional[ResourceOptions] = None,
organization_id: Optional[str] = None,
action: Optional[str] = None,
content_type: Optional[str] = None,
data: Optional[str] = None,
extensions: Optional[Sequence[Mapping[str, str]]] = None,
file: Optional[Union[pulumi.Asset, pulumi.Archive]] = None,
name: Optional[str] = None,
validate: Optional[bool] = None)
func NewApi(ctx *Context, name string, args ApiArgs, opts ...ResourceOption) (*Api, error)
public Api(string name, ApiArgs args, CustomResourceOptions? opts = null)
type: google-native:apigee/v1:Api
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 ApiArgs
- 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 ApiArgs
- 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 ApiArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ApiArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ApiArgs
- 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 exampleapiResourceResourceFromApigeev1 = new GoogleNative.Apigee.V1.Api("exampleapiResourceResourceFromApigeev1", new()
{
OrganizationId = "string",
Action = "string",
ContentType = "string",
Data = "string",
Extensions = new[]
{
{
{ "string", "string" },
},
},
File = new StringAsset("content"),
Name = "string",
Validate = false,
});
example, err := apigee.NewApi(ctx, "exampleapiResourceResourceFromApigeev1", &apigee.ApiArgs{
OrganizationId: pulumi.String("string"),
Action: pulumi.String("string"),
ContentType: pulumi.String("string"),
Data: pulumi.String("string"),
Extensions: pulumi.StringMapArray{
pulumi.StringMap{
"string": pulumi.String("string"),
},
},
File: pulumi.NewStringAsset("content"),
Name: pulumi.String("string"),
Validate: pulumi.Bool(false),
})
var exampleapiResourceResourceFromApigeev1 = new Api("exampleapiResourceResourceFromApigeev1", ApiArgs.builder()
.organizationId("string")
.action("string")
.contentType("string")
.data("string")
.extensions(Map.of("string", "string"))
.file(new StringAsset("content"))
.name("string")
.validate(false)
.build());
exampleapi_resource_resource_from_apigeev1 = google_native.apigee.v1.Api("exampleapiResourceResourceFromApigeev1",
organization_id="string",
action="string",
content_type="string",
data="string",
extensions=[{
"string": "string",
}],
file=pulumi.StringAsset("content"),
name="string",
validate=False)
const exampleapiResourceResourceFromApigeev1 = new google_native.apigee.v1.Api("exampleapiResourceResourceFromApigeev1", {
organizationId: "string",
action: "string",
contentType: "string",
data: "string",
extensions: [{
string: "string",
}],
file: new pulumi.asset.StringAsset("content"),
name: "string",
validate: false,
});
type: google-native:apigee/v1:Api
properties:
action: string
contentType: string
data: string
extensions:
- string: string
file:
fn::StringAsset: content
name: string
organizationId: string
validate: false
Api 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 Api resource accepts the following input properties:
- Organization
Id string - Action string
- Action to perform when importing an API proxy configuration bundle. Set this parameter to one of the following values: *
import
to import the API proxy configuration bundle. *validate
to validate the API proxy configuration bundle without importing it. - Content
Type string - The HTTP Content-Type header value specifying the content type of the body.
- Data string
- The HTTP request/response body as raw binary.
- Extensions
List<Immutable
Dictionary<string, string>> - Application specific response metadata. Must be set in the first response for streaming APIs.
- File
Asset
Or Archive - File to upload.
- Name string
- Name of the API proxy. Restrict the characters used to: A-Za-z0-9._-
- Validate bool
- Ignored. All uploads are validated regardless of the value of this field. Maintained for compatibility with Apigee Edge API.
- Organization
Id string - Action string
- Action to perform when importing an API proxy configuration bundle. Set this parameter to one of the following values: *
import
to import the API proxy configuration bundle. *validate
to validate the API proxy configuration bundle without importing it. - Content
Type string - The HTTP Content-Type header value specifying the content type of the body.
- Data string
- The HTTP request/response body as raw binary.
- Extensions []map[string]string
- Application specific response metadata. Must be set in the first response for streaming APIs.
- File
pulumi.
Asset Or Archive - File to upload.
- Name string
- Name of the API proxy. Restrict the characters used to: A-Za-z0-9._-
- Validate bool
- Ignored. All uploads are validated regardless of the value of this field. Maintained for compatibility with Apigee Edge API.
- organization
Id String - action String
- Action to perform when importing an API proxy configuration bundle. Set this parameter to one of the following values: *
import
to import the API proxy configuration bundle. *validate
to validate the API proxy configuration bundle without importing it. - content
Type String - The HTTP Content-Type header value specifying the content type of the body.
- data String
- The HTTP request/response body as raw binary.
- extensions List<Map<String,String>>
- Application specific response metadata. Must be set in the first response for streaming APIs.
- file
Asset
Or Archive - File to upload.
- name String
- Name of the API proxy. Restrict the characters used to: A-Za-z0-9._-
- validate Boolean
- Ignored. All uploads are validated regardless of the value of this field. Maintained for compatibility with Apigee Edge API.
- organization
Id string - action string
- Action to perform when importing an API proxy configuration bundle. Set this parameter to one of the following values: *
import
to import the API proxy configuration bundle. *validate
to validate the API proxy configuration bundle without importing it. - content
Type string - The HTTP Content-Type header value specifying the content type of the body.
- data string
- The HTTP request/response body as raw binary.
- extensions {[key: string]: string}[]
- Application specific response metadata. Must be set in the first response for streaming APIs.
- file
pulumi.asset.
Asset | pulumi.asset. Archive - File to upload.
- name string
- Name of the API proxy. Restrict the characters used to: A-Za-z0-9._-
- validate boolean
- Ignored. All uploads are validated regardless of the value of this field. Maintained for compatibility with Apigee Edge API.
- organization_
id str - action str
- Action to perform when importing an API proxy configuration bundle. Set this parameter to one of the following values: *
import
to import the API proxy configuration bundle. *validate
to validate the API proxy configuration bundle without importing it. - content_
type str - The HTTP Content-Type header value specifying the content type of the body.
- data str
- The HTTP request/response body as raw binary.
- extensions Sequence[Mapping[str, str]]
- Application specific response metadata. Must be set in the first response for streaming APIs.
- file
Union[pulumi.
Asset, pulumi. Archive] - File to upload.
- name str
- Name of the API proxy. Restrict the characters used to: A-Za-z0-9._-
- validate bool
- Ignored. All uploads are validated regardless of the value of this field. Maintained for compatibility with Apigee Edge API.
- organization
Id String - action String
- Action to perform when importing an API proxy configuration bundle. Set this parameter to one of the following values: *
import
to import the API proxy configuration bundle. *validate
to validate the API proxy configuration bundle without importing it. - content
Type String - The HTTP Content-Type header value specifying the content type of the body.
- data String
- The HTTP request/response body as raw binary.
- extensions List<Map<String>>
- Application specific response metadata. Must be set in the first response for streaming APIs.
- file Asset
- File to upload.
- name String
- Name of the API proxy. Restrict the characters used to: A-Za-z0-9._-
- validate Boolean
- Ignored. All uploads are validated regardless of the value of this field. Maintained for compatibility with Apigee Edge API.
Outputs
All input properties are implicitly available as output properties. Additionally, the Api resource produces the following output properties:
- Api
Proxy stringType - The type of the API proxy.
- Id string
- The provider-assigned unique ID for this managed resource.
- Labels Dictionary<string, string>
- User labels applied to this API Proxy.
- Latest
Revision stringId - The id of the most recently created revision for this api proxy.
- Meta
Data Pulumi.Google Native. Apigee. V1. Outputs. Google Cloud Apigee V1Entity Metadata Response - Metadata describing the API proxy.
- Read
Only bool - Whether this proxy is read-only. A read-only proxy cannot have new revisions created through calls to CreateApiProxyRevision. A proxy is read-only if it was generated by an archive.
- Revision List<string>
- List of revisions defined for the API proxy.
- Api
Proxy stringType - The type of the API proxy.
- Id string
- The provider-assigned unique ID for this managed resource.
- Labels map[string]string
- User labels applied to this API Proxy.
- Latest
Revision stringId - The id of the most recently created revision for this api proxy.
- Meta
Data GoogleCloud Apigee V1Entity Metadata Response - Metadata describing the API proxy.
- Read
Only bool - Whether this proxy is read-only. A read-only proxy cannot have new revisions created through calls to CreateApiProxyRevision. A proxy is read-only if it was generated by an archive.
- Revision []string
- List of revisions defined for the API proxy.
- api
Proxy StringType - The type of the API proxy.
- id String
- The provider-assigned unique ID for this managed resource.
- labels Map<String,String>
- User labels applied to this API Proxy.
- latest
Revision StringId - The id of the most recently created revision for this api proxy.
- meta
Data GoogleCloud Apigee V1Entity Metadata Response - Metadata describing the API proxy.
- read
Only Boolean - Whether this proxy is read-only. A read-only proxy cannot have new revisions created through calls to CreateApiProxyRevision. A proxy is read-only if it was generated by an archive.
- revision List<String>
- List of revisions defined for the API proxy.
- api
Proxy stringType - The type of the API proxy.
- id string
- The provider-assigned unique ID for this managed resource.
- labels {[key: string]: string}
- User labels applied to this API Proxy.
- latest
Revision stringId - The id of the most recently created revision for this api proxy.
- meta
Data GoogleCloud Apigee V1Entity Metadata Response - Metadata describing the API proxy.
- read
Only boolean - Whether this proxy is read-only. A read-only proxy cannot have new revisions created through calls to CreateApiProxyRevision. A proxy is read-only if it was generated by an archive.
- revision string[]
- List of revisions defined for the API proxy.
- api_
proxy_ strtype - The type of the API proxy.
- id str
- The provider-assigned unique ID for this managed resource.
- labels Mapping[str, str]
- User labels applied to this API Proxy.
- latest_
revision_ strid - The id of the most recently created revision for this api proxy.
- meta_
data GoogleCloud Apigee V1Entity Metadata Response - Metadata describing the API proxy.
- read_
only bool - Whether this proxy is read-only. A read-only proxy cannot have new revisions created through calls to CreateApiProxyRevision. A proxy is read-only if it was generated by an archive.
- revision Sequence[str]
- List of revisions defined for the API proxy.
- api
Proxy StringType - The type of the API proxy.
- id String
- The provider-assigned unique ID for this managed resource.
- labels Map<String>
- User labels applied to this API Proxy.
- latest
Revision StringId - The id of the most recently created revision for this api proxy.
- meta
Data Property Map - Metadata describing the API proxy.
- read
Only Boolean - Whether this proxy is read-only. A read-only proxy cannot have new revisions created through calls to CreateApiProxyRevision. A proxy is read-only if it was generated by an archive.
- revision List<String>
- List of revisions defined for the API proxy.
Supporting Types
GoogleCloudApigeeV1EntityMetadataResponse, GoogleCloudApigeeV1EntityMetadataResponseArgs
- Created
At string - Time at which the API proxy was created, in milliseconds since epoch.
- Last
Modified stringAt - Time at which the API proxy was most recently modified, in milliseconds since epoch.
- Sub
Type string - The type of entity described
- Created
At string - Time at which the API proxy was created, in milliseconds since epoch.
- Last
Modified stringAt - Time at which the API proxy was most recently modified, in milliseconds since epoch.
- Sub
Type string - The type of entity described
- created
At String - Time at which the API proxy was created, in milliseconds since epoch.
- last
Modified StringAt - Time at which the API proxy was most recently modified, in milliseconds since epoch.
- sub
Type String - The type of entity described
- created
At string - Time at which the API proxy was created, in milliseconds since epoch.
- last
Modified stringAt - Time at which the API proxy was most recently modified, in milliseconds since epoch.
- sub
Type string - The type of entity described
- created_
at str - Time at which the API proxy was created, in milliseconds since epoch.
- last_
modified_ strat - Time at which the API proxy was most recently modified, in milliseconds since epoch.
- sub_
type str - The type of entity described
- created
At String - Time at which the API proxy was created, in milliseconds since epoch.
- last
Modified StringAt - Time at which the API proxy was most recently modified, in milliseconds since epoch.
- sub
Type String - The type of entity described
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.