Google Cloud Native v0.30.0, Apr 14 23
Google Cloud Native v0.30.0, Apr 14 23
google-native.apigateway/v1.Api
Explore with Pulumi AI
Creates a new Api in a given project and location. Auto-naming is currently not supported for this resource.
Create Api Resource
new Api(name: string, args: ApiArgs, opts?: CustomResourceOptions);
@overload
def Api(resource_name: str,
opts: Optional[ResourceOptions] = None,
api_id: Optional[str] = None,
display_name: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
location: Optional[str] = None,
managed_service: Optional[str] = None,
project: Optional[str] = None)
@overload
def Api(resource_name: str,
args: ApiArgs,
opts: Optional[ResourceOptions] = 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:apigateway/v1:Api
properties: # The arguments to resource properties.
options: # 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.
- 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.
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:
- Api
Id string Required. Identifier to assign to the API. Must be unique within scope of the parent resource.
- Display
Name string Optional. Display name.
- Labels Dictionary<string, string>
Optional. Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources
- Location string
- Managed
Service string Optional. Immutable. The name of a Google Managed Service ( https://cloud.google.com/service-infrastructure/docs/glossary#managed). If not specified, a new Service will automatically be created in the same project as this API.
- Project string
- Api
Id string Required. Identifier to assign to the API. Must be unique within scope of the parent resource.
- Display
Name string Optional. Display name.
- Labels map[string]string
Optional. Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources
- Location string
- Managed
Service string Optional. Immutable. The name of a Google Managed Service ( https://cloud.google.com/service-infrastructure/docs/glossary#managed). If not specified, a new Service will automatically be created in the same project as this API.
- Project string
- api
Id String Required. Identifier to assign to the API. Must be unique within scope of the parent resource.
- display
Name String Optional. Display name.
- labels Map<String,String>
Optional. Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources
- location String
- managed
Service String Optional. Immutable. The name of a Google Managed Service ( https://cloud.google.com/service-infrastructure/docs/glossary#managed). If not specified, a new Service will automatically be created in the same project as this API.
- project String
- api
Id string Required. Identifier to assign to the API. Must be unique within scope of the parent resource.
- display
Name string Optional. Display name.
- labels {[key: string]: string}
Optional. Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources
- location string
- managed
Service string Optional. Immutable. The name of a Google Managed Service ( https://cloud.google.com/service-infrastructure/docs/glossary#managed). If not specified, a new Service will automatically be created in the same project as this API.
- project string
- api_
id str Required. Identifier to assign to the API. Must be unique within scope of the parent resource.
- display_
name str Optional. Display name.
- labels Mapping[str, str]
Optional. Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources
- location str
- managed_
service str Optional. Immutable. The name of a Google Managed Service ( https://cloud.google.com/service-infrastructure/docs/glossary#managed). If not specified, a new Service will automatically be created in the same project as this API.
- project str
- api
Id String Required. Identifier to assign to the API. Must be unique within scope of the parent resource.
- display
Name String Optional. Display name.
- labels Map<String>
Optional. Resource labels to represent user-provided metadata. Refer to cloud documentation on labels for more details. https://cloud.google.com/compute/docs/labeling-resources
- location String
- managed
Service String Optional. Immutable. The name of a Google Managed Service ( https://cloud.google.com/service-infrastructure/docs/glossary#managed). If not specified, a new Service will automatically be created in the same project as this API.
- project String
Outputs
All input properties are implicitly available as output properties. Additionally, the Api resource produces the following output properties:
- Create
Time string Created time.
- Id string
The provider-assigned unique ID for this managed resource.
- Name string
Resource name of the API. Format: projects/{project}/locations/global/apis/{api}
- State string
State of the API.
- Update
Time string Updated time.
- Create
Time string Created time.
- Id string
The provider-assigned unique ID for this managed resource.
- Name string
Resource name of the API. Format: projects/{project}/locations/global/apis/{api}
- State string
State of the API.
- Update
Time string Updated time.
- create
Time String Created time.
- id String
The provider-assigned unique ID for this managed resource.
- name String
Resource name of the API. Format: projects/{project}/locations/global/apis/{api}
- state String
State of the API.
- update
Time String Updated time.
- create
Time string Created time.
- id string
The provider-assigned unique ID for this managed resource.
- name string
Resource name of the API. Format: projects/{project}/locations/global/apis/{api}
- state string
State of the API.
- update
Time string Updated time.
- create_
time str Created time.
- id str
The provider-assigned unique ID for this managed resource.
- name str
Resource name of the API. Format: projects/{project}/locations/global/apis/{api}
- state str
State of the API.
- update_
time str Updated time.
- create
Time String Created time.
- id String
The provider-assigned unique ID for this managed resource.
- name String
Resource name of the API. Format: projects/{project}/locations/global/apis/{api}
- state String
State of the API.
- update
Time String Updated time.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0