Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/config/en-custom.txt
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ NodeJS
OAuth
OCI
OIDC
OpenAPI
OUTRESOURCE
OUTVALUES
PARAMS
Expand All @@ -103,6 +104,8 @@ RBAC
RabbitMQ
ResourceDeploymentClient
resourceGroup
ResourceType
resourceTypeName
Rollout
SaaS
SDKs
Expand All @@ -122,6 +125,7 @@ Swappable
TBD
TCP
Terraform
testResources
TLS
ToCs
UCP
Expand Down
2 changes: 1 addition & 1 deletion docs/content/reference/cli/rad_resource-type.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Manage resource types

* [rad]({{< ref rad.md >}}) - Radius CLI
* [rad resource-type create]({{< ref rad_resource-type_create.md >}}) - Create or update a resource type
* [rad resource-type delete]({{< ref rad_resource-type_delete.md >}}) - Delete resource type
* [rad resource-type delete]({{< ref rad_resource-type_delete.md >}}) - Delete a resource type
* [rad resource-type list]({{< ref rad_resource-type_list.md >}}) - List resource resource types
* [rad resource-type show]({{< ref rad_resource-type_show.md >}}) - Show resource resource type

33 changes: 16 additions & 17 deletions docs/content/reference/cli/rad_resource-type_create.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,36 +12,35 @@ Create or update a resource type

### Synopsis

Create or update a resource type from a resource type manifest.

Resource types are user defined types such as 'Mycompany.Messaging/plaid'.

Creating a resource type defines a new type that can be used in applications.

Input can be passed in using a JSON or YAML file using the --from-file option.

resource-type name argument is optional. If specified, only the specified type is created/updated.
If not specified, all resource types in the referenced file are created/updated.

Create or update a resource type from a resource type definition file.

Resource types define the resources that Radius can deploy and the API for those resources. They are defined by a name, one or more API versions, and an OpenAPI schema.

Input can be passed in using a JSON or YAML file using the --from-file option.

The resource type name argument is optional. If specified, only the specified type is created/updated. If not specified, all resource types in the referenced file are created/updated.

The resource type name argument is the simple name (e.g., 'testResources') not the fully qualified name.


```
rad resource-type create [input] [flags]
rad resource-type create [resource-type-name] [flags]
```

### Examples

```

# Create a resource type from YAML file
# Create a specific resource type from a YAML file
rad resource-type create myType --from-file /path/to/input.yaml

# Create a resource type from JSON file
# Create a specific resource type from a JSON file
rad resource-type create myType --from-file /path/to/input.json

# Create all resource types from YAML file
rad resource-type create --from-file /path/to/input.yaml
# Create all resource types from a YAML file
rad resource-type create --from-file /path/to/input.yaml

# Create all resource types from JSON file
# Create all resource types from a JSON file
rad resource-type create --from-file /path/to/input.json

```
Expand Down
17 changes: 9 additions & 8 deletions docs/content/reference/cli/rad_resource-type_delete.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,26 +8,27 @@ description: "Details on the rad resource-type delete Radius CLI command"
---
## rad resource-type delete

Delete resource type
Delete a resource type

### Synopsis

Delete resource type

Resource types are the entities that implement resource types such as 'Applications.Core/containers'. Each resource type can define multiple API versions, and each API version defines a schema that resource instances conform to. Resource providers can be created and deleted by users.
Delete a resource type

Deleting a resource type will delete the specified resource type. For example, deleting 'Applications.Core/containers' will delete that type (but not deployed instances of the type).

The resource type name argument must be a fully qualified resource type name in the format 'ResourceType.Namespace/resourceTypeName' (e.g., 'Radius.Compute/containers').

Deleting a resource type will delete all resources of the specified resource type. For example, deleting 'Applications.Core/containers' will delete all containers.

```
rad resource-type delete [resource type] [flags]
rad resource-type delete [resource-type-name] [flags]
```

### Examples

```

# Delete a resource type
rad resource-type delete Applications.Core/containers
# Delete a resource type (fully qualified name required)
rad resource-type delete Radius.Compute/containers

# Delete a resource type (bypass confirmation)
rad resource-type delete Applications.Core/containers --yes
Expand Down
Loading