laf-api
  1. Application
laf-api
  • 官方Swagger
    • Monitor
      • Get monitor metrics data
    • Group
      • Find internal group of the application
      • Get group by invite code
      • Get group list of the user
      • Create group for the user
      • Delete a group
      • Get detail of a group
      • Update group
      • Get group invite code
      • Update group invite code
      • Delete group invite code
      • Get members of a group
      • Join a group
      • Remove a group member
      • Update the role of a member
      • Leave a group
    • RecycleBin
      • Delete function Recycle bin items
      • Empty function Recycle bin items
      • Get cloud function recycle bin
      • restore function Recycle bin items
    • FunctionTemplate
      • create a function template
      • get all function template
      • use a function template
      • update a function template
      • delete a function template
      • get one function template
      • star a function template
      • get function template user star state
      • get people who use this function template
      • get my function template
      • get all recommend function template
    • Billing
      • Get billings of an application
      • Get my total amount
      • Get my total amount by day
      • Calculate pricing
      • Get resource option list
      • Get resource option list by region id
      • Get resource template list
    • Trigger
      • Create a cron trigger
      • Get trigger list of an application
      • Remove a cron trigger
    • User
      • Update avatar of user
      • Get avatar of user
      • Bind phone
      • Bind email
      • Bind username
      • Get current user profile
    • Authentication
      • Signup by user-password
      • Signin by user-password
      • Reset password
      • Check if user-password is set
      • Send phone verify code
      • Signin by phone and verify code
      • Auth providers
      • Get user token by PAT
      • Send email verify code
      • Redirect to the login page of github
      • Signin by github
      • Bind github
      • Unbind github
      • Create a PAT
      • List PATs
      • Delete a PAT
    • WebsiteHosting
      • Create a new website
      • Get all websites of an app
      • Get a website hosting of an app
      • Bind custom domain to website
      • Delete a website hosting
      • Check if domain is resolved
    • Public
      • Get application runtime list
      • Get region list
      • Get site settings
      • Get one site setting by key
    • Function
      • Create a new function
      • Query function list of an app
      • Get a function by its name
      • Update a function
      • Delete a function
      • Update function debug info
      • Compile a function
      • Get cloud function history
      • Get function logs
    • Application
      • Create application
        POST
      • Get user application list
        GET
      • Get an application by appid
        GET
      • Delete an application
        DELETE
      • Update application name
        PATCH
      • Update application state
        PATCH
      • Update application bundle
        PATCH
      • Bind custom domain to application
        PATCH
      • Remove custom domain of application
        DELETE
      • Check if domain is resolved
        POST
      • Update environment variables (replace all)
        POST
      • Set a environment variable (create/update)
        PATCH
      • Get environment variables
        GET
      • Delete an environment variable by name
        DELETE
      • Get app all pod name
        GET
      • Get pod's containers
        GET
      • Get app pod logs
        GET
      • Add application dependencies
        POST
      • Update application dependencies
        PATCH
      • Get application dependencies
        GET
      • Remove a dependency
        DELETE
    • Storage
      • Create a new bucket
      • Get bucket list of an app
      • Get a bucket by name
      • Update a bucket
      • Delete a bucket
    • Database
      • Create a new collection in database
      • Get collection list of an application
      • Get collection by name
      • Update a collection
      • Delete a collection by its name
      • Create database policy
      • Get database policy list
      • Update database policy
      • Remove a database policy
      • The database proxy for database management
      • Export database of an application
      • Import database of an application
      • Create database policy rule
      • Get database policy rules
      • Update database policy rule by collection name
      • Remove a database policy rule by collection name
      • Get dedicated database resources metrics data
      • Get dedicated database connections metrics data
      • Get dedicated database performance metrics data
    • Account
      • Get account info
      • Get charge order total amount
      • Get charge order
      • get all charge order
      • Create charge order
      • Get charge reward list
      • AccountController_wechatNotify
      • Use a gift code
      • get a invite code
      • get invite code profit
  • Laf-Toolkit 所需接口
    • PAT 换 Token
    • 通过 Appid 获取应用信息
    • 通过 Appid 获取容器信息
    • 获取 pod 的容器
    • 获取 Pod 日志
  1. Application

Update application name

国服环境
https://api.laf.run
国服环境
https://api.laf.run
PATCH
/v1/applications/{appid}/name
Application

请求参数

Path 参数
appid
string 
必需
Body 参数application/json
name
string 
必需
示例
{
    "name": "string"
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PATCH 'https://api.laf.run/v1/applications//name' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "string"
}'

返回响应

🟢200成功
application/json
Body
error
string 
可选
data
object 
Application
可选
_id
string 
必需
name
string 
必需
appid
string 
必需
regionId
string 
必需
runtimeId
string 
必需
tags
array[string]
必需
state
enum<string> 
必需
枚举值:
RunningStoppedRestartingDeleted
phase
enum<string> 
必需
枚举值:
CreatingCreatedStartingStartedStoppingStoppedDeletingDeleted
createdAt
string <date-time>
必需
updatedAt
string <date-time>
必需
createdBy
string 
必需
示例
{
    "error": "string",
    "data": {
        "_id": "string",
        "name": "string",
        "appid": "string",
        "regionId": "string",
        "runtimeId": "string",
        "tags": [
            "string"
        ],
        "state": "Running",
        "phase": "Creating",
        "createdAt": "2019-08-24T14:15:22Z",
        "updatedAt": "2019-08-24T14:15:22Z",
        "createdBy": "string"
    }
}
上一页
Delete an application
下一页
Update application state
Built with