Service
This resource creates and rolls out a Cloud Endpoints service using OpenAPI or gRPC. View the relevant docs for OpenAPI and gRPC.
Create a Service Resource
new Service(name: string, args: ServiceArgs, opts?: CustomResourceOptions);def Service(resource_name, opts=None, grpc_config=None, openapi_config=None, project=None, protoc_output_base64=None, service_name=None, __props__=None);func NewService(ctx *Context, name string, args ServiceArgs, opts ...ResourceOption) (*Service, error)public Service(string name, ServiceArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args ServiceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ServiceArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServiceArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Service Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Service resource accepts the following input properties:
- Service
Name string The name of the service. Usually of the form $apiname.endpoints.$projectid.cloud.goog.
- Grpc
Config string The full text of the Service Config YAML file (Example located here). If provided, must also provide protoc_output_base64. open_api config must not be provided.
- Openapi
Config string The full text of the OpenAPI YAML configuration as described here. Either this, or both of grpc_config and protoc_output_base64 must be specified.
- Project string
The project ID that the service belongs to. If not provided, provider project is used.
- Protoc
Output stringBase64 The full contents of the Service Descriptor File generated by protoc. This should be a compiled .pb file, base64-encoded.
- Service
Name string The name of the service. Usually of the form $apiname.endpoints.$projectid.cloud.goog.
- Grpc
Config string The full text of the Service Config YAML file (Example located here). If provided, must also provide protoc_output_base64. open_api config must not be provided.
- Openapi
Config string The full text of the OpenAPI YAML configuration as described here. Either this, or both of grpc_config and protoc_output_base64 must be specified.
- Project string
The project ID that the service belongs to. If not provided, provider project is used.
- Protoc
Output stringBase64 The full contents of the Service Descriptor File generated by protoc. This should be a compiled .pb file, base64-encoded.
- service
Name string The name of the service. Usually of the form $apiname.endpoints.$projectid.cloud.goog.
- grpc
Config string The full text of the Service Config YAML file (Example located here). If provided, must also provide protoc_output_base64. open_api config must not be provided.
- openapi
Config string The full text of the OpenAPI YAML configuration as described here. Either this, or both of grpc_config and protoc_output_base64 must be specified.
- project string
The project ID that the service belongs to. If not provided, provider project is used.
- protoc
Output stringBase64 The full contents of the Service Descriptor File generated by protoc. This should be a compiled .pb file, base64-encoded.
- service_
name str The name of the service. Usually of the form $apiname.endpoints.$projectid.cloud.goog.
- grpc_
config str The full text of the Service Config YAML file (Example located here). If provided, must also provide protoc_output_base64. open_api config must not be provided.
- openapi_
config str The full text of the OpenAPI YAML configuration as described here. Either this, or both of grpc_config and protoc_output_base64 must be specified.
- project str
The project ID that the service belongs to. If not provided, provider project is used.
- protoc_
output_ strbase64 The full contents of the Service Descriptor File generated by protoc. This should be a compiled .pb file, base64-encoded.
Outputs
All input properties are implicitly available as output properties. Additionally, the Service resource produces the following output properties:
- Apis
List<Service
Api> A list of API objects.
- Config
Id string The autogenerated ID for the configuration that is rolled out as part of the creation of this resource. Must be provided to compute engine instances as a tag.
- Dns
Address string The address at which the service can be found - usually the same as the service name.
- Endpoints
List<Service
Endpoint> A list of Endpoint objects.
- Id string
- The provider-assigned unique ID for this managed resource.
- Apis
[]Service
Api A list of API objects.
- Config
Id string The autogenerated ID for the configuration that is rolled out as part of the creation of this resource. Must be provided to compute engine instances as a tag.
- Dns
Address string The address at which the service can be found - usually the same as the service name.
- Endpoints
[]Service
Endpoint A list of Endpoint objects.
- Id string
- The provider-assigned unique ID for this managed resource.
- apis
Service
Api[] A list of API objects.
- config
Id string The autogenerated ID for the configuration that is rolled out as part of the creation of this resource. Must be provided to compute engine instances as a tag.
- dns
Address string The address at which the service can be found - usually the same as the service name.
- endpoints
Service
Endpoint[] A list of Endpoint objects.
- id string
- The provider-assigned unique ID for this managed resource.
- apis
List[Service
Api] A list of API objects.
- config_
id str The autogenerated ID for the configuration that is rolled out as part of the creation of this resource. Must be provided to compute engine instances as a tag.
- dns_
address str The address at which the service can be found - usually the same as the service name.
- endpoints
List[Service
Endpoint] A list of Endpoint objects.
- id str
- The provider-assigned unique ID for this managed resource.
Look up an Existing Service Resource
Get an existing Service 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?: ServiceState, opts?: CustomResourceOptions): Servicestatic get(resource_name, id, opts=None, apis=None, config_id=None, dns_address=None, endpoints=None, grpc_config=None, openapi_config=None, project=None, protoc_output_base64=None, service_name=None, __props__=None);func GetService(ctx *Context, name string, id IDInput, state *ServiceState, opts ...ResourceOption) (*Service, error)public static Service Get(string name, Input<string> id, ServiceState? state, CustomResourceOptions? opts = null)- 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.
The following state arguments are supported:
- Apis
List<Service
Api Args> A list of API objects.
- Config
Id string The autogenerated ID for the configuration that is rolled out as part of the creation of this resource. Must be provided to compute engine instances as a tag.
- Dns
Address string The address at which the service can be found - usually the same as the service name.
- Endpoints
List<Service
Endpoint Args> A list of Endpoint objects.
- Grpc
Config string The full text of the Service Config YAML file (Example located here). If provided, must also provide protoc_output_base64. open_api config must not be provided.
- Openapi
Config string The full text of the OpenAPI YAML configuration as described here. Either this, or both of grpc_config and protoc_output_base64 must be specified.
- Project string
The project ID that the service belongs to. If not provided, provider project is used.
- Protoc
Output stringBase64 The full contents of the Service Descriptor File generated by protoc. This should be a compiled .pb file, base64-encoded.
- Service
Name string The name of the service. Usually of the form $apiname.endpoints.$projectid.cloud.goog.
- Apis
[]Service
Api A list of API objects.
- Config
Id string The autogenerated ID for the configuration that is rolled out as part of the creation of this resource. Must be provided to compute engine instances as a tag.
- Dns
Address string The address at which the service can be found - usually the same as the service name.
- Endpoints
[]Service
Endpoint A list of Endpoint objects.
- Grpc
Config string The full text of the Service Config YAML file (Example located here). If provided, must also provide protoc_output_base64. open_api config must not be provided.
- Openapi
Config string The full text of the OpenAPI YAML configuration as described here. Either this, or both of grpc_config and protoc_output_base64 must be specified.
- Project string
The project ID that the service belongs to. If not provided, provider project is used.
- Protoc
Output stringBase64 The full contents of the Service Descriptor File generated by protoc. This should be a compiled .pb file, base64-encoded.
- Service
Name string The name of the service. Usually of the form $apiname.endpoints.$projectid.cloud.goog.
- apis
Service
Api[] A list of API objects.
- config
Id string The autogenerated ID for the configuration that is rolled out as part of the creation of this resource. Must be provided to compute engine instances as a tag.
- dns
Address string The address at which the service can be found - usually the same as the service name.
- endpoints
Service
Endpoint[] A list of Endpoint objects.
- grpc
Config string The full text of the Service Config YAML file (Example located here). If provided, must also provide protoc_output_base64. open_api config must not be provided.
- openapi
Config string The full text of the OpenAPI YAML configuration as described here. Either this, or both of grpc_config and protoc_output_base64 must be specified.
- project string
The project ID that the service belongs to. If not provided, provider project is used.
- protoc
Output stringBase64 The full contents of the Service Descriptor File generated by protoc. This should be a compiled .pb file, base64-encoded.
- service
Name string The name of the service. Usually of the form $apiname.endpoints.$projectid.cloud.goog.
- apis
List[Service
Api] A list of API objects.
- config_
id str The autogenerated ID for the configuration that is rolled out as part of the creation of this resource. Must be provided to compute engine instances as a tag.
- dns_
address str The address at which the service can be found - usually the same as the service name.
- endpoints
List[Service
Endpoint] A list of Endpoint objects.
- grpc_
config str The full text of the Service Config YAML file (Example located here). If provided, must also provide protoc_output_base64. open_api config must not be provided.
- openapi_
config str The full text of the OpenAPI YAML configuration as described here. Either this, or both of grpc_config and protoc_output_base64 must be specified.
- project str
The project ID that the service belongs to. If not provided, provider project is used.
- protoc_
output_ strbase64 The full contents of the Service Descriptor File generated by protoc. This should be a compiled .pb file, base64-encoded.
- service_
name str The name of the service. Usually of the form $apiname.endpoints.$projectid.cloud.goog.
Supporting Types
ServiceApi
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
ServiceApiMethod
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
ServiceEndpoint
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
Package Details
- Repository
- https://github.com/pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
google-betaTerraform Provider.