Giter Club home page Giter Club logo

jcapi-go's People

Contributors

alanghartjc avatar antonu17 avatar jcasey-jc avatar joshjumpcloud avatar jpvajda avatar lshupejc avatar pritchardtw avatar radduccijc avatar rmulley avatar sharvanek avatar tsmithjc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jcapi-go's Issues

v1 - list systems - expose EC2 instance ID

Hi,

Would it be possible to expose the EC2 instance ID when listing systems?

I have a need to find a system based on it's EC2 instance ID, but I don't think I'm able to do that via the API. Please correct me if I'm wrong.

Query String Filter

I have been trying hard to figure out the format for the filter field and can not figure it out. I continue to get improperly formatted filter: name when trying to use https://github.com/TheJumpCloud/jcapi-go/blob/master/v2/docs/UserGroupsApi.md#groupsuserlist. Can you please provide how to actually format the filter? The docs for the API make no reference to filter format except for mongodb post body format, but this is a query string filter.

This is what I am trying as optional params to the call:

filter := map[string]interface{}{
    "filter": []string{"name eq value"},
  }

It would be super helpful to have some better clarification in the docs on this.

CloudQuery Source Plugin?

Hi Team, hopefully this is right place to ask, if not, I'd appreciate if you can direct me.

I'm the founder of cloudquery.io, a high performance open source ELT framework.

Our users are interested in a JumpCloud plugin, but as we cannot maintain all the plugins ourselves, I was curious if this would be an interesting collaboration, where we would help implement an initial source plugin, and you will help maintain it.

This will give your users the ability to sync JumpCloud data (Users, Config, ...) to any of their datalakes/data-warehouses/databases easily using any of the growing list of CQ destination plugins.

Best,
Yevgeny

v1 - delete system - cannot unmarshal object into Go struct field System.sshdParams

Hi,

I'm running into an issue when trying to delete a system

	accept := "application/json"
	client1 := jcapiv1.NewAPIClient(jcapiv1.NewConfiguration())
	auth1 := context.WithValue(context.TODO(), jcapiv1.ContextAPIKey, jcapiv1.APIKey{
		Key: os.Getenv("JUMPCLOUD_API_KEY"),
	})
	_, _, err := client1.SystemsApi.SystemsDelete(auth1, "123456789", contentType, accept, nil)
	if err != nil {
		helpers.LogFatalError(err)
	}```


`json: cannot unmarshal object into Go struct field System.sshdParams of type string
exit status 1`

For now I'll just have to ignore `err`.

Provide a open source license

Similar to TheJumpCloud/jcapi-python#40, please add a open source license to the repo. If a repository has no license, then all rights are reserved and it is not Open Source or Free. You cannot modify or redistribute this code without explicit permission from the copyright holder.

We have license compliance checks in place and thus can't use libraries without explicit open source licenses. And the license scan happen already in the pull/merge request and deny it.

From GitHub's licensing help page:

You're under no obligation to choose a license. However, without a license, the default copyright laws apply, meaning that you retain all rights to your source code and no one may reproduce, distribute, or create derivative works from your work. If you're creating an open source project, we strongly encourage you to include an open source license. The Open Source Guide provides additional guidance on choosing the correct license for your project.

Note: If you publish your source code in a public repository on GitHub, according to the Terms of Service, other GitHub users have the right to view and fork your repository within the GitHub site. If you have already created a public repository and no longer want users to have access to it, you can make your repository private. When you convert a public repository to a private repository, existing forks or local copies created by other users will still exist.

SearchApi usage example

Hi guys.
Can you please provide a working example of using SearchApi, specifically SearchSystemusersPost?
When I tried to use it like

optionals := map[string]interface{}{
	"body": jcApi1.Search{
		Filter: "[\"email\": \"" + email + "\"]",
	},
}
users, _, err := jcAPIv1.SearchApi.SearchSystemusersPost(ctx, contentType, accept, optionals)

It produces this request body:

{"filter":"[\"email\": \"[email protected]\"]"}

but I expect:

{"filter": [{"email" : "[email protected]"}]}

Probably I'm using it wrong. ๐Ÿ™Œ

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.