Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

A Puppet module that includes a type/provider for performing configurations on a RESTful API

Notifications You must be signed in to change notification settings

JCotton1123/puppet-rest_api_resource

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

REST API Resource

A Puppet module that includes a type/provider for performing configurations on a RESTful API.

Platforms

Any platform that Puppet runs on.

Usage

rest_resource { "user import":
  ensure    => present,
  base_url  => "https://api.example.com",
  auth_type => "basic",
  identity  => "username",
  secret    => "password",
  exists    => {
    endpoint => "/users/import",
    status   => "200"
  },
  create   => {
    endpoint => "/users",
    method   => "POST",
    body     => {
      username => "import",
      password => "afxfjr6s4qdfst",
      description => "A user for importing data",
    },
    status => "201"
  }
}

About

A Puppet module that includes a type/provider for performing configurations on a RESTful API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages