1.0
1.0
scpcli application-apigateway method create
--resource_id <value>
--api_id <value>
--method_type <value>
--integration_type <value>
[--api_key_required <value>]
[--endpoint_url <value>]
[--function_id <value>]
[--privatelink_endpoint_id <value>]
[--query_strings <value>]
[--request_headers <value>]
Description
Create method
State ACTIVE (DEPRECATED)
| Version | Supported Until |
|---|---|
| 1.0 | 20251231 |
Parameters
| Name | Type | Description | Example |
|---|---|---|---|
| resource_id required | string | Resource ID | 27bb070b564349f8a31cc60734cc36a5 |
| api_id required | string | Api ID | 27bb070b564349f8a31cc60734cc36a5 |
| method_type required | string | Method Type | GET |
| integration_type required | string | Method Integration Type | HTTP |
| api_key_required optional | boolean | Api Key Required | False |
| endpoint_url optional | string | Method Endpoint URL | https://127.0.0.1:8000 |
| function_id optional | string | Cloud Function ID | 27bb070b564349f8a31cc60734cc36a5 |
| privatelink_endpoint_id optional | string | PrivateLink Endpoint ID | 27bb070b564349f8a31cc60734cc36a5 |
| query_strings optional | object | Method Query Strings | {'param1': 'value1', 'param2': 'value2'} |
| request_headers optional | object | Method Request Headers | {'test1' : True} |
Responses
| Name | Description | Example |
|---|---|---|
| endpoint_url | Method Endpoint URL | https://127.0.0.1:8000 |
| function_id | Cloud Function ID | 27bb070b564349f8a31cc60734cc36a5 |
| integration_type | Method Integration Type | HTTP |
| method_type | Method Type | GET |
| query_strings | Method Query Strings | {‘param1’: ‘value1’, ‘param2’: ‘value2’} |
| request_headers | Method Request Headers | {’test1’ : True} |
| request_path | Method Request Path | {users} |
| srn | SRN | srn:dev2::9b7653f6f47a42e38055934a0575a813:kr-west1::apiateway:method/151a6c15922747faaaae7f70/*/GET/test |