tencentcloud.ApiGatewayApiDoc
Explore with Pulumi AI
Provides a resource to create a APIGateway ApiDoc
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const myApiDoc = new tencentcloud.ApiGatewayApiDoc("myApiDoc", {
apiDocName: "doc_test1",
apiIds: [
"api-test1",
"api-test2",
],
environment: "release",
serviceId: "service_test1",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
my_api_doc = tencentcloud.ApiGatewayApiDoc("myApiDoc",
api_doc_name="doc_test1",
api_ids=[
"api-test1",
"api-test2",
],
environment="release",
service_id="service_test1")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewApiGatewayApiDoc(ctx, "myApiDoc", &tencentcloud.ApiGatewayApiDocArgs{
ApiDocName: pulumi.String("doc_test1"),
ApiIds: pulumi.StringArray{
pulumi.String("api-test1"),
pulumi.String("api-test2"),
},
Environment: pulumi.String("release"),
ServiceId: pulumi.String("service_test1"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var myApiDoc = new Tencentcloud.ApiGatewayApiDoc("myApiDoc", new()
{
ApiDocName = "doc_test1",
ApiIds = new[]
{
"api-test1",
"api-test2",
},
Environment = "release",
ServiceId = "service_test1",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.ApiGatewayApiDoc;
import com.pulumi.tencentcloud.ApiGatewayApiDocArgs;
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 myApiDoc = new ApiGatewayApiDoc("myApiDoc", ApiGatewayApiDocArgs.builder()
.apiDocName("doc_test1")
.apiIds(
"api-test1",
"api-test2")
.environment("release")
.serviceId("service_test1")
.build());
}
}
resources:
myApiDoc:
type: tencentcloud:ApiGatewayApiDoc
properties:
apiDocName: doc_test1
apiIds:
- api-test1
- api-test2
environment: release
serviceId: service_test1
Create ApiGatewayApiDoc Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ApiGatewayApiDoc(name: string, args: ApiGatewayApiDocArgs, opts?: CustomResourceOptions);
@overload
def ApiGatewayApiDoc(resource_name: str,
args: ApiGatewayApiDocArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ApiGatewayApiDoc(resource_name: str,
opts: Optional[ResourceOptions] = None,
api_doc_name: Optional[str] = None,
api_ids: Optional[Sequence[str]] = None,
environment: Optional[str] = None,
service_id: Optional[str] = None,
api_gateway_api_doc_id: Optional[str] = None)
func NewApiGatewayApiDoc(ctx *Context, name string, args ApiGatewayApiDocArgs, opts ...ResourceOption) (*ApiGatewayApiDoc, error)
public ApiGatewayApiDoc(string name, ApiGatewayApiDocArgs args, CustomResourceOptions? opts = null)
public ApiGatewayApiDoc(String name, ApiGatewayApiDocArgs args)
public ApiGatewayApiDoc(String name, ApiGatewayApiDocArgs args, CustomResourceOptions options)
type: tencentcloud:ApiGatewayApiDoc
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 ApiGatewayApiDocArgs
- 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 ApiGatewayApiDocArgs
- 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 ApiGatewayApiDocArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ApiGatewayApiDocArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ApiGatewayApiDocArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ApiGatewayApiDoc 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 ApiGatewayApiDoc resource accepts the following input properties:
- Api
Doc stringName - Api Document name.
- Api
Ids List<string> - List of APIs for generating documents.
- Environment string
- Env name.
- Service
Id string - Service name.
- Api
Gateway stringApi Doc Id - ID of the resource.
- Api
Doc stringName - Api Document name.
- Api
Ids []string - List of APIs for generating documents.
- Environment string
- Env name.
- Service
Id string - Service name.
- Api
Gateway stringApi Doc Id - ID of the resource.
- api
Doc StringName - Api Document name.
- api
Ids List<String> - List of APIs for generating documents.
- environment String
- Env name.
- service
Id String - Service name.
- api
Gateway StringApi Doc Id - ID of the resource.
- api
Doc stringName - Api Document name.
- api
Ids string[] - List of APIs for generating documents.
- environment string
- Env name.
- service
Id string - Service name.
- api
Gateway stringApi Doc Id - ID of the resource.
- api_
doc_ strname - Api Document name.
- api_
ids Sequence[str] - List of APIs for generating documents.
- environment str
- Env name.
- service_
id str - Service name.
- api_
gateway_ strapi_ doc_ id - ID of the resource.
- api
Doc StringName - Api Document name.
- api
Ids List<String> - List of APIs for generating documents.
- environment String
- Env name.
- service
Id String - Service name.
- api
Gateway StringApi Doc Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the ApiGatewayApiDoc resource produces the following output properties:
- Api
Count double - Api Document count.
- Api
Doc stringId - Api Document ID.
- Api
Doc stringStatus - API Document Build Status.
- Api
Doc stringUri - API Document Access URI.
- Api
Names List<string> - List of names for generating documents.
- Id string
- The provider-assigned unique ID for this managed resource.
- Release
Count double - Number of API document releases.
- Service
Name string - API Document service name.
- string
- API Document Sharing Password.
- Updated
Time string - API Document update time.
- View
Count double - API Document Viewing Times.
- Api
Count float64 - Api Document count.
- Api
Doc stringId - Api Document ID.
- Api
Doc stringStatus - API Document Build Status.
- Api
Doc stringUri - API Document Access URI.
- Api
Names []string - List of names for generating documents.
- Id string
- The provider-assigned unique ID for this managed resource.
- Release
Count float64 - Number of API document releases.
- Service
Name string - API Document service name.
- string
- API Document Sharing Password.
- Updated
Time string - API Document update time.
- View
Count float64 - API Document Viewing Times.
- api
Count Double - Api Document count.
- api
Doc StringId - Api Document ID.
- api
Doc StringStatus - API Document Build Status.
- api
Doc StringUri - API Document Access URI.
- api
Names List<String> - List of names for generating documents.
- id String
- The provider-assigned unique ID for this managed resource.
- release
Count Double - Number of API document releases.
- service
Name String - API Document service name.
- String
- API Document Sharing Password.
- updated
Time String - API Document update time.
- view
Count Double - API Document Viewing Times.
- api
Count number - Api Document count.
- api
Doc stringId - Api Document ID.
- api
Doc stringStatus - API Document Build Status.
- api
Doc stringUri - API Document Access URI.
- api
Names string[] - List of names for generating documents.
- id string
- The provider-assigned unique ID for this managed resource.
- release
Count number - Number of API document releases.
- service
Name string - API Document service name.
- string
- API Document Sharing Password.
- updated
Time string - API Document update time.
- view
Count number - API Document Viewing Times.
- api_
count float - Api Document count.
- api_
doc_ strid - Api Document ID.
- api_
doc_ strstatus - API Document Build Status.
- api_
doc_ struri - API Document Access URI.
- api_
names Sequence[str] - List of names for generating documents.
- id str
- The provider-assigned unique ID for this managed resource.
- release_
count float - Number of API document releases.
- service_
name str - API Document service name.
- str
- API Document Sharing Password.
- updated_
time str - API Document update time.
- view_
count float - API Document Viewing Times.
- api
Count Number - Api Document count.
- api
Doc StringId - Api Document ID.
- api
Doc StringStatus - API Document Build Status.
- api
Doc StringUri - API Document Access URI.
- api
Names List<String> - List of names for generating documents.
- id String
- The provider-assigned unique ID for this managed resource.
- release
Count Number - Number of API document releases.
- service
Name String - API Document service name.
- String
- API Document Sharing Password.
- updated
Time String - API Document update time.
- view
Count Number - API Document Viewing Times.
Look up Existing ApiGatewayApiDoc Resource
Get an existing ApiGatewayApiDoc 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?: ApiGatewayApiDocState, opts?: CustomResourceOptions): ApiGatewayApiDoc
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
api_count: Optional[float] = None,
api_doc_id: Optional[str] = None,
api_doc_name: Optional[str] = None,
api_doc_status: Optional[str] = None,
api_doc_uri: Optional[str] = None,
api_gateway_api_doc_id: Optional[str] = None,
api_ids: Optional[Sequence[str]] = None,
api_names: Optional[Sequence[str]] = None,
environment: Optional[str] = None,
release_count: Optional[float] = None,
service_id: Optional[str] = None,
service_name: Optional[str] = None,
share_password: Optional[str] = None,
updated_time: Optional[str] = None,
view_count: Optional[float] = None) -> ApiGatewayApiDoc
func GetApiGatewayApiDoc(ctx *Context, name string, id IDInput, state *ApiGatewayApiDocState, opts ...ResourceOption) (*ApiGatewayApiDoc, error)
public static ApiGatewayApiDoc Get(string name, Input<string> id, ApiGatewayApiDocState? state, CustomResourceOptions? opts = null)
public static ApiGatewayApiDoc get(String name, Output<String> id, ApiGatewayApiDocState state, CustomResourceOptions options)
resources: _: type: tencentcloud:ApiGatewayApiDoc 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.
- Api
Count double - Api Document count.
- Api
Doc stringId - Api Document ID.
- Api
Doc stringName - Api Document name.
- Api
Doc stringStatus - API Document Build Status.
- Api
Doc stringUri - API Document Access URI.
- Api
Gateway stringApi Doc Id - ID of the resource.
- Api
Ids List<string> - List of APIs for generating documents.
- Api
Names List<string> - List of names for generating documents.
- Environment string
- Env name.
- Release
Count double - Number of API document releases.
- Service
Id string - Service name.
- Service
Name string - API Document service name.
- string
- API Document Sharing Password.
- Updated
Time string - API Document update time.
- View
Count double - API Document Viewing Times.
- Api
Count float64 - Api Document count.
- Api
Doc stringId - Api Document ID.
- Api
Doc stringName - Api Document name.
- Api
Doc stringStatus - API Document Build Status.
- Api
Doc stringUri - API Document Access URI.
- Api
Gateway stringApi Doc Id - ID of the resource.
- Api
Ids []string - List of APIs for generating documents.
- Api
Names []string - List of names for generating documents.
- Environment string
- Env name.
- Release
Count float64 - Number of API document releases.
- Service
Id string - Service name.
- Service
Name string - API Document service name.
- string
- API Document Sharing Password.
- Updated
Time string - API Document update time.
- View
Count float64 - API Document Viewing Times.
- api
Count Double - Api Document count.
- api
Doc StringId - Api Document ID.
- api
Doc StringName - Api Document name.
- api
Doc StringStatus - API Document Build Status.
- api
Doc StringUri - API Document Access URI.
- api
Gateway StringApi Doc Id - ID of the resource.
- api
Ids List<String> - List of APIs for generating documents.
- api
Names List<String> - List of names for generating documents.
- environment String
- Env name.
- release
Count Double - Number of API document releases.
- service
Id String - Service name.
- service
Name String - API Document service name.
- String
- API Document Sharing Password.
- updated
Time String - API Document update time.
- view
Count Double - API Document Viewing Times.
- api
Count number - Api Document count.
- api
Doc stringId - Api Document ID.
- api
Doc stringName - Api Document name.
- api
Doc stringStatus - API Document Build Status.
- api
Doc stringUri - API Document Access URI.
- api
Gateway stringApi Doc Id - ID of the resource.
- api
Ids string[] - List of APIs for generating documents.
- api
Names string[] - List of names for generating documents.
- environment string
- Env name.
- release
Count number - Number of API document releases.
- service
Id string - Service name.
- service
Name string - API Document service name.
- string
- API Document Sharing Password.
- updated
Time string - API Document update time.
- view
Count number - API Document Viewing Times.
- api_
count float - Api Document count.
- api_
doc_ strid - Api Document ID.
- api_
doc_ strname - Api Document name.
- api_
doc_ strstatus - API Document Build Status.
- api_
doc_ struri - API Document Access URI.
- api_
gateway_ strapi_ doc_ id - ID of the resource.
- api_
ids Sequence[str] - List of APIs for generating documents.
- api_
names Sequence[str] - List of names for generating documents.
- environment str
- Env name.
- release_
count float - Number of API document releases.
- service_
id str - Service name.
- service_
name str - API Document service name.
- str
- API Document Sharing Password.
- updated_
time str - API Document update time.
- view_
count float - API Document Viewing Times.
- api
Count Number - Api Document count.
- api
Doc StringId - Api Document ID.
- api
Doc StringName - Api Document name.
- api
Doc StringStatus - API Document Build Status.
- api
Doc StringUri - API Document Access URI.
- api
Gateway StringApi Doc Id - ID of the resource.
- api
Ids List<String> - List of APIs for generating documents.
- api
Names List<String> - List of names for generating documents.
- environment String
- Env name.
- release
Count Number - Number of API document releases.
- service
Id String - Service name.
- service
Name String - API Document service name.
- String
- API Document Sharing Password.
- updated
Time String - API Document update time.
- view
Count Number - API Document Viewing Times.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.