Questions tagged [api]
The api tag has no usage guidance.
84
questions
1
vote
2
answers
49
views
How to distribute HTTPS certificate/key securely and automatically on internal servers
I have a some internally available servers (all Debian), that share a LetsEncrypt wildcard certificate (*.local.example.com). One server (Server1) keeps the certificate up-to-date and now I'm looking ...
0
votes
0
answers
61
views
What is the contribution of API to the memory usage of a process in linux as shown by pmap command?
I am trying to understand the memory usage of my program excluding the contribution of custom made API that creates and attaches to shared memory segment.
Following is the API code. I have included ...
0
votes
0
answers
16
views
Is it possible to route API with condition in 3scale
I am very new to Redhat 3scale. We have a requirement to route the API request. I do not have any idea whether it is really possible or not. Searched in internet but did not get much idea on it.
...
0
votes
1
answer
79
views
How do I get last login unix timestamp for a user using kernel API (not `last` cmd)
I want to write a program that can get information about a user, specifically last login time in unix timestamp format using kernel API (not using any shell cmd). What function do I need to call to ...
0
votes
1
answer
504
views
Why does Debian ship Google API keys with Chromium?
I have a file called /etc/chromium.d/apikeys which has the following contents,
# API keys assigned to Debian by Google for access to their services like sync and gmail.
export GOOGLE_API_KEY="...
1
vote
0
answers
264
views
Where can I find the documentation for the Linux NPU API?
For example the Samsung Galaxy S10 has an Exynos 9820 CPU with integrated NPU. We all know Android is based on Linux.
So where can I find the Linux API documentation about how to interact with the NPU?...
2
votes
1
answer
727
views
Ubuntu-latest GitHub runner cannot Connect to localhost API
What specifically needs to be changed in the below in order for a program running on an Ubuntu-latest GitHub runner to successfully connect to a Twisted web server running on localhost of the same ...
1
vote
0
answers
70
views
Is there an API to query setxkbmap's current layout?
A bit related to this previous question of mine, I wonder if there's a way to query what is the current layout.
Say I have run
setxkbmap -layout it,ru -variant ,phonetic -option 'grp:caps_toggle'
and ...
0
votes
1
answer
179
views
ioctl problem with partition
There is a path to the file, I make a write disk cache request via ioctl - ioctl(fd, SG_IO, &ioHdr).
printk: sending ioctl 2285 to a partition!? how to find out which block device a partition ...
0
votes
2
answers
2k
views
linux - curl read in file attribute from a file
So I have this curl command. But I want to store the API-key in a file called api.txt and have it load where the value is in the curl command.
api.txt files contains
'X-Api:<API-KEY>'
This ...
2
votes
1
answer
3k
views
How to parse an escaped json string with ansible/jmespath/jq?
I'm using the Ansible module for Bluecat to make an authorized API call to get some information about a subnet. The response looks something like this:
"result": {
"changed"...
0
votes
0
answers
2k
views
curl -X GET is reaching the server with HTTP/1.1 200 OK but not producing expected output
I am using the below command:
curl -X GET 'https://<my_account>.atlassian.net/rest/api/3/project/search'
This returns "header" information indicating that that command was successful:...
1
vote
0
answers
75
views
Non-polling method of being notified of user activity after given idle time on desktop systems
There are already many questions similar to this but all the ones I could find have answers that suggest polling methods (1, 2) or seem like extreme hacks (3), so I want to ask the same question but ...
1
vote
1
answer
3k
views
TypeError: __init__() missing 1 required positional argument: 'get_response ,Making Dajngo API endpoints & exposing it?
File "/home/Desktop/booklib/env/lib/python3.8/site-packages/rest_framework/authentication.py", line 126, in authenticate
self.enforce_csrf(request)
File "/home/Desktop/booklib/env/...
1
vote
1
answer
476
views
KDE's media controls api
KDE has a feature called "media controls", with which I can control media from the lock screen. I would like to add this feature to a music software I'm working on. I tried to find the ...