Skip to main content

Questions tagged [api]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
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 ...
emma.makes's user avatar
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 ...
Soumajit's user avatar
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. ...
smilyface's user avatar
  • 111
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 ...
atamakahere's user avatar
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="...
Evan Carroll's user avatar
  • 31.8k
1 vote
0 answers
263 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?...
zomega's user avatar
  • 972
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 ...
CodeMed's user avatar
  • 5,269
1 vote
0 answers
69 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 ...
Enlico's user avatar
  • 1,677
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 ...
unite101010's user avatar
0 votes
2 answers
1k 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 ...
Lacer's user avatar
  • 275
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"...
Sam Bishop's user avatar
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:...
Scouse_Bob's user avatar
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 ...
smheidrich's user avatar
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/...
Vivek Yadav's user avatar
1 vote
1 answer
475 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 ...
zvavybir's user avatar
  • 111
9 votes
1 answer
721 views

On what UNIX-like system / filesystem is the st_blocks field returned by stat() not a number of 512-byte units?

I always assumed the st_blocks field returned by stat()/lstat()... system calls and which du uses to get the disk usage of files was expressed in 512 bytes units. Checking the POSIX specification, I ...
Stéphane Chazelas's user avatar
0 votes
0 answers
1k views

Asynchronous json post requests with cURL, minimize overhead?

I think my method to make asynchronous post requests to API endpoint has some overhead. From stackoverflow I learned that libcurl is an alternative way but I am not familiar with libcurl and that with ...
hillsonghimire's user avatar
0 votes
1 answer
1k views

Speed up API Post requests than curl?

I am trying to make API post requests of JSON to a web server. This task needs to be asynchronous with least overhead. I am currently using CURL with infinite looping in bash and used '&' to make ...
hillsonghimire's user avatar
2 votes
2 answers
3k views

Missing header file linux/io_uring.h

#include <linux/io_uring.h> main.c:1:10: fatal error: linux/io_uring.h: No such file or directory #include <linux/io_uring.h> ^~~~~~~~~~~~~~~~~~ Kernel version 5.4.0-80. I ...
fullnitrous's user avatar
1 vote
0 answers
94 views

Getting Error 503 trying to connect with Grouper with user and pass via python

I have an apache proxy server setup with following in my .htaccess file #Header always set Access-Control-Allow-Origin "*" Header onsuccess unset Access-Control-Allow-Origin Header always ...
user478061's user avatar
2 votes
1 answer
156 views

Why does ISO C / POSIX time() have an optional pointer argument

ISO C / POSIX declare the time() function like this: time_t time(time_t *tloc); The documentation says: The time() function shall return the value of time in seconds since the Epoch. The tloc ...
Thomas Perl's user avatar
0 votes
0 answers
130 views

API can't use Integer Variable but static Integer

I am using an API and I'm not able to bind an Integer Variable into it. I will attach my script below, but a little explanation can't hurt: Another script filters data that is send via curl, most of ...
Serj's user avatar
  • 1
2 votes
2 answers
2k views

how to extract fields of info from github api using jq

I am trying to extract some info about github repositories using its API, apparently jq is the way to go. I can use this command to view all the available info: curl 'https://api.github.com/repos/tmux-...
5c0tt_b0t's user avatar
0 votes
0 answers
190 views

Is there dependency between Unix/Linux IPC facilities?

The Linux Programming Interface summarizes UNIX/Linux IPC facilities for communication and synchronization Is there dependency between any of the facilities? Either between their interfaces or their (...
Tim's user avatar
  • 103k
0 votes
1 answer
60 views

CURL to a website API respondsdifferent result

As the title says, im using firefox network explorer to consume an API, i've copied several things sucessfully like this, but this one gives a different result So, in the web the query is a GET to ...
El_Manuel0's user avatar
0 votes
1 answer
746 views

Shell script is omitting the escape character while returning the response payload for a CURL call

I have a shell script making a cur call that returns a response JSON payload containing a URL value with \ character in it as it returns the encoded value for a symbol like =. However, the echo of the ...
SRS's user avatar
  • 103
5 votes
2 answers
4k views

What is the behaviour of a file-backed memory map when reading from or writing to an address larger than the length of the file?

I'm trying to figure out whether it would be undefined behaviour to open a memory map to a file with a very large length. My use-case is that I want to be able to see new data when the file is ...
Jack Fransham's user avatar
5 votes
3 answers
11k views

What is the relation between SIGCHLD and `waitpid()` or`wait()`?

If I am correct, a process waits for its children to terminate or stop by calling the waitpid() or wait() function. What is the relation between SIGCHLD signal and the waitpid() orwait() functions? ...
Tim's user avatar
  • 103k
0 votes
1 answer
277 views

WSO2 API Manager `filter` mediation not entered as it should

I am working to put an API behind WSO2 API Manager installed on premise. I designed the API, added the endpoint and add a first mediation sequence which add Authorization header at runtime. And it ...
Sélom ATSOU's user avatar
2 votes
0 answers
11k views

502 Bad Gateway when curl is talking to API

A curl command in a Bash script (called by cron) asks a web service/API, on another device/server (hosts both the API and the SQL database), to perform an operation on a database. How long this ...
Nils Deschrijver's user avatar
0 votes
1 answer
416 views

Does the ABI of a compiled library depend on the operating system?

I just read an example of ABI. Is it correct that an ABI is similar to API, except that ABI is in machine language and API is in a high level programming language an ABI is the interface provided by ...
Tim's user avatar
  • 103k
0 votes
1 answer
541 views

Shodan - Running API from URL / ( browser )

I am trying to run the API from the URL window or "from browser" but receive an error In the first line is the instruction on how it should be done and on the second line how I did it and the error ...
Javier_Caceres's user avatar
1 vote
0 answers
181 views

Environment variables in project are all wrong/different

I'm not an expert nor very proficient in OS and shell commands, and that's why I've come for help. I was successfully storing my API Keys for my Flutter project as Environment Variables, until I had ...
Agustin Barajas's user avatar
0 votes
0 answers
20 views

Upload my output to my aws webserver

I want to use the output data from my cmd to the Dashboard in a webserver in a table format. I ran this command: curl -s "http://3.135.18.96:8153/go/api/support" | jq '."Config Statistics"."Valid ...
faraz's user avatar
  • 1
1 vote
0 answers
45 views

How to write openapi swagger file for ubuntu iptables rules auditing

I want to audit ubuntu iptable rules with openapi REST. So, I need swagger file. Can anyone guide me how to do this? Actually I am using Azure Logic App and I want to use custome api connector for ...
kyi so thin's user avatar
1 vote
0 answers
46 views

Host data that everybody can update

I work with C# in my spare time and have written a number of programs as one of my hobbys. So I dont consider myself a programmer, I just like to write solutions for problems I come across. My latest ...
Roo's user avatar
  • 11
1 vote
1 answer
4k views

batch curl request w/ https address txt file

I have multiple phones I am trying to obtain the up time for phones. I have enabled REST API for all phones and am looking to run CURL scripts to get the value of uptime. I have a script to get the ...
mdbrown's user avatar
  • 11
2 votes
1 answer
2k views

how to determine vSphere virtual machine name from guest OS?

Is there any way to determine the vSphere virtual machine ID or name or UUID from a linux guest? I have administrative access to the guest, and would like to coordinate some maintenance actions ...
brett's user avatar
  • 301
0 votes
0 answers
147 views

Problem with the limit of requests api youtube v3 search

I execute the following command: curl -G https://www.googleapis.com/youtube/v3/search \ -d part="id" \ -d q="es-por-ti-juanes" \ -d maxResults="1" \ -d key="..........." \ -d type="video" \ -d ...
ortiga's user avatar
  • 131
5 votes
1 answer
3k views

Why is st_blocks always reported in 512-byte blocks?

I was debugging a fuse filesystem that was reporting wrong sizes for du. It turned out that it was putting st_size / st_blksize [*] into st_blocks of the stat structure. The Linux manual page for stat(...
liori's user avatar
  • 630
2 votes
1 answer
3k views

How to export calendar from a nextcloud instance?

I have some data on a nextcloud instance I don't administrate and I want to retrieve all calendar events I put on it. The documentation assume you have access to more than the web interface as a user (...
Manu H's user avatar
  • 131
3 votes
1 answer
1k views

Problems when test whether standard input is capable of seeking

I reversed statements in if/else, corrected now. I am reading a code snippet from Advanced Programming in the UNIX® Environment: The program tests its standard input to see whether it is capable ...
Rick's user avatar
  • 1,197
2 votes
1 answer
849 views

Read arbitrary amount of memory with process_vm_readv

For process_vm_readv the linux man page states: [...] (Avoid) spanning memory pages (typically 4KiB) in a single remote iovec element. (Instead, split the remote read into two remote_iov elements ...
HenrikS's user avatar
  • 123
0 votes
1 answer
112 views

python Ovirtsdk api, how to start a vm in paued mode

I am trying to start a vm in paused mode, but running into issues. I'm able to connect to the API and start vms normally, but I cannot seem to get the params part right for staring paused. In this ...
Jonathan's user avatar
2 votes
1 answer
1k views

How to provide OAuth2 "Client ID" and "Client Secret" to an open-source bash script?

I was writing a bash script for Gmail that would authorize itself using OAuth2, and make API calls using the received tokens. It worked. But now I'm stuck on thinking how to securely store the Client ...
Utkarsh Verma's user avatar
0 votes
1 answer
2k views

Deleting a particular branch of a in bitbucket repo using API (Shell script)

I want to delete a particular branch in a repo with help of api using shell script i have gone through official document https://docs.atlassian.com/bitbucket-server/rest/4.14.4/bitbucket-branch-rest....
Sugatur Deekshith S N's user avatar
2 votes
1 answer
329 views

How to select the right options in the Cryptographic API Kernel section?

How do I know, which Kernel modules in the Cryptographic API will be beneficial on my system? How can I see, if I have software, which will use the Kernel API? For example I use often RSA, but will ...
Jonas Stein's user avatar
  • 4,138
1 vote
1 answer
381 views

writing small web service for embedded device based on debian [closed]

We are developing embedded device which will integrate with some of our services in future. This device have limited set of functionalities and user defined mods for particular use cases. Based on arm ...
sameera's user avatar
  • 304
1 vote
1 answer
412 views

Do the strings accessible via global variable `environ` not reflect any change to the environment?

From https://unix.stackexchange.com/a/436631/674 the file /proc/$$/environ ... does not reflect any changes to the environment, but just reports what the program received when it was execed by the ...
Tim's user avatar
  • 103k
2 votes
1 answer
1k views

cURL 404 Error - URL encoding with SharePoint URL

I am trying to connect to a SharePoint URL and pull the data in the form of a .json file. My URL looks like this: .../_api/web/lists/GetByTitle('titles list')/items If I give the URL as it is ...
Hemanth's user avatar
  • 141