const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
type: 'oidc',
issuerUrl: '<string>',
clientId: '<string>',
clientSecret: '<string>',
autoProvision: false
})
};
fetch('https://api.example.com/v1/regions/global/iam/providers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));