azapi.Provider
Explore with Pulumi AI
The provider type for the azapi package. By default, resources use package-wide configuration
settings, however an explicit Provider
instance may be created and passed during resource
construction to achieve fine-grained programmatic control over provider settings. See the
documentation for more information.
Create Provider Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Provider(name: string, args: ProviderArgs, opts?: CustomResourceOptions);
@overload
def Provider(resource_name: str,
args: ProviderArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Provider(resource_name: str,
opts: Optional[ResourceOptions] = None,
auxiliary_tenant_ids: Optional[Sequence[str]] = None,
client_certificate_password: Optional[str] = None,
client_certificate_path: Optional[str] = None,
client_id: Optional[str] = None,
client_secret: Optional[str] = None,
custom_correlation_request_id: Optional[str] = None,
default_location: Optional[str] = None,
default_name: Optional[str] = None,
default_naming_prefix: Optional[str] = None,
default_naming_suffix: Optional[str] = None,
default_tags: Optional[Mapping[str, str]] = None,
disable_correlation_request_id: Optional[bool] = None,
disable_terraform_partner_id: Optional[bool] = None,
endpoint: Optional[ProviderEndpointArgs] = None,
environment: Optional[str] = None,
oidc_request_token: Optional[str] = None,
oidc_request_url: Optional[str] = None,
oidc_token: Optional[str] = None,
oidc_token_file_path: Optional[str] = None,
partner_id: Optional[str] = None,
skip_provider_registration: Optional[bool] = None,
subscription_id: Optional[str] = None,
tenant_id: Optional[str] = None,
use_cli: Optional[bool] = None,
use_msi: Optional[bool] = None,
use_oidc: Optional[bool] = None)
func NewProvider(ctx *Context, name string, args ProviderArgs, opts ...ResourceOption) (*Provider, error)
public Provider(string name, ProviderArgs args, CustomResourceOptions? opts = null)
public Provider(String name, ProviderArgs args)
public Provider(String name, ProviderArgs args, CustomResourceOptions options)
type: pulumi:providers:azapi
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ProviderArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ProviderArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ProviderArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ProviderArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ProviderArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Provider Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Provider resource accepts the following input properties:
- Environment string
- The Cloud Environment which should be used. Possible values are public, usgovernment and china. Defaults to public.
- Auxiliary
Tenant List<string>Ids - Client
Certificate stringPassword - The password associated with the Client Certificate. For use when authenticating as a Service Principal using a Client Certificate
- Client
Certificate stringPath - The path to the Client Certificate associated with the Service Principal for use when authenticating as a Service Principal using a Client Certificate.
- Client
Id string - The Client ID which should be used.
- Client
Secret string - The Client Secret which should be used. For use When authenticating as a Service Principal using a Client Secret.
- Custom
Correlation stringRequest Id - The value of the x-ms-correlation-request-id header (otherwise an auto-generated UUID will be used).
- Default
Location string - Default
Name string - Default
Naming stringPrefix - Default
Naming stringSuffix - Dictionary<string, string>
- Disable
Correlation boolRequest Id - This will disable the x-ms-correlation-request-id header.
- Disable
Terraform boolPartner Id - Endpoint
ediri.
Azapi. Inputs. Provider Endpoint - Oidc
Request stringToken - The bearer token for the request to the OIDC provider. For use When authenticating as a Service Principal using OpenID Connect.
- Oidc
Request stringUrl - The URL for the OIDC provider from which to request an ID token. For use When authenticating as a Service Principal using OpenID Connect.
- Oidc
Token string - The OIDC ID token for use when authenticating as a Service Principal using OpenID Connect.
- Oidc
Token stringFile Path - The path to a file containing an OIDC ID token for use when authenticating as a Service Principal using OpenID Connect.
- Partner
Id string - A GUID/UUID that is registered with Microsoft to facilitate partner resource usage attribution.
- Skip
Provider boolRegistration - Should the Provider skip registering all of the Resource Providers that it supports, if they're not already registered?
- Subscription
Id string - The Subscription ID which should be used.
- Tenant
Id string - The Tenant ID which should be used.
- Use
Cli bool - Allow Azure CLI to be used for Authentication.
- Use
Msi bool - Allow Managed Service Identity to be used for Authentication.
- Use
Oidc bool - Allow OpenID Connect to be used for authentication
- Environment string
- The Cloud Environment which should be used. Possible values are public, usgovernment and china. Defaults to public.
- Auxiliary
Tenant []stringIds - Client
Certificate stringPassword - The password associated with the Client Certificate. For use when authenticating as a Service Principal using a Client Certificate
- Client
Certificate stringPath - The path to the Client Certificate associated with the Service Principal for use when authenticating as a Service Principal using a Client Certificate.
- Client
Id string - The Client ID which should be used.
- Client
Secret string - The Client Secret which should be used. For use When authenticating as a Service Principal using a Client Secret.
- Custom
Correlation stringRequest Id - The value of the x-ms-correlation-request-id header (otherwise an auto-generated UUID will be used).
- Default
Location string - Default
Name string - Default
Naming stringPrefix - Default
Naming stringSuffix - map[string]string
- Disable
Correlation boolRequest Id - This will disable the x-ms-correlation-request-id header.
- Disable
Terraform boolPartner Id - Endpoint
Provider
Endpoint Args - Oidc
Request stringToken - The bearer token for the request to the OIDC provider. For use When authenticating as a Service Principal using OpenID Connect.
- Oidc
Request stringUrl - The URL for the OIDC provider from which to request an ID token. For use When authenticating as a Service Principal using OpenID Connect.
- Oidc
Token string - The OIDC ID token for use when authenticating as a Service Principal using OpenID Connect.
- Oidc
Token stringFile Path - The path to a file containing an OIDC ID token for use when authenticating as a Service Principal using OpenID Connect.
- Partner
Id string - A GUID/UUID that is registered with Microsoft to facilitate partner resource usage attribution.
- Skip
Provider boolRegistration - Should the Provider skip registering all of the Resource Providers that it supports, if they're not already registered?
- Subscription
Id string - The Subscription ID which should be used.
- Tenant
Id string - The Tenant ID which should be used.
- Use
Cli bool - Allow Azure CLI to be used for Authentication.
- Use
Msi bool - Allow Managed Service Identity to be used for Authentication.
- Use
Oidc bool - Allow OpenID Connect to be used for authentication
- environment String
- The Cloud Environment which should be used. Possible values are public, usgovernment and china. Defaults to public.
- auxiliary
Tenant List<String>Ids - client
Certificate StringPassword - The password associated with the Client Certificate. For use when authenticating as a Service Principal using a Client Certificate
- client
Certificate StringPath - The path to the Client Certificate associated with the Service Principal for use when authenticating as a Service Principal using a Client Certificate.
- client
Id String - The Client ID which should be used.
- client
Secret String - The Client Secret which should be used. For use When authenticating as a Service Principal using a Client Secret.
- custom
Correlation StringRequest Id - The value of the x-ms-correlation-request-id header (otherwise an auto-generated UUID will be used).
- default
Location String - default
Name String - default
Naming StringPrefix - default
Naming StringSuffix - Map<String,String>
- disable
Correlation BooleanRequest Id - This will disable the x-ms-correlation-request-id header.
- disable
Terraform BooleanPartner Id - endpoint
Provider
Endpoint - oidc
Request StringToken - The bearer token for the request to the OIDC provider. For use When authenticating as a Service Principal using OpenID Connect.
- oidc
Request StringUrl - The URL for the OIDC provider from which to request an ID token. For use When authenticating as a Service Principal using OpenID Connect.
- oidc
Token String - The OIDC ID token for use when authenticating as a Service Principal using OpenID Connect.
- oidc
Token StringFile Path - The path to a file containing an OIDC ID token for use when authenticating as a Service Principal using OpenID Connect.
- partner
Id String - A GUID/UUID that is registered with Microsoft to facilitate partner resource usage attribution.
- skip
Provider BooleanRegistration - Should the Provider skip registering all of the Resource Providers that it supports, if they're not already registered?
- subscription
Id String - The Subscription ID which should be used.
- tenant
Id String - The Tenant ID which should be used.
- use
Cli Boolean - Allow Azure CLI to be used for Authentication.
- use
Msi Boolean - Allow Managed Service Identity to be used for Authentication.
- use
Oidc Boolean - Allow OpenID Connect to be used for authentication
- environment string
- The Cloud Environment which should be used. Possible values are public, usgovernment and china. Defaults to public.
- auxiliary
Tenant string[]Ids - client
Certificate stringPassword - The password associated with the Client Certificate. For use when authenticating as a Service Principal using a Client Certificate
- client
Certificate stringPath - The path to the Client Certificate associated with the Service Principal for use when authenticating as a Service Principal using a Client Certificate.
- client
Id string - The Client ID which should be used.
- client
Secret string - The Client Secret which should be used. For use When authenticating as a Service Principal using a Client Secret.
- custom
Correlation stringRequest Id - The value of the x-ms-correlation-request-id header (otherwise an auto-generated UUID will be used).
- default
Location string - default
Name string - default
Naming stringPrefix - default
Naming stringSuffix - {[key: string]: string}
- disable
Correlation booleanRequest Id - This will disable the x-ms-correlation-request-id header.
- disable
Terraform booleanPartner Id - endpoint
Provider
Endpoint - oidc
Request stringToken - The bearer token for the request to the OIDC provider. For use When authenticating as a Service Principal using OpenID Connect.
- oidc
Request stringUrl - The URL for the OIDC provider from which to request an ID token. For use When authenticating as a Service Principal using OpenID Connect.
- oidc
Token string - The OIDC ID token for use when authenticating as a Service Principal using OpenID Connect.
- oidc
Token stringFile Path - The path to a file containing an OIDC ID token for use when authenticating as a Service Principal using OpenID Connect.
- partner
Id string - A GUID/UUID that is registered with Microsoft to facilitate partner resource usage attribution.
- skip
Provider booleanRegistration - Should the Provider skip registering all of the Resource Providers that it supports, if they're not already registered?
- subscription
Id string - The Subscription ID which should be used.
- tenant
Id string - The Tenant ID which should be used.
- use
Cli boolean - Allow Azure CLI to be used for Authentication.
- use
Msi boolean - Allow Managed Service Identity to be used for Authentication.
- use
Oidc boolean - Allow OpenID Connect to be used for authentication
- environment str
- The Cloud Environment which should be used. Possible values are public, usgovernment and china. Defaults to public.
- auxiliary_
tenant_ Sequence[str]ids - client_
certificate_ strpassword - The password associated with the Client Certificate. For use when authenticating as a Service Principal using a Client Certificate
- client_
certificate_ strpath - The path to the Client Certificate associated with the Service Principal for use when authenticating as a Service Principal using a Client Certificate.
- client_
id str - The Client ID which should be used.
- client_
secret str - The Client Secret which should be used. For use When authenticating as a Service Principal using a Client Secret.
- custom_
correlation_ strrequest_ id - The value of the x-ms-correlation-request-id header (otherwise an auto-generated UUID will be used).
- default_
location str - default_
name str - default_
naming_ strprefix - default_
naming_ strsuffix - Mapping[str, str]
- disable_
correlation_ boolrequest_ id - This will disable the x-ms-correlation-request-id header.
- disable_
terraform_ boolpartner_ id - endpoint
Provider
Endpoint Args - oidc_
request_ strtoken - The bearer token for the request to the OIDC provider. For use When authenticating as a Service Principal using OpenID Connect.
- oidc_
request_ strurl - The URL for the OIDC provider from which to request an ID token. For use When authenticating as a Service Principal using OpenID Connect.
- oidc_
token str - The OIDC ID token for use when authenticating as a Service Principal using OpenID Connect.
- oidc_
token_ strfile_ path - The path to a file containing an OIDC ID token for use when authenticating as a Service Principal using OpenID Connect.
- partner_
id str - A GUID/UUID that is registered with Microsoft to facilitate partner resource usage attribution.
- skip_
provider_ boolregistration - Should the Provider skip registering all of the Resource Providers that it supports, if they're not already registered?
- subscription_
id str - The Subscription ID which should be used.
- tenant_
id str - The Tenant ID which should be used.
- use_
cli bool - Allow Azure CLI to be used for Authentication.
- use_
msi bool - Allow Managed Service Identity to be used for Authentication.
- use_
oidc bool - Allow OpenID Connect to be used for authentication
- environment String
- The Cloud Environment which should be used. Possible values are public, usgovernment and china. Defaults to public.
- auxiliary
Tenant List<String>Ids - client
Certificate StringPassword - The password associated with the Client Certificate. For use when authenticating as a Service Principal using a Client Certificate
- client
Certificate StringPath - The path to the Client Certificate associated with the Service Principal for use when authenticating as a Service Principal using a Client Certificate.
- client
Id String - The Client ID which should be used.
- client
Secret String - The Client Secret which should be used. For use When authenticating as a Service Principal using a Client Secret.
- custom
Correlation StringRequest Id - The value of the x-ms-correlation-request-id header (otherwise an auto-generated UUID will be used).
- default
Location String - default
Name String - default
Naming StringPrefix - default
Naming StringSuffix - Map<String>
- disable
Correlation BooleanRequest Id - This will disable the x-ms-correlation-request-id header.
- disable
Terraform BooleanPartner Id - endpoint Property Map
- oidc
Request StringToken - The bearer token for the request to the OIDC provider. For use When authenticating as a Service Principal using OpenID Connect.
- oidc
Request StringUrl - The URL for the OIDC provider from which to request an ID token. For use When authenticating as a Service Principal using OpenID Connect.
- oidc
Token String - The OIDC ID token for use when authenticating as a Service Principal using OpenID Connect.
- oidc
Token StringFile Path - The path to a file containing an OIDC ID token for use when authenticating as a Service Principal using OpenID Connect.
- partner
Id String - A GUID/UUID that is registered with Microsoft to facilitate partner resource usage attribution.
- skip
Provider BooleanRegistration - Should the Provider skip registering all of the Resource Providers that it supports, if they're not already registered?
- subscription
Id String - The Subscription ID which should be used.
- tenant
Id String - The Tenant ID which should be used.
- use
Cli Boolean - Allow Azure CLI to be used for Authentication.
- use
Msi Boolean - Allow Managed Service Identity to be used for Authentication.
- use
Oidc Boolean - Allow OpenID Connect to be used for authentication
Outputs
All input properties are implicitly available as output properties. Additionally, the Provider resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Supporting Types
ProviderEndpoint, ProviderEndpointArgs
- string
- The Active Directory login endpoint which should be used.
- Resource
Manager stringAudience - The resource ID to obtain AD tokens for.
- Resource
Manager stringEndpoint - The Resource Manager Endpoint which should be used.
- string
- The Active Directory login endpoint which should be used.
- Resource
Manager stringAudience - The resource ID to obtain AD tokens for.
- Resource
Manager stringEndpoint - The Resource Manager Endpoint which should be used.
- String
- The Active Directory login endpoint which should be used.
- resource
Manager StringAudience - The resource ID to obtain AD tokens for.
- resource
Manager StringEndpoint - The Resource Manager Endpoint which should be used.
- string
- The Active Directory login endpoint which should be used.
- resource
Manager stringAudience - The resource ID to obtain AD tokens for.
- resource
Manager stringEndpoint - The Resource Manager Endpoint which should be used.
- str
- The Active Directory login endpoint which should be used.
- resource_
manager_ straudience - The resource ID to obtain AD tokens for.
- resource_
manager_ strendpoint - The Resource Manager Endpoint which should be used.
- String
- The Active Directory login endpoint which should be used.
- resource
Manager StringAudience - The resource ID to obtain AD tokens for.
- resource
Manager StringEndpoint - The Resource Manager Endpoint which should be used.
Package Details
- Repository
- azapi dirien/pulumi-azapi
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azapi
Terraform Provider.