Skip to content

ApiProps

Properties for defining a Api.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-apigateway-api

Initializer

using AlibabaCloud.SDK.ROS.CDK.Apigateway;
new ApiProps {
    object ApiName,
    object GroupId,
    object RequestConfig,
    object ResultSample,
    object ResultType,
    object ServiceConfig,
    object Visibility,
    object AllowSignatureMethod = null,
    object AppCodeAuthType = null,
    object AuthType = null,
    object ConstParameters = null,
    object Description = null,
    object DisableInternet = null,
    object ErrorCodeSamples = null,
    object FailResultSample = null,
    object ForceNonceCheck = null,
    object OpenIdConnectConfig = null,
    object RequestParameters = null,
    object ResultBodyModel = null,
    object ResultDescriptions = null,
    object ServiceParameters = null,
    object ServiceParametersMap = null,
    object SystemParameters = null,
    TagsProperty[] Tags = null,
    object WebSocketApiType = null
};

Properties

Name Type Description
ApiName object Property apiName: The name of the API.Need [4, 50] Chinese\English\Number characters or "_",and should start with Chinese\/English character.
GroupId object Property groupId: The id of the Group.
RequestConfig object Property requestConfig: The configuration of the request.
ResultSample object Property resultSample: The sample of the result.
ResultType object Property resultType: The format of service's response, "JSON", "TEXT", "BINARY", "XML", "HTML" or "PASSTHROUGH".
ServiceConfig object Property serviceConfig: The configuration of the service.
Visibility object Property visibility: Whether to make the API public.
AllowSignatureMethod object Property allowSignatureMethod: If the AuthType is APP authentication, you need to pass this value to specify the signature algorithm.
AppCodeAuthType object Property appCodeAuthType: When AuthType is APP authentication, the optional values are as follows: If not passed, the default value is DEFAULT: DEFAULT: Default (set by group).
AuthType object Property authType: Type of authorization of the API .
ConstParameters object Property constParameters: The const parameters.
Description object Property description: Description of the API, less than 180 characters.
DisableInternet object Property disableInternet: Set DisableInternet to true, only support intranet to call API.
ErrorCodeSamples object Property errorCodeSamples: The Error Code samples.
FailResultSample object Property failResultSample: The sample of the fail result.
ForceNonceCheck object Property forceNonceCheck: Set ForceNonceCheck to true, compulsorily check X-Ca-Nonce when requesting, this is the unique identifier of the request, generally using UUID to identify.
OpenIdConnectConfig object Property openIdConnectConfig: The configuration of the open id.
RequestParameters object Property requestParameters: The request parameters.
ResultBodyModel object Property resultBodyModel: The return result of the API.
ResultDescriptions object Property resultDescriptions: The return description of the API.
ServiceParameters object Property serviceParameters: The service parameters.
ServiceParametersMap object Property serviceParametersMap: The mapping relation between (request parameters\const parameters\system parameters) and service parameters.
SystemParameters object Property systemParameters: The system parameters.
Tags TagsProperty[] Property tags: Tags to attach to instance.
WebSocketApiType object Property webSocketApiType: The type of the two-way communication API.

ApiNameRequired

public object ApiName { get; set; }
  • Type: object

Property apiName: The name of the API.Need [4, 50] Chinese\English\Number characters or "_",and should start with Chinese\/English character.


GroupIdRequired

public object GroupId { get; set; }
  • Type: object

Property groupId: The id of the Group.


RequestConfigRequired

public object RequestConfig { get; set; }
  • Type: object

Property requestConfig: The configuration of the request.


ResultSampleRequired

public object ResultSample { get; set; }
  • Type: object

Property resultSample: The sample of the result.


ResultTypeRequired

public object ResultType { get; set; }
  • Type: object

Property resultType: The format of service's response, "JSON", "TEXT", "BINARY", "XML", "HTML" or "PASSTHROUGH".

Default is "JSON".


ServiceConfigRequired

public object ServiceConfig { get; set; }
  • Type: object

Property serviceConfig: The configuration of the service.


VisibilityRequired

public object Visibility { get; set; }
  • Type: object

Property visibility: Whether to make the API public.

"PUBLIC" or "PRIVATE".


AllowSignatureMethodOptional

public object AllowSignatureMethod { get; set; }
  • Type: object

Property allowSignatureMethod: If the AuthType is APP authentication, you need to pass this value to specify the signature algorithm.

If you do not specify this parameter, the default value HmacSHA256 is used. Valid values: HmacSHA256 HmacSHA1,HmacSHA256


AppCodeAuthTypeOptional

public object AppCodeAuthType { get; set; }
  • Type: object

Property appCodeAuthType: When AuthType is APP authentication, the optional values are as follows: If not passed, the default value is DEFAULT: DEFAULT: Default (set by group).

DISABLE: Not allowed HEADER: Allow AppCode header authentication HEADER_QUERY: Allow AppCode header and query authentication


AuthTypeOptional

public object AuthType { get; set; }
  • Type: object

Property authType: Type of authorization of the API .

"APP","ANONYMOUS", or "APPOPENID"


ConstParametersOptional

public object ConstParameters { get; set; }
  • Type: object

Property constParameters: The const parameters.


DescriptionOptional

public object Description { get; set; }
  • Type: object

Property description: Description of the API, less than 180 characters.


DisableInternetOptional

public object DisableInternet { get; set; }
  • Type: object

Property disableInternet: Set DisableInternet to true, only support intranet to call API.

Set DisableInternet to false, then the call is not restricted.


ErrorCodeSamplesOptional

public object ErrorCodeSamples { get; set; }
  • Type: object

Property errorCodeSamples: The Error Code samples.


FailResultSampleOptional

public object FailResultSample { get; set; }
  • Type: object

Property failResultSample: The sample of the fail result.


ForceNonceCheckOptional

public object ForceNonceCheck { get; set; }
  • Type: object

Property forceNonceCheck: Set ForceNonceCheck to true, compulsorily check X-Ca-Nonce when requesting, this is the unique identifier of the request, generally using UUID to identify.

The API gateway will verify the validity of this parameter after receiving this parameter. The same value can only be used once within 15 minutes. It can effectively prevent API replay attacks. Set ForceNonceCheck to false, then no check.


OpenIdConnectConfigOptional

public object OpenIdConnectConfig { get; set; }
  • Type: object

Property openIdConnectConfig: The configuration of the open id.


RequestParametersOptional

public object RequestParameters { get; set; }
  • Type: object

Property requestParameters: The request parameters.


ResultBodyModelOptional

public object ResultBodyModel { get; set; }
  • Type: object

Property resultBodyModel: The return result of the API.


ResultDescriptionsOptional

public object ResultDescriptions { get; set; }
  • Type: object

Property resultDescriptions: The return description of the API.


ServiceParametersOptional

public object ServiceParameters { get; set; }
  • Type: object

Property serviceParameters: The service parameters.


ServiceParametersMapOptional

public object ServiceParametersMap { get; set; }
  • Type: object

Property serviceParametersMap: The mapping relation between (request parameters\const parameters\system parameters) and service parameters.


SystemParametersOptional

public object SystemParameters { get; set; }
  • Type: object

Property systemParameters: The system parameters.


TagsOptional

public TagsProperty[] Tags { get; set; }

Property tags: Tags to attach to instance.

Max support 20 tags to add during create instance. Each tag with two properties Key and Value, and Key is required.


WebSocketApiTypeOptional

public object WebSocketApiType { get; set; }
  • Type: object

Property webSocketApiType: The type of the two-way communication API.

COMMON: common API REGISTER: registered API UNREGISTER: unregistered API NOTIFY: downstream notification API