Documentation
¶
Overview ¶
Use this data source to query credential by ID.
Example Usage ¶
```hcl
data "awx_credential" "default" { id = 1 }
```
Use this data source to query Azure credential by ID.
Example Usage ¶
```hcl
data "awx_credential_azure_key_vault" "default" { credential_id = 1 }
```
Use this data source to query credential type by ID.
Example Usage ¶
```hcl
data "awx_credential_type" "default" { id = 1 }
```
Use this data source to list credentials.
Example Usage ¶
```hcl data "awx_credentials" "default" {} ```
Use this data source to list execution environments.
Example Usage ¶
```hcl data "awx_execution_environment" "default" {}
data "awx_execution_environment" "default" { name = "Default" }
data "awx_execution_environment" "default" { id = 1 }
```
Use this data source to list inventories.
Example Usage ¶
```hcl data "awx_inventory" "default" {}
data "awx_inventory" "default" { name = "private_services" organization_id = data.awx_organization.default.id }
data "awx_inventory" "default" { id = 1 }
```
Use this data source to list inventory groups for a specified inventory.
Example Usage ¶
```hcl
data "awx_inventory" "default" { id = 1 }
data "awx_inventory_group" "default" { name = "k3sPrimary" inventory_id = data.awx_inventory.default.id }
```
Use this data source to list inventory roles for a specified inventory.
Example Usage ¶
```hcl
data "awx_inventory" "myinv" { name = "My Inventory" ... }
data "awx_inventory_role" "inv_admin_role" { name = "Admin" inventory_id = data.awx_inventory.myinv.id }
```
Use this data source to list job templates.
Example Usage ¶
```hcl data "awx_job_template" "default" {}
data "awx_job_template" "default" { name = "Default" }
data "awx_job_template" "default" { id = 1 }
```
Use this data source to list notification template.
Example Usage ¶
```hcl data "awx_notification_template" "default" {}
data "awx_notification_template" "default" { name = "private_services" }
```
Use this data source to list organizations.
Example Usage ¶
```hcl data "awx_organization" "default" {}
data "awx_organization" "default" { name = "Default" }
data "awx_organization" "default" { id = 1 }
```
Use this data source to list organization roles for a specified organization.
Example Usage ¶
```hcl
resource "awx_organization" "myorg" { name = "My AWX Org" }
data "awx_organization_role" "org_admins" { name = "Admin" organization_id = resource.awx_organization.myorg.id }
```
Use this data source to list organizations.
Example Usage ¶
```hcl data "awx_organizations" "all_orgs" {} ```
Use this data source to list projects.
Example Usage ¶
```hcl data "awx_project" "default" {}
data "awx_project" "default" { name = "Default" }
```
Use this data source to list project roles for a speficied project.
Example Usage ¶
```hcl
resource "awx_project" "myproj" { name = "My AWX Project" }
data "awx_project_role" "proj_admins" { name = "Admin" project_id = resource.awx_project.myproj.id }
```
Use this data source to list schedules.
Example Usage ¶
```hcl data "awx_schedule" "default" {}
data "awx_schedule" "default" { name = "private_services" }
data "awx_schedule" "default" { id = 1 }
```
Use this data source to list teams.
Example Usage ¶
```hcl data "awx_team" "default" {}
data "awx_team" "default" { name = "Default" }
data "awx_team" "default" { id = 1 }
```
Use this data source to list workflow job templates.
Example Usage ¶
```hcl data "awx_workflow_job_template" "default" {}
data "awx_workflow_job_template" "default" { name = "Default" }
data "awx_workflow_job_template" "default" { id = 1 }
```
Create a machine credential.
Example Usage ¶
```hcl
resource "awx_credential_machine" "default" { name = "acc-test" organization_id = 1 username = "..." password = "..." }
Index ¶
- func AtoipOr(s string, defaultValue *int) *int
- func CredentialTypeServiceDeleteByID(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func CredentialsServiceDeleteByID(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
- func Provider() *schema.Provider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AtoipOr ¶
AtoipOr takes a string and a defaultValue. If the string cannot be converted, defaultValue is returned
func CredentialTypeServiceDeleteByID ¶
func CredentialTypeServiceDeleteByID(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
func CredentialsServiceDeleteByID ¶
func CredentialsServiceDeleteByID(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics
Types ¶
This section is empty.
Source Files
¶
- convert_type.go
- data_source_credential.go
- data_source_credential_azure_key_vault.go
- data_source_credential_type.go
- data_source_credentials.go
- data_source_execution_environment.go
- data_source_inventory.go
- data_source_inventory_group.go
- data_source_inventory_role.go
- data_source_job_template.go
- data_source_notification_template.go
- data_source_organization.go
- data_source_organization_role.go
- data_source_organizations.go
- data_source_project.go
- data_source_project_role.go
- data_source_schedule.go
- data_source_team.go
- data_source_workflow_job_template.go
- helpers.go
- provider.go
- resource_credential.go
- resource_credential_azure_key_vault.go
- resource_credential_google_compute_engine.go
- resource_credential_input_source.go
- resource_credential_machine.go
- resource_credential_scm.go
- resource_credential_type.go
- resource_execution_environment.go
- resource_host.go
- resource_inventory.go
- resource_inventory_group.go
- resource_inventory_source.go
- resource_job_template.go
- resource_job_template_credential.go
- resource_job_template_launch.go
- resource_job_template_notification_template_error.go
- resource_job_template_notification_template_shared.go
- resource_job_template_notification_template_started.go
- resource_job_template_notification_template_success.go
- resource_notification_template.go
- resource_organization.go
- resource_project.go
- resource_schedule.go
- resource_setting.go
- resource_settings_ldap_team_map.go
- resource_team.go
- resource_workflow_job_template.go
- resource_workflow_job_template_node.go
- resource_workflow_job_template_node_always.go
- resource_workflow_job_template_node_failure.go
- resource_workflow_job_template_node_shared.go
- resource_workflow_job_template_node_success.go
- resource_workflow_job_template_notification_template_error.go
- resource_workflow_job_template_notification_template_shared.go
- resource_workflow_job_template_notification_template_started.go
- resource_workflow_job_template_notification_template_success.go
- resource_workflow_job_template_schedule.go