awx

package
v0.0.0-...-44d5032 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func AtoipOr

func AtoipOr(s string, defaultValue *int) *int

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

func Provider

func Provider() *schema.Provider

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL