CreatePrivateAccessApplication
Creates a private access application for the current Alibaba Cloud account.
Operation description
You can create up to 500 private access applications by default.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
csas:CreatePrivateAccessApplication |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Name |
string |
Yes |
The name of the private access application. The name must be 1 to 128 characters in length. It can contain Chinese characters, letters, digits, periods (.), underscores (_), and hyphens (-). |
private_access_application_name |
| Description |
string |
No |
The description of the private access application. The description must be 1 to 128 characters in length. It can contain Chinese characters, letters, digits, periods (.), underscores (_), hyphens (-), and spaces. |
这是一条内网访问应用 |
| Addresses |
array |
Yes |
A collection of addresses for the private access application. You can enter up to 1,000 addresses. |
|
|
string |
Yes |
The address of the private access application. The address must be 1 to 128 characters in length. It can be an IPv4 address, a CIDR block, a domain name, or a wildcard domain name. |
192.168.0.0/16 |
|
| PortRanges |
array<object> |
Yes |
A collection of port ranges for the private access application. You can enter up to 65,535 port ranges. The port ranges cannot be repeated or overlap. |
|
|
object |
Yes |
The port range for the private access application. Valid values: 1 to 65535. |
||
| Begin |
integer |
Yes |
The start port. The value must be less than or equal to the end port. |
80 |
| End |
integer |
Yes |
The end port. The value must be greater than or equal to the start port. |
81 |
| Protocol |
string |
Yes |
The protocol for the private access application. Valid values:
|
All |
| Status |
string |
Yes |
The status of the private access application. Valid values:
Valid values:
|
Enabled |
| TagIds |
array |
No |
A collection of private access tag IDs. A private access application can be associated with up to six custom private access tags. |
|
|
string |
No |
The private access tag ID. You can call the following operations to obtain the tag ID:
|
tag-d3f64e8bdd4a**** |
|
| BrowserAccessStatus |
string |
No |
The status of browser-based access. If you enable this feature, you can access the application through a browser without a client. The default value is Disabled. Valid values:
|
Disabled |
| L7ProxyDomainAutomaticPrefix |
string |
No |
A parameter for browser-based access: the prefix of the mapped proxy domain name. The prefix must be 3 to 20 characters in length and can contain lowercase letters, digits, and hyphens (-). |
app-sample |
| L7ProxyDomainCustom |
string |
No |
A parameter for browser-based access: the custom proxy domain name. The domain name must be a valid domain name. |
app1.example.com |
| L7Config | PAL7Config |
No |
A parameter for browser-based access: the application configuration. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
BE4FB974-11BC-5453-9BE1-1606A73EACA6 |
| ApplicationId |
string |
The ID of the private access application. |
pa-application-e12860ef6c48**** |
Examples
Success response
JSON format
{
"RequestId": "BE4FB974-11BC-5453-9BE1-1606A73EACA6",
"ApplicationId": "pa-application-e12860ef6c48****"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.