import os
from gcore import Gcore
client = Gcore(
api_key=os.environ.get("GCORE_API_KEY"), # This is the default and can be omitted
)
app = client.fastedge.apps.get(
0,
)
print(app.plan_id)package main
import (
"context"
"fmt"
"github.com/G-Core/gcore-go"
"github.com/G-Core/gcore-go/option"
)
func main() {
client := gcore.NewClient(
option.WithAPIKey("My API Key"),
)
app, err := client.Fastedge.Apps.Get(context.TODO(), 0)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", app.PlanID)
}
curl --request GET \
--url https://api.gcore.com/fastedge/v1/apps/{app_id} \
--header 'Authorization: <api-key>'const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.gcore.com/fastedge/v1/apps/{app_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.gcore.com/fastedge/v1/apps/{app_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.get("https://api.gcore.com/fastedge/v1/apps/{app_id}")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gcore.com/fastedge/v1/apps/{app_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"name": "my-edge-app",
"url": "my-edge-app.fastedge.gcore.dev",
"binary": 12345,
"template": 123,
"template_name": "<string>",
"status": 1,
"plan_id": 123,
"plan": "<string>",
"env": {
"var1": "value1",
"var2": "value2"
},
"rsp_headers": {
"header1": "value1",
"header2": "value2"
},
"log": "kafka",
"debug_until": "2023-11-07T05:31:56Z",
"comment": "Production API gateway for customer portal",
"api_type": "<string>",
"networks": [
"<string>"
],
"secrets": {},
"stores": {}
}{
"error": "<string>"
}Get app details
Retrieve complete configuration and metadata for a specific application. Includes binary reference, plan limits, environment variables, and current status.
import os
from gcore import Gcore
client = Gcore(
api_key=os.environ.get("GCORE_API_KEY"), # This is the default and can be omitted
)
app = client.fastedge.apps.get(
0,
)
print(app.plan_id)package main
import (
"context"
"fmt"
"github.com/G-Core/gcore-go"
"github.com/G-Core/gcore-go/option"
)
func main() {
client := gcore.NewClient(
option.WithAPIKey("My API Key"),
)
app, err := client.Fastedge.Apps.Get(context.TODO(), 0)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", app.PlanID)
}
curl --request GET \
--url https://api.gcore.com/fastedge/v1/apps/{app_id} \
--header 'Authorization: <api-key>'const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.gcore.com/fastedge/v1/apps/{app_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.gcore.com/fastedge/v1/apps/{app_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.get("https://api.gcore.com/fastedge/v1/apps/{app_id}")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gcore.com/fastedge/v1/apps/{app_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"name": "my-edge-app",
"url": "my-edge-app.fastedge.gcore.dev",
"binary": 12345,
"template": 123,
"template_name": "<string>",
"status": 1,
"plan_id": 123,
"plan": "<string>",
"env": {
"var1": "value1",
"var2": "value2"
},
"rsp_headers": {
"header1": "value1",
"header2": "value2"
},
"log": "kafka",
"debug_until": "2023-11-07T05:31:56Z",
"comment": "Production API gateway for customer portal",
"api_type": "<string>",
"networks": [
"<string>"
],
"secrets": {},
"stores": {}
}{
"error": "<string>"
}Authorizations
API key for authentication. Make sure to include the word apikey, followed by a single space and then your token.
Example: apikey 1234_abcdef
Path Parameters
Unique identifier of the application to retrieve
Response
Returns complete application configuration and metadata
Unique application name (alphanumeric, hyphens allowed)
1 - 64^[a-z0-9][a-z0-9-]*[a-z0-9]$"my-edge-app"
Auto-generated URL where the application is accessible
"my-edge-app.fastedge.gcore.dev"
ID of the WebAssembly binary to deploy
x >= 112345
Template ID
Template name
Status code:
0 - draft (inactive)
1 - enabled
2 - disabled
5 - suspended
0 <= x <= 51
Plan ID
Plan name
Environment variables
Show child attributes
Show child attributes
{ "var1": "value1", "var2": "value2" }
Extra headers to add to the response
Show child attributes
Show child attributes
{ "header1": "value1", "header2": "value2" }
kafka, none When debugging finishes
Optional human-readable description of the application's purpose
1024"Production API gateway for customer portal"
Wasm API type
Networks
Application secrets
Show child attributes
Show child attributes
Application edge stores
Show child attributes
Show child attributes
Was this page helpful?