28 lines
790 B
JavaScript
28 lines
790 B
JavaScript
const fs = require('fs');
|
|
const tokenData = JSON.parse(fs.readFileSync('D:/cumin/ghaymah_dns_net_sec_tests/token.json', 'utf8'));
|
|
|
|
async function main() {
|
|
const res = await fetch('https://graphql.ghaymah.systems/v1/graphql', {
|
|
method: 'POST',
|
|
headers: { 'Authorization': 'Bearer ' + tokenData.token, 'Content-Type': 'application/json' },
|
|
body: JSON.stringify({
|
|
query: `query {
|
|
ghaymah_cloud_resources_by_pk(id: "af1b9e91-9bec-4d6a-b76c-92d7273b82ce") {
|
|
id
|
|
chart_name
|
|
chart_version
|
|
status
|
|
message
|
|
user_id
|
|
deleted
|
|
created_at
|
|
updated_at
|
|
values
|
|
}
|
|
}`
|
|
})
|
|
});
|
|
console.log(JSON.stringify(await res.json(), null, 2));
|
|
}
|
|
main().catch(console.error);
|