Documentation ¶
Index ¶
- Constants
- func DataSourceEnvironments() *schema.Resource
- func DataSourceGroups() *schema.Resource
- func GetApiIdByName(client *golangsdk.ServiceClient, instanceId, name string) (string, error)
- func GetEnvironmentFormServer(client *golangsdk.ServiceClient, instanceId, envId string) (*environments.Environment, error)
- func GetVersionHistories(c *golangsdk.ServiceClient, instanceId, envId, apiId string) ([]apis.ApiVersionInfo, error)
- func InstanceStateRefreshFunc(client *golangsdk.ServiceClient, instanceId string, targets []string) resource.StateRefreshFunc
- func ResourceAclPolicy() *schema.Resource
- func ResourceAclPolicyAssociate() *schema.Resource
- func ResourceApiPublishmentCreate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
- func ResourceApiPublishmentDelete(_ context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
- func ResourceApiPublishmentRead(_ context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
- func ResourceApiPublishmentUpdate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
- func ResourceApigAPIV2() *schema.Resource
- func ResourceApigApiPublishment() *schema.Resource
- func ResourceApigApplicationV2() *schema.Resource
- func ResourceApigCustomAuthorizerV2() *schema.Resource
- func ResourceApigEnvironmentV2() *schema.Resource
- func ResourceApigGroupV2() *schema.Resource
- func ResourceApigInstanceV2() *schema.Resource
- func ResourceApigResponseV2() *schema.Resource
- func ResourceApigThrottlingPolicyV2() *schema.Resource
- func ResourceAppAuth() *schema.Resource
- func ResourceAppcode() *schema.Resource
- func ResourceCertificate() *schema.Resource
- func ResourceChannel() *schema.Resource
- func ResourceEndpointWhiteList() *schema.Resource
- func ResourceInstanceRoutes() *schema.Resource
- func ResourcePlugin() *schema.Resource
- func ResourcePluginAssociate() *schema.Resource
- func ResourceSignature() *schema.Resource
- func ResourceSignatureAssociate() *schema.Resource
- func ResourceThrottlingPolicyAssociate() *schema.Resource
- type ApiAuthType
- type ApiType
- type AppCodeAuthType
- type AuthType
- type BackendType
- type ConditionSource
- type ConditionType
- type Edition
- type EffectiveMode
- type InvacationType
- type MatchMode
- type ParamLocation
- type ParamType
- type ParameterType
- type PeriodUnit
- type PolicyType
- type ProtocolType
- type ProviderType
- type RequestMethod
- type SecretAction
- type SystemParamType
Constants ¶
const ( ApiTypePublic ApiType = "Public" ApiTypePrivate ApiType = "Private" RequestMethodGet RequestMethod = "GET" RequestMethodPost RequestMethod = "POST" RequestMethodPut RequestMethod = "PUT" RequestMethodDelete RequestMethod = "DELETE" RequestMethodHead RequestMethod = "HEAD" RequestMethodPatch RequestMethod = "PATCH" RequestMethodOptions RequestMethod = "OPTIONS" RequestMethodAny RequestMethod = "ANY" ApiAuthTypeNone ApiAuthType = "NONE" ApiAuthTypeApp ApiAuthType = "APP" ApiAuthTypeIam ApiAuthType = "IAM" ApiAuthTypeAuthorizer ApiAuthType = "AUTHORIZER" ParamLocationPath ParamLocation = "PATH" ParamLocationHeader ParamLocation = "HEADER" ParamLocationQuery ParamLocation = "QUERY" ParamTypeString ParamType = "STRING" ParamTypeNumber ParamType = "NUMBER" MatchModePrefix MatchMode = "Prefix" MatchModeExact MatchMode = "Exact" InvacationTypeAsync InvacationType = "async" InvacationTypeSync InvacationType = "sync" EffectiveModeAll EffectiveMode = "ALL" EffectiveModeAny EffectiveMode = "ANY" ConditionSourceParam ConditionSource = "param" ConditionSourceSource ConditionSource = "source" ConditionSourceSystem ConditionSource = "system" ConditionSourceCookie ConditionSource = "cookie" ConditionSourceFrontendAuthorizer ConditionSource = "frontend_authorizer" ConditionTypeEqual ConditionType = "Equal" ConditionTypeEnumerated ConditionType = "Enumerated" ConditionTypeMatching ConditionType = "Matching" ParameterTypeRequest ParameterType = "REQUEST" ParameterTypeConstant ParameterType = "CONSTANT" ParameterTypeSystem ParameterType = "SYSTEM" SystemParamTypeFrontend SystemParamType = "frontend" SystemParamTypeBackend SystemParamType = "backend" SystemParamTypeInternal SystemParamType = "internal" BackendTypeHttp BackendType = "HTTP" BackendTypeFunction BackendType = "FUNCTION" BackendTypeMock BackendType = "MOCK" AppCodeAuthTypeDisable AppCodeAuthType = "DISABLE" AppCodeAuthTypeEnable AppCodeAuthType = "HEADER" ProtocolTypeTCP ProtocolType = "TCP" ProtocolTypeHTTP ProtocolType = "HTTP" ProtocolTypeHTTPS ProtocolType = "HTTPS" ProtocolTypeBoth ProtocolType = "BOTH" )
const ( // IPv4 Editions EditionBasic Edition = "BASIC" // Basic Edition instance. EditionProfessional Edition = "PROFESSIONAL" // Professional Edition instance. EditionEnterprise Edition = "ENTERPRISE" // Enterprise Edition instance. EditionPlatinum Edition = "PLATINUM" // Platinum Edition instance. // IPv6 Editions Ipv6EditionBasic Edition = "BASIC_IPv6" // IPv6 instance of the Basic Edition. Ipv6EditionProfessional Edition = "PROFESSIONAL_IPv6" // IPv6 instance of the Professional Edition. Ipv6EditionEnterprise Edition = "ENTERPRISE_IPv6" // IPv6 instance of the Enterprise Edition. Ipv6EditionPlatinum Edition = "PLATINUM_IPv6" // IPv6 instance of the Platinum Edition. ProviderTypeLvs ProviderType = "lvs" // Linux virtual server. ProviderTypeElb ProviderType = "elb" // Elastic load balance. )
const ( PeriodUnitSecond PeriodUnit = "SECOND" PeriodUnitMinute PeriodUnit = "MINUTE" PeriodUnitHour PeriodUnit = "HOUR" PeriodUnitDay PeriodUnit = "DAY" PolicyTypeExclusive PolicyType = "API-based" PolicyTypeUser PolicyType = "USER" PolicyTypeApplication PolicyType = "APP" )
Variables ¶
This section is empty.
Functions ¶
func DataSourceEnvironments ¶ added in v1.38.0
@API APIG GET /v2/{project_id}/apigw/instances/{instanceId}/{path}
func DataSourceGroups ¶ added in v1.57.0
@API APIG GET /v2/{project_id}/apigw/instances/{instanceId}/api-groups
func GetApiIdByName ¶ added in v1.45.0
func GetApiIdByName(client *golangsdk.ServiceClient, instanceId, name string) (string, error)
GetApigAPIIdByName is a method to get a specifies API ID from a APIG instance by name.
func GetEnvironmentFormServer ¶
func GetEnvironmentFormServer(client *golangsdk.ServiceClient, instanceId, envId string) (*environments.Environment, error)
GetEnvironmentFormServer is a method to get dedicated environment details form server using IDs.
func GetVersionHistories ¶ added in v1.30.0
func GetVersionHistories(c *golangsdk.ServiceClient, instanceId, envId, apiId string) ([]apis.ApiVersionInfo, error)
GetVersionHistories is a function that obtains version histories by APIG IDs.
func InstanceStateRefreshFunc ¶ added in v1.43.0
func InstanceStateRefreshFunc(client *golangsdk.ServiceClient, instanceId string, targets []string) resource.StateRefreshFunc
func ResourceAclPolicy ¶ added in v1.47.0
ResourceAclPolicy is a provider resource of the APIG ACL policy. @API APIG DELETE /v2/{project_id}/apigw/instances/{instanceId}/acls/{policyId} @API APIG GET /v2/{project_id}/apigw/instances/{instanceId}/acls/{policyId} @API APIG PUT /v2/{project_id}/apigw/instances/{instanceId}/acls/{policyId} @API APIG POST /v2/{project_id}/apigw/instances/{instanceId}/acls
func ResourceAclPolicyAssociate ¶ added in v1.48.0
@API APIG GET /v2/{project_id}/apigw/instances/{instanceId}/acl-bindings/binded-apis @API APIG POST /v2/{project_id}/apigw/instances/{instanceId}/acl-bindings
func ResourceApiPublishmentCreate ¶ added in v1.44.2
func ResourceApiPublishmentCreate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
ResourceApiPublishmentCreate is a function that uses terraform configuration to publish new versions or switch historical versions.
func ResourceApiPublishmentDelete ¶ added in v1.44.2
func ResourceApiPublishmentDelete(_ context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
func ResourceApiPublishmentRead ¶ added in v1.44.2
func ResourceApiPublishmentRead(_ context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
ResourceApiPublishmentRead is a method to obtain informations of API publishment and save to the local storage.
func ResourceApiPublishmentUpdate ¶ added in v1.44.2
func ResourceApiPublishmentUpdate(ctx context.Context, d *schema.ResourceData, meta interface{}) diag.Diagnostics
func ResourceApigAPIV2 ¶ added in v1.27.1
@API APIG DELETE /v2/{project_id}/apigw/instances/{instanceId}/apis/{apiId} @API APIG GET /v2/{project_id}/apigw/instances/{instanceId}/apis/{apiId} @API APIG PUT /v2/{project_id}/apigw/instances/{instanceId}/apis/{apiId} @API APIG GET /v2/{project_id}/apigw/instances/{instanceId}/apis @API APIG POST /v2/{project_id}/apigw/instances/{instanceId}/apis
func ResourceApigApiPublishment ¶ added in v1.30.0
@API APIG GET /v2/{project_id}/apigw/instances/{instanceId}/apis/{apiId} @API APIG POST /v2/{project_id}/apigw/instances/{instanceId}/apis/action @API APIG GET /v2/{project_id}/apigw/instances/{instanceId}/apis/publish/{apiId} @API APIG PUT /v2/{project_id}/apigw/instances/{instanceId}/apis/publish/{apiId}
func ResourceApigApplicationV2 ¶
@API APIG DELETE /v2/{project_id}/apigw/instances/{instanceId}/apps/{appId}/app-codes/{codeId} @API APIG GET /v2/{project_id}/apigw/instances/{instanceId}/apps/{appId}/app-codes @API APIG POST /v2/{project_id}/apigw/instances/{instanceId}/apps/{appId}/app-codes @API APIG DELETE /v2/{project_id}/apigw/instances/{instanceId}/apps/{appId} @API APIG GET /v2/{project_id}/apigw/instances/{instanceId}/apps/{appId} @API APIG PUT /v2/{project_id}/apigw/instances/{instanceId}/apps/{appId} @API APIG POST /v2/{project_id}/apigw/instances/{instanceId}/apps @API APIG PUT /v2/{project_id}/apigw/instances/{instanceId}/apps/secret/{appId}
func ResourceApigCustomAuthorizerV2 ¶ added in v1.27.1
@API APIG DELETE /v2/{project_id}/apigw/instances/{instanceId}/authorizers/{id} @API APIG GET /v2/{project_id}/apigw/instances/{instanceId}/authorizers/{id} @API APIG PUT /v2/{project_id}/apigw/instances/{instanceId}/authorizers/{id} @API APIG GET /v2/{project_id}/apigw/instances/{instanceId}/authorizers @API APIG POST /v2/{project_id}/apigw/instances/{instanceId}/authorizers
func ResourceApigEnvironmentV2 ¶
@API APIG DELETE /v2/{project_id}/apigw/instances/{instanceId}/{path}/{id} @API APIG PUT /v2/{project_id}/apigw/instances/{instanceId}/{path}/{id} @API APIG GET /v2/{project_id}/apigw/instances/{instanceId}/{path} @API APIG POST /v2/{project_id}/apigw/instances/{instanceId}/{path}
func ResourceApigGroupV2 ¶
@API APIG GET /v2/{project_id}/apigw/instances/{instanceId}/{path} @API APIG POST /v2/{project_id}/apigw/instances/{instanceId}/{path} @API APIG DELETE /v2/{project_id}/apigw/instances/{instanceId}/api-groups/{groupId} @API APIG GET /v2/{project_id}/apigw/instances/{instanceId}/api-groups/{groupId} @API APIG PUT /v2/{project_id}/apigw/instances/{instanceId}/api-groups/{groupId} @API APIG POST /v2/{project_id}/apigw/instances/{instanceId}/api-groups @API APIG DELETE /v2/{project_id}/apigw/instances/{instanceId}/{path}/{id}
func ResourceApigInstanceV2 ¶
@API APIG DELETE /v2/{project_id}/apigw/instances/{id}/eip @API APIG PUT /v2/{project_id}/apigw/instances/{id}/eip @API APIG DELETE /v2/{project_id}/apigw/instances/{id}/nat-eip @API APIG POST /v2/{project_id}/apigw/instances/{id}/nat-eip @API APIG PUT /v2/{project_id}/apigw/instances/{id}/nat-eip @API APIG GET /v2/{project_id}/apigw/instances/{id} @API APIG PUT /v2/{project_id}/apigw/instances/{id} @API APIG DELETE /v2/{project_id}/apigw/instances/{id} @API APIG POST /v2/{project_id}/apigw/instances/{instanceId}/instance-tags/action @API APIG GET /v2/{project_id}/apigw/instances/{instanceId}/instance-tags @API APIG POST /v2/{project_id}/apigw/instances @API EIP GET /v1/{project_id}/publicips @API APIG POST /v2/{project_id}/apigw/instances{instance_id}/ingress-eip @API APIG DELETE /v2/{project_id}/apigw/instances/{instance_id}/ingress-eip
func ResourceApigResponseV2 ¶
@API APIG GET /v2/{project_id}/apigw/instances/{instanceId}/api-groups/{groupId}/gateway-responses/{respId} @API APIG PUT /v2/{project_id}/apigw/instances/{instanceId}/api-groups/{groupId}/gateway-responses/{respId} @API APIG DELETE /v2/{project_id}/apigw/instances/{instanceId}/api-groups/{groupId}/gateway-responses/{respId} @API APIG GET /v2/{project_id}/apigw/instances/{instanceId}/api-groups/{groupId}/gateway-responses @API APIG POST /v2/{project_id}/apigw/instances/{instanceId}/api-groups/{groupId}/gateway-responses
func ResourceApigThrottlingPolicyV2 ¶ added in v1.27.1
ResourceApigThrottlingPolicyV2 is a provider resource of the APIG throttling policy. @API APIG GET /v2/{project_id}/apigw/instances/{instanceId}/throttles/{policyId}/throttle-specials @API APIG POST /v2/{project_id}/apigw/instances/{instanceId}/throttles/{policyId}/throttle-specials @API APIG DELETE /v2/{project_id}/apigw/instances/{instanceId}/throttles/{policyId} @API APIG GET /v2/{project_id}/apigw/instances/{instanceId}/throttles/{policyId} @API APIG PUT /v2/{project_id}/apigw/instances/{instanceId}/throttles/{policyId} @API APIG GET /v2/{project_id}/apigw/instances/{instanceId}/throttles @API APIG POST /v2/{project_id}/apigw/instances/{instanceId}/throttles @API APIG PUT /v2/{project_id}/apigw/instances/{instanceId}/throttles/{policyId}/throttle-specials/{strategyId} @API APIG DELETE /v2/{project_id}/apigw/instances/{instanceId}/throttles/{policyId}/throttle-specials/{strategyId}
func ResourceAppAuth ¶ added in v1.55.0
@API APIG DELETE /v2/{project_id}/apigw/instances/{instanceId}/app-auths/{authId} @API APIG POST /v2/{project_id}/apigw/instances/{instanceId}/app-auths @API APIG GET /v2/{project_id}/apigw/instances/{instanceId}/app-auths/binded-apis @API APIG GET /v2/{project_id}/apigw/instances/{instanceId}/app-auths/unbinded-apis
func ResourceAppcode ¶ added in v1.55.0
@API APIG DELETE /v2/{project_id}/apigw/instances/{instanceId}/apps/{appId}/app-codes/{codeId} @API APIG GET /v2/{project_id}/apigw/instances/{instanceId}/apps/{appId}/app-codes/{codeId} @API APIG POST /v2/{project_id}/apigw/instances/{instanceId}/apps/{appId}/app-codes @API APIG PUT /v2/{project_id}/apigw/instances/{instanceId}/apps/{appId}/app-codes
func ResourceCertificate ¶ added in v1.53.0
@API APIG POST /v2/{project_id}/apigw/certificates @API APIG DELETE /v2/{project_id}/apigw/certificates/{certificateId} @API APIG GET /v2/{project_id}/apigw/certificates/{certificateId} @API APIG PUT /v2/{project_id}/apigw/certificates/{certificateId}
func ResourceChannel ¶ added in v1.48.0
@API APIG DELETE /v2/{project_id}/apigw/instances/{instanceId}/vpc-channels/{chanId} @API APIG GET /v2/{project_id}/apigw/instances/{instanceId}/vpc-channels/{chanId} @API APIG PUT /v2/{project_id}/apigw/instances/{instanceId}/vpc-channels/{chanId} @API APIG POST /v2/{project_id}/apigw/instances/{instanceId}/vpc-channels
func ResourceEndpointWhiteList ¶ added in v1.58.0
@API APIG POST /v2/{project_id}/apigw/instances/{instanceId}/vpc-endpoint/permissions/batch-add @API APIG POST /v2/{project_id}/apigw/instances/{instanceId}/vpc-endpoint/permissions/batch-delete @API APIG GET /v2/{project_id}/apigw/instances/{instanceId}/vpc-endpoint/permissions
func ResourceInstanceRoutes ¶ added in v1.47.0
@API APIG POST /v2/{project_id}/apigw/instances/{instanceId}/features @API APIG GET /v2/{project_id}/apigw/instances/{instanceId}/features
func ResourcePlugin ¶ added in v1.49.0
ResourcePlugin defines the provider resource of the APIG plugin. @API APIG DELETE /v2/{project_id}/apigw/instances/{instanceId}/plugins/{pluginId} @API APIG GET /v2/{project_id}/apigw/instances/{instanceId}/plugins/{pluginId} @API APIG PUT /v2/{project_id}/apigw/instances/{instanceId}/plugins/{pluginId} @API APIG POST /v2/{project_id}/apigw/instances/{instanceId}/plugins
func ResourcePluginAssociate ¶ added in v1.49.0
ResourcePluginAssociate defines the provider resource of the APIG plugin binding. @API APIG PUT /v2/{project_id}/apigw/instances/{instanceId}/plugins/{pluginId}/detach @API APIG GET /v2/{project_id}/apigw/instances/{instanceId}/plugins/{pluginId}/attached-apis @API APIG POST /v2/{project_id}/apigw/instances/{instanceId}/plugins/{pluginId}/attach
func ResourceSignature ¶ added in v1.48.0
ResourceSignature is a provider resource of the APIG signature. @API APIG DELETE /v2/{project_id}/apigw/instances/{instanceId}/signs/{signatureId} @API APIG PUT /v2/{project_id}/apigw/instances/{instanceId}/signs/{signatureId} @API APIG GET /v2/{project_id}/apigw/instances/{instanceId}/signs @API APIG POST /v2/{project_id}/apigw/instances/{instanceId}/signs
func ResourceSignatureAssociate ¶ added in v1.48.0
ResourceSignatureAssociate is a provider resource of the API signature. @API APIG POST /v2/{project_id}/apigw/instances/{instanceId}/sign-bindings @API APIG GET /v2/{project_id}/apigw/instances/{instanceId}/sign-bindings/binded-apis @API APIG DELETE /v2/{project_id}/apigw/instances/{instanceId}/sign-bindings/{bindId}
func ResourceThrottlingPolicyAssociate ¶ added in v1.38.0
@API APIG GET /v2/{project_id}/apigw/instances/{instanceId}/throttle-bindings/binded-apis @API APIG DELETE /v2/{project_id}/apigw/instances/{instanceId}/throttle-bindings/{bindId} @API APIG POST /v2/{project_id}/apigw/instances/{instanceId}/throttle-bindings
Types ¶
type ApiAuthType ¶ added in v1.45.0
type ApiAuthType string
type AppCodeAuthType ¶ added in v1.45.0
type AppCodeAuthType string
type BackendType ¶ added in v1.45.0
type BackendType string
type ConditionSource ¶ added in v1.45.0
type ConditionSource string
type ConditionType ¶ added in v1.45.0
type ConditionType string
type EffectiveMode ¶ added in v1.45.0
type EffectiveMode string
type InvacationType ¶ added in v1.45.0
type InvacationType string
type ParamLocation ¶ added in v1.45.0
type ParamLocation string
type ParameterType ¶ added in v1.45.0
type ParameterType string
type PeriodUnit ¶ added in v1.44.2
type PeriodUnit string
type PolicyType ¶ added in v1.44.2
type PolicyType string
type ProtocolType ¶ added in v1.44.0
type ProtocolType string
type ProviderType ¶ added in v1.43.0
type ProviderType string // The type of the loadbalancer provider.
type RequestMethod ¶ added in v1.45.0
type RequestMethod string
type SecretAction ¶ added in v1.44.1
type SecretAction string
const (
SecretActionReset SecretAction = "RESET"
)
type SystemParamType ¶ added in v1.45.0
type SystemParamType string
Source Files ¶
- common.go
- data_source_huaweicloud_apig_environments.go
- data_source_huaweicloud_apig_groups.go
- resource_huaweicloud_apig_acl_policy.go
- resource_huaweicloud_apig_acl_policy_associate.go
- resource_huaweicloud_apig_api.go
- resource_huaweicloud_apig_api_publishment.go
- resource_huaweicloud_apig_appcode.go
- resource_huaweicloud_apig_application.go
- resource_huaweicloud_apig_application_authorization.go
- resource_huaweicloud_apig_certificate.go
- resource_huaweicloud_apig_channel.go
- resource_huaweicloud_apig_custom_authorizer.go
- resource_huaweicloud_apig_endpoint_whitelist.go
- resource_huaweicloud_apig_environment.go
- resource_huaweicloud_apig_group.go
- resource_huaweicloud_apig_instance.go
- resource_huaweicloud_apig_instance_routes.go
- resource_huaweicloud_apig_plugin.go
- resource_huaweicloud_apig_plugin_associate.go
- resource_huaweicloud_apig_response.go
- resource_huaweicloud_apig_signature.go
- resource_huaweicloud_apig_signature_associate.go
- resource_huaweicloud_apig_throttling_policy.go
- resource_huaweicloud_apig_throttling_policy_associate.go