Documentation ¶
Index ¶
- Constants
- func DataSourceEnvironments() *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 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 ResourceApigVpcChannelV2() *schema.Resource
- func ResourceInstanceRoutes() *schema.Resource
- func ResourceThrottlingPolicyAssociate() *schema.Resource
- type AlgorithmType
- type ApiAuthType
- type ApiType
- type AppCodeAuthType
- type AuthType
- type BackendType
- type ChannelStatus
- type ConditionSource
- type ConditionType
- type Edition
- type EffectiveMode
- type InvacationType
- type MatchMode
- type MemberType
- type ParamLocation
- type ParamType
- type ParameterType
- type PeriodUnit
- type PolicyType
- type ProtocolType
- type ProviderType
- type RequestMethod
- type SecretAction
- type SystemParamType
Constants ¶
View Source
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" 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" )
View Source
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. )
View Source
const ( ErrorTypeAuthFailure = "AUTH_FAILURE" ErrorTypeAuthHeaderMissing = "AUTH_HEADER_MISSING" ErrorTypeAuthorizerFailure = "AUTHORIZER_FAILURE" ErrorTypeAuthorizerConfigFailure = "AUTHORIZER_CONF_FAILURE" ErrorTypeAuthorizerIdentitiesFailure = "AUTHORIZER_IDENTITIES_FAILURE" ErrorTypeBackendTimeout = "BACKEND_TIMEOUT" ErrorTypeThrottled = "THROTTLED" ErrorTypeAccessDenied = "ACCESS_DENIED" ErrorTypeNotFound = "NOT_FOUND" ErrorTypeRequestParametersFailure = "REQUEST_PARAMETERS_FAILURE" ErrorTypeDefault4XX = "DEFAULT_4XX" ErrorTypeDefault5XX = "DEFAULT_5XX" )
View Source
const ( PeriodUnitSecond PeriodUnit = "SECOND" PeriodUnitMinute PeriodUnit = "MINUTE" PeriodUnitHour PeriodUnit = "HOUR" PeriodUnitDay PeriodUnit = "DAY" PolicyTypeExclusive PolicyType = "API-based" PolicyTypeUser PolicyType = "USER" PolicyTypeApplication PolicyType = "APP" )
View Source
const ( MemberTypeEcs MemberType = "ECS" MemberTypeEip MemberType = "EIP" AlgorithmTypeWrr AlgorithmType = "WRR" AlgorithmTypeWlc AlgorithmType = "WLC" AlgorithmTypeSh AlgorithmType = "SH" AlgorithmTypeUri AlgorithmType = "URI hashing" ProtocolTypeTcp ProtocolType = "TCP" ProtocolTypeHttp ProtocolType = "HTTP" ProtocolTypeHttps ProtocolType = "HTTPS" ProtocolTypeBoth ProtocolType = "BOTH" ChannelStatusNormal ChannelStatus = 1 ChannelStatusAbnormal ChannelStatus = 2 )
Variables ¶
This section is empty.
Functions ¶
func DataSourceEnvironments ¶ added in v1.38.0
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.
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
func ResourceApigApiPublishment ¶ added in v1.30.0
func ResourceApigCustomAuthorizerV2 ¶ added in v1.27.1
func ResourceApigGroupV2 ¶
func ResourceApigInstanceV2 ¶
func ResourceApigResponseV2 ¶
func ResourceApigThrottlingPolicyV2 ¶ added in v1.27.1
ResourceApigThrottlingPolicyV2 is a provider resource of the APIG throttling policy.
func ResourceInstanceRoutes ¶ added in v1.47.0
func ResourceThrottlingPolicyAssociate ¶ added in v1.38.0
Types ¶
type AlgorithmType ¶ added in v1.44.0
type AlgorithmType string
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 ChannelStatus ¶ added in v1.44.0
type ChannelStatus int
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 MemberType ¶ added in v1.44.0
type MemberType 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 ¶
- data_source_huaweicloud_apig_environments.go
- resource_huaweicloud_apig_acl_policy.go
- resource_huaweicloud_apig_api.go
- resource_huaweicloud_apig_api_publishment.go
- resource_huaweicloud_apig_application.go
- resource_huaweicloud_apig_custom_authorizer.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_response.go
- resource_huaweicloud_apig_throttling_policy.go
- resource_huaweicloud_apig_throttling_policy_associate.go
- resource_huaweicloud_apig_vpc_channel.go
Click to show internal directories.
Click to hide internal directories.